Class AbstractExternalData
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.basic.dto.AbstractRegistrationHolder
-
- ch.systemsx.cisd.openbis.generic.shared.basic.dto.CodeWithRegistration<T>
-
- ch.systemsx.cisd.openbis.generic.shared.basic.dto.CodeWithRegistrationAndModificationDate<AbstractExternalData>
-
- ch.systemsx.cisd.openbis.generic.shared.basic.dto.AbstractExternalData
-
- All Implemented Interfaces:
IEntityPropertiesHolder,ICodeHolder,IDeletionProvider,IEntityInformationHolder,IEntityInformationHolderWithIdentifier,IEntityInformationHolderWithPermId,IEntityInformationHolderWithProperties,IEntityWithDeletionInformation,IIdAndCodeHolder,IIdentifierHolder,IIdHolder,IIsStub,IPermIdHolder,IRegistratorAndModifierHolder,IRegistratorHolder,ITaggable,java.io.Serializable,java.lang.Comparable<AbstractExternalData>
- Direct Known Subclasses:
ContainerDataSet,LinkDataSet,PhysicalDataSet,PlaceholderDataSet
public abstract class AbstractExternalData extends CodeWithRegistrationAndModificationDate<AbstractExternalData> implements IEntityWithDeletionInformation, IEntityInformationHolderWithProperties, IIdAndCodeHolder, IPermIdHolder, IIsStub, ITaggable
A DTO for any kind of data set.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractExternalData.DataSetComponentsComparatorComparatorfor data sets contained in a (virtual) container which uses ascending order in container.
-
Constructor Summary
Constructors Constructor Description AbstractExternalData(boolean isStub)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddContainer(ContainerDataSet containerDataSet, java.lang.Integer orderInContainer)java.util.DategetAccessTimestamp()java.util.Collection<AbstractExternalData>getChildren()java.util.List<ContainerDataSet>getContainerDataSets()java.lang.StringgetDataProducerCode()DataSetKindgetDataSetKind()DataSetTypegetDataSetType()DataStoregetDataStore()DeletiongetDeletion()EntityKindgetEntityKind()Return the entity kind of this matching entity.EntityTypegetEntityType()Returns the entity type of this matching entity.ExperimentgetExperiment()java.lang.LonggetId()Returns the technical ID of this instance.java.lang.StringgetIdentifier()java.util.Collection<Metaproject>getMetaprojects()java.lang.IntegergetOrderInContainer(java.lang.Long containerDataSetTechId)java.lang.IntegergetOrderInContainer(java.lang.String containerDataSetCode)java.util.Collection<AbstractExternalData>getParents()java.lang.StringgetPermId()java.lang.StringgetPermlink()java.util.DategetProductionDate()ProjectgetProject()java.util.List<IEntityProperty>getProperties()SamplegetSample()NOTE: may be NULLjava.lang.StringgetSampleCode()NOTE: may be NULLjava.lang.StringgetSampleIdentifier()NOTE: may be NULLSampleTypegetSampleType()NOTE: may be NULLjava.lang.LonggetSize()java.lang.StringgetSourceType()SpacegetSpace()booleanisAvailable()booleanisContainer()booleanisDerived()booleanisLinkData()booleanisPlaceHolderDataSet()booleanisPostRegistered()booleanisStorageConfirmation()booleanisStub()voidsetAccessTimestamp(java.util.Date accessTimestamp)voidsetChildren(java.util.Collection<AbstractExternalData> children)voidsetDataProducerCode(java.lang.String producerCode)voidsetDataSetProperties(java.util.List<IEntityProperty> dataSetProperties)voidsetDataSetType(DataSetType dataSetType)voidsetDataStore(DataStore dataStore)voidsetDeletion(Deletion deletion)voidsetDerived(boolean derived)voidsetExperiment(Experiment experiment)voidsetId(java.lang.Long id)voidsetMetaprojects(java.util.Collection<Metaproject> metaprojects)voidsetParents(java.util.Collection<AbstractExternalData> parents)voidsetPermlink(java.lang.String permlink)voidsetPostRegistered(boolean isPostRegistered)voidsetProductionDate(java.util.Date productionDate)voidsetSample(Sample sample)voidsetSize(java.lang.Long size)voidsetStorageConfirmation(boolean storageConfirmation)ContainerDataSettryGetAsContainerDataSet()Returns null if the data set is not a container data set, otherwise returns the container.PhysicalDataSettryGetAsDataSet()Will return non-null values for plain non-container data sets.LinkDataSettryGetAsLinkDataSet()ContainerDataSettryGetContainer()Deprecated.-
Methods inherited from class ch.systemsx.cisd.openbis.generic.shared.basic.dto.CodeWithRegistrationAndModificationDate
getModificationDate, getModifier, getVersion, setModificationDate, setModifier, setVersion
-
Methods inherited from class ch.systemsx.cisd.openbis.generic.shared.basic.dto.CodeWithRegistration
compareTo, getCode, setCode
-
Methods inherited from class ch.systemsx.cisd.openbis.generic.shared.basic.dto.AbstractRegistrationHolder
getRegistrationDate, getRegistrator, setRegistrationDate, setRegistrator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.systemsx.cisd.openbis.generic.shared.basic.ICodeHolder
getCode
-
Methods inherited from interface ch.systemsx.cisd.openbis.generic.shared.basic.IRegistratorHolder
getRegistrator
-
-
-
-
Method Detail
-
isAvailable
public boolean isAvailable()
- Returns:
- true if the data set is available for viewing/editing.
-
isContainer
public boolean isContainer()
- Returns:
- true if this is a container data set.
-
isLinkData
public boolean isLinkData()
- Returns:
- true if this is a link data set.
-
isPlaceHolderDataSet
public boolean isPlaceHolderDataSet()
- Returns:
- true if this is a place holder data set.
-
tryGetAsDataSet
public PhysicalDataSet tryGetAsDataSet()
Will return non-null values for plain non-container data sets.
-
tryGetAsContainerDataSet
public ContainerDataSet tryGetAsContainerDataSet()
Returns null if the data set is not a container data set, otherwise returns the container.
-
tryGetAsLinkDataSet
public LinkDataSet tryGetAsLinkDataSet()
-
getPermlink
public java.lang.String getPermlink()
-
setPermlink
public void setPermlink(java.lang.String permlink)
-
getSample
public Sample getSample()
NOTE: may be NULL
-
setSample
public void setSample(Sample sample)
-
getSampleIdentifier
public final java.lang.String getSampleIdentifier()
NOTE: may be NULL
-
getSampleCode
public final java.lang.String getSampleCode()
NOTE: may be NULL
-
getSampleType
public final SampleType getSampleType()
NOTE: may be NULL
-
getChildren
public java.util.Collection<AbstractExternalData> getChildren()
-
setChildren
public void setChildren(java.util.Collection<AbstractExternalData> children)
-
isDerived
public final boolean isDerived()
-
setDerived
public final void setDerived(boolean derived)
-
getDataSetType
public final DataSetType getDataSetType()
-
setDataSetType
public final void setDataSetType(DataSetType dataSetType)
-
getProductionDate
public final java.util.Date getProductionDate()
-
setProductionDate
public final void setProductionDate(java.util.Date productionDate)
-
getDataProducerCode
public final java.lang.String getDataProducerCode()
-
setDataProducerCode
public final void setDataProducerCode(java.lang.String producerCode)
-
getParents
public java.util.Collection<AbstractExternalData> getParents()
-
setParents
public void setParents(java.util.Collection<AbstractExternalData> parents)
-
getSize
public java.lang.Long getSize()
-
setSize
public void setSize(java.lang.Long size)
-
getDeletion
public final Deletion getDeletion()
- Specified by:
getDeletionin interfaceIDeletionProvider
-
setDeletion
public final void setDeletion(Deletion deletion)
-
getExperiment
public final Experiment getExperiment()
-
setExperiment
public final void setExperiment(Experiment experiment)
-
setDataSetProperties
public void setDataSetProperties(java.util.List<IEntityProperty> dataSetProperties)
-
getProperties
public java.util.List<IEntityProperty> getProperties()
- Specified by:
getPropertiesin interfaceIEntityPropertiesHolder
-
getDataStore
public final DataStore getDataStore()
-
setDataStore
public final void setDataStore(DataStore dataStore)
-
getEntityKind
public EntityKind getEntityKind()
Description copied from interface:IEntityInformationHolderReturn the entity kind of this matching entity.- Specified by:
getEntityKindin interfaceIEntityInformationHolder
-
getEntityType
public EntityType getEntityType()
Description copied from interface:IEntityInformationHolderReturns the entity type of this matching entity.- Specified by:
getEntityTypein interfaceIEntityInformationHolder
-
getIdentifier
public java.lang.String getIdentifier()
- Specified by:
getIdentifierin interfaceIIdentifierHolder
-
getId
public java.lang.Long getId()
Description copied from interface:IIdHolderReturns the technical ID of this instance.
-
setId
public void setId(java.lang.Long id)
-
getPermId
public java.lang.String getPermId()
- Specified by:
getPermIdin interfaceIPermIdHolder
-
tryGetContainer
@Deprecated public ContainerDataSet tryGetContainer()
Deprecated.- Returns:
- the "virtual" container of this data set or null.
-
addContainer
public void addContainer(ContainerDataSet containerDataSet, java.lang.Integer orderInContainer)
-
getContainerDataSets
public java.util.List<ContainerDataSet> getContainerDataSets()
-
getOrderInContainer
public java.lang.Integer getOrderInContainer(java.lang.Long containerDataSetTechId)
-
getOrderInContainer
public java.lang.Integer getOrderInContainer(java.lang.String containerDataSetCode)
-
isStorageConfirmation
public boolean isStorageConfirmation()
-
setStorageConfirmation
public void setStorageConfirmation(boolean storageConfirmation)
-
setMetaprojects
public void setMetaprojects(java.util.Collection<Metaproject> metaprojects)
-
getMetaprojects
public java.util.Collection<Metaproject> getMetaprojects()
- Specified by:
getMetaprojectsin interfaceITaggable
-
getDataSetKind
public DataSetKind getDataSetKind()
-
getSourceType
public java.lang.String getSourceType()
-
isPostRegistered
public boolean isPostRegistered()
-
setPostRegistered
public void setPostRegistered(boolean isPostRegistered)
-
getAccessTimestamp
public java.util.Date getAccessTimestamp()
-
setAccessTimestamp
public void setAccessTimestamp(java.util.Date accessTimestamp)
-
getSpace
public Space getSpace()
-
getProject
public Project getProject()
-
-