Class ProjectData


  • public class ProjectData
    extends DataObject
    The data that makes up an OME Project along with links to its contained Datasets and the Experimenter that owns this Project.
    Since:
    OME2.2
    • Field Detail

      • NAME

        public static final java.lang.String NAME
        Identifies the ProjectI.NAME field.
        See Also:
        Constant Field Values
      • DESCRIPTION

        public static final java.lang.String DESCRIPTION
        Identifies the ProjectI.DESCRIPTION field.
        See Also:
        Constant Field Values
      • DATASET_LINKS

        public static final java.lang.String DATASET_LINKS
        Identifies the ProjectI.DATASETLINKS field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProjectData

        public ProjectData()
        Creates a new instance.
      • ProjectData

        public ProjectData​(omero.model.Project project)
        Creates a new instance.
        Parameters:
        project - Back pointer to the Project model object. Mustn't be null.
        Throws:
        java.lang.IllegalArgumentException - If the object is null.
    • Method Detail

      • setName

        public void setName​(java.lang.String name)
        Sets the name of the project.
        Parameters:
        name - The name of the project. Mustn't be null.
        Throws:
        java.lang.IllegalArgumentException - If the name is null.
      • getName

        public java.lang.String getName()
        Returns the name of the project.
        Returns:
        See above.
      • setDescription

        public void setDescription​(java.lang.String description)
        Sets the description of the project.
        Parameters:
        description - The description of the project.
      • getDescription

        public java.lang.String getDescription()
        Returns the description of the project.
        Returns:
        See above.
      • getAnnotationsCounts

        public java.util.Map<java.lang.Long,​java.lang.Long> getAnnotationsCounts()
        Returns the number of annotations linked to the object, key: id of the user, value: number of annotation. The map may be null if no annotation.
        Returns:
        See above.
      • getDatasets

        public java.util.Set<DatasetData> getDatasets()
        Returns the datasets contained in this project.
        Returns:
        See above.
      • setDatasets

        public void setDatasets​(java.util.Set<DatasetData> newValue)
        Sets the datasets contained in this project.
        Parameters:
        newValue - The set of datasets.