Class Sample.SampleInitializer
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.Sample.SampleInitializer
-
- Enclosing class:
- Sample
public static final class Sample.SampleInitializer extends java.lang.Object
Class used to initialize a new sample instance. Necessary since all the fields of a sample are final.All of the properties must be filled (non-null) before being used to initialize a Sample, otherwise the Sample constructor will throw an exception.
-
-
Constructor Summary
Constructors Constructor Description SampleInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMetaproject(Metaproject metaproject)
java.util.List<Sample>
getChildren()
java.lang.String
getCode()
java.lang.String
getExperimentIdentifierOrNull()
java.lang.Long
getId()
java.lang.String
getIdentifier()
java.util.List<Metaproject>
getMetaprojects()
java.util.List<Sample>
getParents()
java.lang.String
getPermId()
java.util.HashMap<java.lang.String,java.lang.String>
getProperties()
EntityRegistrationDetails
getRegistrationDetails()
java.util.EnumSet<SampleFetchOption>
getRetrievedFetchOptions()
java.lang.String
getSampleTypeCode()
java.lang.Long
getSampleTypeId()
java.lang.String
getSpaceCode()
void
putProperty(java.lang.String propCode, java.lang.String value)
void
setChildReferences(java.util.List<java.lang.Long> childIDs, java.util.Map<java.lang.Long,Sample> repository)
void
setChildren(java.util.List<Sample> children)
void
setCode(java.lang.String code)
void
setExperimentIdentifierOrNull(java.lang.String experimentIdentifierOrNull)
void
setId(java.lang.Long id)
void
setIdentifier(java.lang.String identifier)
void
setParentReferences(java.util.List<java.lang.Long> parentIDs, java.util.Map<java.lang.Long,Sample> repository)
void
setParents(java.util.List<Sample> parents)
void
setPermId(java.lang.String permId)
void
setRegistrationDetails(EntityRegistrationDetails registrationDetails)
void
setRetrievedFetchOptions(java.util.EnumSet<SampleFetchOption> retrievedFetchOptions)
void
setSampleTypeCode(java.lang.String sampleTypeCode)
void
setSampleTypeId(java.lang.Long sampleTypeId)
void
setSpaceCode(java.lang.String spaceCode)
void
setStub(boolean isStub)
-
-
-
Method Detail
-
setId
public void setId(java.lang.Long id)
-
getId
public java.lang.Long getId()
-
setSpaceCode
public void setSpaceCode(java.lang.String spaceCode)
-
getSpaceCode
public java.lang.String getSpaceCode()
-
setPermId
public void setPermId(java.lang.String permId)
-
getPermId
public java.lang.String getPermId()
-
setCode
public void setCode(java.lang.String code)
-
getCode
public java.lang.String getCode()
-
getIdentifier
public java.lang.String getIdentifier()
-
setIdentifier
public void setIdentifier(java.lang.String identifier)
-
getExperimentIdentifierOrNull
public java.lang.String getExperimentIdentifierOrNull()
-
setExperimentIdentifierOrNull
public void setExperimentIdentifierOrNull(java.lang.String experimentIdentifierOrNull)
-
setSampleTypeId
public void setSampleTypeId(java.lang.Long sampleTypeId)
-
getSampleTypeId
public java.lang.Long getSampleTypeId()
-
setSampleTypeCode
public void setSampleTypeCode(java.lang.String sampleTypeCode)
-
getSampleTypeCode
public java.lang.String getSampleTypeCode()
-
getProperties
public java.util.HashMap<java.lang.String,java.lang.String> getProperties()
-
putProperty
public void putProperty(java.lang.String propCode, java.lang.String value)
-
getMetaprojects
public java.util.List<Metaproject> getMetaprojects()
-
addMetaproject
public void addMetaproject(Metaproject metaproject)
-
setRegistrationDetails
public void setRegistrationDetails(EntityRegistrationDetails registrationDetails)
-
getRegistrationDetails
public EntityRegistrationDetails getRegistrationDetails()
-
setRetrievedFetchOptions
public void setRetrievedFetchOptions(java.util.EnumSet<SampleFetchOption> retrievedFetchOptions)
-
getRetrievedFetchOptions
public java.util.EnumSet<SampleFetchOption> getRetrievedFetchOptions()
-
setParents
public void setParents(java.util.List<Sample> parents)
-
getParents
public java.util.List<Sample> getParents()
-
getChildren
public java.util.List<Sample> getChildren()
-
setChildren
public void setChildren(java.util.List<Sample> children)
-
setParentReferences
public void setParentReferences(java.util.List<java.lang.Long> parentIDs, java.util.Map<java.lang.Long,Sample> repository)
-
setChildReferences
public void setChildReferences(java.util.List<java.lang.Long> childIDs, java.util.Map<java.lang.Long,Sample> repository)
-
setStub
public void setStub(boolean isStub)
-
-