Interface ISample

    • Method Detail

      • setExperiment

        void setExperiment​(IExperimentImmutable experiment)
        Set the experiment for this sample. The experiment need not be immutable, but the immutable one is the superclass.
      • setSampleType

        void setSampleType​(java.lang.String type)
        Set the type for this sample.
      • setContainer

        void setContainer​(ISampleImmutable container)
        Set the container for this sample.
      • setPropertyValue

        void setPropertyValue​(java.lang.String propertyCode,
                              java.lang.String propertyValue)
        Set the value for a property.
      • setParentSampleIdentifiers

        void setParentSampleIdentifiers​(java.util.List<java.lang.String> parentSampleIdentifiers)
        Set the parent samples of this sample.
      • addAttachment

        void addAttachment​(java.lang.String filePath,
                           java.lang.String title,
                           java.lang.String description,
                           byte[] content)
        Add a new attachment to this sample.
        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.