Class 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 Detail

      • SampleInitializer

        public SampleInitializer()
    • 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<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Metaproject> getMetaprojects()
      • addMetaproject

        public void addMetaproject​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Metaproject metaproject)
      • 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)