Class SampleImmutable
java.lang.Object
ch.systemsx.cisd.etlserver.registrator.api.v2.impl.SampleImmutable
- All Implemented Interfaces:
ch.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.IMetaprojectContent,ch.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.ISampleImmutable
- Direct Known Subclasses:
Sample
public class SampleImmutable
extends Object
implements ch.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.ISampleImmutable
-
Constructor Summary
ConstructorsConstructorDescriptionSampleImmutable(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Sample sample) Creates a new object that wraps the sample, which is assumed be an existing sample with all fetch options retrieved.SampleImmutable(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Sample sample, boolean existingSample) Creates a new object that wraps the sample, which is assumed to have all fetch options retrieved.SampleImmutable(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Sample sample, EnumSet<ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SampleFetchOption> retrievedFetchOptions) Creates a new object that wraps the sample, which is assumed be an existing sample.SampleImmutable(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Sample sample, EnumSet<ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SampleFetchOption> retrievedFetchOptions, boolean existingSample) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected voidThrow an exception if the sample does not existbooleangetCode()List<ch.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.ISampleImmutable>ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.id.IObjectIdch.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.IExperimentImmutablegetId()ch.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.IProjectImmutablegetPropertyValue(String propertyCode) ch.systemsx.cisd.openbis.generic.shared.basic.dto.SamplegetSpace()inthashCode()boolean
-
Constructor Details
-
Method Details
-
getExperiment
public ch.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.IExperimentImmutable getExperiment()- Specified by:
getExperimentin interfacech.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.ISampleImmutable
-
getProject
public ch.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.IProjectImmutable getProject()- Specified by:
getProjectin interfacech.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.ISampleImmutable
-
getSampleIdentifier
- Specified by:
getSampleIdentifierin interfacech.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.ISampleImmutable
-
getId
-
getEntityId
public ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.id.IObjectId getEntityId()- Specified by:
getEntityIdin interfacech.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.IMetaprojectContent
-
getSample
public ch.systemsx.cisd.openbis.generic.shared.basic.dto.Sample getSample() -
isExistingSample
public boolean isExistingSample()- Specified by:
isExistingSamplein interfacech.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.ISampleImmutable
-
checkExists
protected void checkExists()Throw an exception if the sample does not exist -
getPropertyValue
- Specified by:
getPropertyValuein interfacech.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.ISampleImmutable
-
getSampleType
- Specified by:
getSampleTypein interfacech.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.ISampleImmutable
-
getSpace
- Specified by:
getSpacein interfacech.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.ISampleImmutable
-
getCode
- Specified by:
getCodein interfacech.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.ISampleImmutable
-
getPermId
- Specified by:
getPermIdin interfacech.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.ISampleImmutable
-
getContainedSamples
public List<ch.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.ISampleImmutable> getContainedSamples()- Specified by:
getContainedSamplesin interfacech.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.ISampleImmutable
-
getParentSampleIdentifiers
- Specified by:
getParentSampleIdentifiersin interfacech.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.ISampleImmutable
-
canGetContainedSamples
public boolean canGetContainedSamples()- Specified by:
canGetContainedSamplesin interfacech.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.ISampleImmutable
-
hashCode
public int hashCode() -
equals
-