Class DataContract
- java.lang.Object
-
- es.bsc.dataclay.util.MgrObject<DataContractID>
-
- es.bsc.dataclay.util.management.datacontractmgr.DataContract
-
public final class DataContract extends MgrObject<DataContractID>
This class represents a system data contract.
-
-
Constructor Summary
Constructors Constructor Description DataContract()
Basic constructorDataContract(DataSetID providerDataSetID, AccountID providerAccountID, Calendar beginDateOfContract, Calendar endDateOfContract)
Deprecated.DataContract(DataSetID providerDataSetID, AccountID providerAccountID, Set<AccountID> applicantsAccountIDs, Calendar beginDateOfContract, Calendar endDateOfContract)
Deprecated.DataContract(DataSetID providerDataSetID, AccountID providerAccountID, Set<AccountID> applicantsAccountIDs, Calendar beginDateOfContract, Calendar endDateOfContract, boolean publicAvailable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
Set<AccountID>
getApplicantsAccountsIDs()
Calendar
getBeginDate()
Calendar
getEndDate()
AccountID
getProviderAccountID()
Get providerAccountDataSetID
getProviderDataSetID()
int
hashCode()
boolean
isActive()
boolean
isPublicAvailable()
void
setApplicantsAccountsIDs(Set<AccountID> accountsIDsofTheApplicants)
void
setBeginDate(Calendar beginDateOfContract)
void
setEndDate(Calendar endDateOfContract)
void
setProviderAccountID(AccountID newproviderAccount)
Set providerAccountvoid
setProviderDataSetID(DataSetID datasetIDofProvider)
void
setPublicAvailable(boolean isContractPublic)
-
Methods inherited from class es.bsc.dataclay.util.MgrObject
getDataClayID, setDataClayID
-
-
-
-
Constructor Detail
-
DataContract
public DataContract()
Basic constructor
-
DataContract
@Deprecated public DataContract(DataSetID providerDataSetID, AccountID providerAccountID, Calendar beginDateOfContract, Calendar endDateOfContract)
Deprecated.Builds a new private data contract without applicants, the date this data contract is valid from and the date this contact expires.- Parameters:
providerDataSetID
- Name of provided datasetnewProviderAccount
- the account that provides data contractapplicantsAccountIDs
- set of account ids of data contract's applicantsbeginDateOfContract
- the date this data contract is valid fromendDateOfContract
- the date this data contract expires
-
DataContract
@Deprecated public DataContract(DataSetID providerDataSetID, AccountID providerAccountID, Set<AccountID> applicantsAccountIDs, Calendar beginDateOfContract, Calendar endDateOfContract)
Deprecated.Builds a new public data contract without applicants, the date this data contract is valid from and the date this contact expires.- Parameters:
providerDataSetID
- Name of provided datasetnewProviderAccount
- the account that provides data contractapplicantsAccountIDs
- set of account ids of data contract's applicantsbeginDateOfContract
- the date this data contract is valid fromendDateOfContract
- the date this data contract expires
-
-
Method Detail
-
getProviderDataSetID
public DataSetID getProviderDataSetID()
- Returns:
- the providerDataSetID
-
setProviderDataSetID
public void setProviderDataSetID(DataSetID datasetIDofProvider)
- Parameters:
datasetIDofProvider
- the dataset id of the provider of the data contract
-
getApplicantsAccountsIDs
public Set<AccountID> getApplicantsAccountsIDs()
- Returns:
- the applicantsAccountsID
-
setApplicantsAccountsIDs
public void setApplicantsAccountsIDs(Set<AccountID> accountsIDsofTheApplicants)
- Parameters:
accountsIDsofTheApplicants
- the applicantAccountID to set
-
getBeginDate
public Calendar getBeginDate()
- Returns:
- the beginDate
-
setBeginDate
public void setBeginDate(Calendar beginDateOfContract)
- Parameters:
beginDateOfContract
- the beginDate to set
-
getEndDate
public Calendar getEndDate()
- Returns:
- the endDate
-
setEndDate
public void setEndDate(Calendar endDateOfContract)
- Parameters:
endDateOfContract
- the endDate to set
-
isPublicAvailable
public boolean isPublicAvailable()
- Returns:
- the isPublic
-
setPublicAvailable
public void setPublicAvailable(boolean isContractPublic)
- Parameters:
isContractPublic
- whether the data contract must be set as public or not
-
isActive
public boolean isActive()
- Returns:
- the isActive
-
getProviderAccountID
public AccountID getProviderAccountID()
Get providerAccount- Returns:
- the providerAccount
-
setProviderAccountID
public void setProviderAccountID(AccountID newproviderAccount)
Set providerAccount- Parameters:
newproviderAccount
- the providerAccount to set
-
-