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 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 Details

    • SampleInitializer

      public SampleInitializer()
  • Method Details

    • setId

      public void setId(Long id)
    • getId

      public Long getId()
    • setSpaceCode

      public void setSpaceCode(String spaceCode)
    • getSpaceCode

      public String getSpaceCode()
    • setPermId

      public void setPermId(String permId)
    • getPermId

      public String getPermId()
    • setCode

      public void setCode(String code)
    • getCode

      public String getCode()
    • getIdentifier

      public String getIdentifier()
    • setIdentifier

      public void setIdentifier(String identifier)
    • getExperimentIdentifierOrNull

      public String getExperimentIdentifierOrNull()
    • setExperimentIdentifierOrNull

      public void setExperimentIdentifierOrNull(String experimentIdentifierOrNull)
    • setSampleTypeId

      public void setSampleTypeId(Long sampleTypeId)
    • getSampleTypeId

      public Long getSampleTypeId()
    • setSampleTypeCode

      public void setSampleTypeCode(String sampleTypeCode)
    • getSampleTypeCode

      public String getSampleTypeCode()
    • getProperties

      public HashMap<String,String> getProperties()
    • putProperty

      public void putProperty(String propCode, String value)
    • getMetaprojects

      public List<Metaproject> getMetaprojects()
    • addMetaproject

      public void addMetaproject(Metaproject metaproject)
    • setRegistrationDetails

      public void setRegistrationDetails(EntityRegistrationDetails registrationDetails)
    • getRegistrationDetails

      public EntityRegistrationDetails getRegistrationDetails()
    • setRetrievedFetchOptions

      public void setRetrievedFetchOptions(EnumSet<SampleFetchOption> retrievedFetchOptions)
    • getRetrievedFetchOptions

      public EnumSet<SampleFetchOption> getRetrievedFetchOptions()
    • setParents

      public void setParents(List<Sample> parents)
    • getParents

      public List<Sample> getParents()
    • getChildren

      public List<Sample> getChildren()
    • setChildren

      public void setChildren(List<Sample> children)
    • setParentReferences

      public void setParentReferences(List<Long> parentIDs, Map<Long,Sample> repository)
    • setChildReferences

      public void setChildReferences(List<Long> childIDs, Map<Long,Sample> repository)
    • setStub

      public void setStub(boolean isStub)