Class Sample

    • Constructor Detail

      • Sample

        public Sample​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Sample sample)
      • Sample

        public Sample​(java.lang.String sampleIdentifier,
                      java.lang.String permId)
    • Method Detail

      • setExperiment

        public void setExperiment​(IExperimentImmutable experiment)
        Description copied from interface: ISample
        Set the experiment for this sample. The experiment need not be immutable, but the immutable one is the superclass.
        Specified by:
        setExperiment in interface ISample
      • setProject

        public void setProject​(IProjectImmutable project)
        Description copied from interface: ISample
        Set the project for this sample. The project need not be immutable, but the immutable one is the superclass.
        Specified by:
        setProject in interface ISample
      • setPropertyValue

        public void setPropertyValue​(java.lang.String propertyCode,
                                     java.lang.String propertyValue)
        Description copied from interface: ISample
        Set the value for a property.
        Specified by:
        setPropertyValue in interface ISample
      • setSampleType

        public void setSampleType​(java.lang.String type)
        Description copied from interface: ISample
        Set the type for this sample.
        Specified by:
        setSampleType in interface ISample
      • setParentSampleIdentifiers

        public void setParentSampleIdentifiers​(java.util.List<java.lang.String> parentSampleIdentifiers)
        Description copied from interface: ISample
        Set the parent samples of this sample.
        Specified by:
        setParentSampleIdentifiers in interface ISample
      • addAttachment

        public void addAttachment​(java.lang.String filePath,
                                  java.lang.String title,
                                  java.lang.String description,
                                  byte[] content)
        Description copied from interface: ISample
        Add a new attachment to this sample.
        Specified by:
        addAttachment in interface ISample
        Parameters:
        filePath - The path of the attachment as reported to the database.
        title - The title of the attachment.
        description - A description of the attachment.
        content - The actual content of the attachment.