Class DataSet
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.DataSet
-
- All Implemented Interfaces:
IIdHolder,java.io.Serializable
@JsonObject("DataSet") public final class DataSet extends java.lang.Object implements java.io.Serializable, IIdHolderImmutable value object representing a data set.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataSet.Connectionsstatic classDataSet.DataSetInitializerClass used to initialize a new data set instance.
-
Constructor Summary
Constructors Constructor Description DataSet(DataSet.DataSetInitializer initializer)Creates a new instance with the provided initializer
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.List<java.lang.String>getChildrenCodes()Return the children codes.java.lang.StringgetCode()Returns the data set code;java.util.List<DataSet>getContainedDataSets()java.util.List<DataSet>getContainerDataSets()DataSetgetContainerOrNull()Deprecated.java.lang.StringgetDataSetTypeCode()java.lang.StringgetExperimentIdentifier()Returns the identifier of the Experiment to which this data set belongs.ExternalDataManagementSystemgetExternalDataManagementSystem()java.lang.StringgetExternalDataSetCode()java.lang.StringgetExternalDataSetLink()DataSetFetchOptionsgetFetchOptions()java.lang.LonggetId()Returns tech id of the data set.java.util.List<Metaproject>getMetaprojects()java.util.List<java.lang.String>getParentCodes()Return the parent codes.java.util.HashMap<java.lang.String,java.lang.String>getProperties()java.util.DategetRegistrationDate()EntityRegistrationDetailsgetRegistrationDetails()Return the data set registration details.java.util.EnumSet<DataSet.Connections>getRetrievedConnections()java.lang.StringgetSampleIdentifierOrNull()inthashCode()booleanisContainerDataSet()booleanisLinkDataSet()booleanisPostRegistered()booleanisStorageConfirmed()booleanisStub()voidsetFetchOptions(DataSetFetchOptions fetchOptions)voidsetPostRegistered(boolean isInPostRegistrationQueue)voidsetStorageConfirmed(boolean storageConfirmed)java.lang.StringtoString()
-
-
-
Constructor Detail
-
DataSet
public DataSet(DataSet.DataSetInitializer initializer)
Creates a new instance with the provided initializer- Throws:
java.lang.IllegalArgumentException- if some of the required information is not provided.
-
-
Method Detail
-
getId
public java.lang.Long getId()
Returns tech id of the data set.
-
getCode
public java.lang.String getCode()
Returns the data set code;
-
getExperimentIdentifier
public java.lang.String getExperimentIdentifier()
Returns the identifier of the Experiment to which this data set belongs.- Returns:
nullif this data set belongs to a sample without experiment. If bothgetExperimentIdentifier()andgetSampleIdentifierOrNull()returnnullindicate that this data set is not completely filled with all information available. That is,getProperties(),getChildrenCodes(),getParentCodes(), andgetContainedDataSets()do not return correct results.
-
getSampleIdentifierOrNull
public java.lang.String getSampleIdentifierOrNull()
-
getDataSetTypeCode
public java.lang.String getDataSetTypeCode()
-
getRegistrationDate
public java.util.Date getRegistrationDate()
-
getProperties
public java.util.HashMap<java.lang.String,java.lang.String> getProperties()
-
getMetaprojects
public java.util.List<Metaproject> getMetaprojects() throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
getRetrievedConnections
public java.util.EnumSet<DataSet.Connections> getRetrievedConnections()
-
getParentCodes
public java.util.List<java.lang.String> getParentCodes() throws java.lang.IllegalArgumentExceptionReturn the parent codes. This throws an IllegalArgumentException if the parent codes were not retrieved.- Returns:
- A list of parent data set codes or an empty list if there are no parents.
- Throws:
java.lang.IllegalArgumentException- Thrown if the parent codes were not retrieved from the server.
-
getChildrenCodes
public java.util.List<java.lang.String> getChildrenCodes() throws java.lang.IllegalArgumentExceptionReturn the children codes. This throws an IllegalArgumentException if the children codes were not retrieved.- Returns:
- A list of chidlren data set codes or an empty list if there are no children.
- Throws:
java.lang.IllegalArgumentException- Thrown if the children codes were not retrieved from the server.
-
getRegistrationDetails
public EntityRegistrationDetails getRegistrationDetails()
Return the data set registration details.- Since:
- 1.11
-
isContainerDataSet
public boolean isContainerDataSet()
-
getContainerOrNull
@Deprecated public DataSet getContainerOrNull()
Deprecated.- Since:
- 1.20
-
getContainerDataSets
public java.util.List<DataSet> getContainerDataSets()
- Since:
- 1.27
-
isLinkDataSet
public boolean isLinkDataSet()
-
getExternalDataSetCode
public java.lang.String getExternalDataSetCode()
-
getExternalDataSetLink
public java.lang.String getExternalDataSetLink()
-
getExternalDataManagementSystem
public ExternalDataManagementSystem getExternalDataManagementSystem()
-
getContainedDataSets
public java.util.List<DataSet> getContainedDataSets()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getFetchOptions
public DataSetFetchOptions getFetchOptions()
-
setFetchOptions
public void setFetchOptions(DataSetFetchOptions fetchOptions)
-
isStorageConfirmed
public boolean isStorageConfirmed()
-
setStorageConfirmed
public void setStorageConfirmed(boolean storageConfirmed)
-
isStub
public boolean isStub()
-
isPostRegistered
public boolean isPostRegistered()
-
setPostRegistered
public void setPostRegistered(boolean isInPostRegistrationQueue)
-
-