Package omero.gateway.model
Class ProjectData
- java.lang.Object
-
- omero.gateway.model.DataObject
-
- omero.gateway.model.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 Summary
Fields Modifier and Type Field Description static java.lang.StringDATASET_LINKSIdentifies theProjectI.DATASETLINKSfield.static java.lang.StringDESCRIPTIONIdentifies theProjectI.DESCRIPTIONfield.static java.lang.StringNAMEIdentifies theProjectI.NAMEfield.
-
Constructor Summary
Constructors Constructor Description ProjectData()Creates a new instance.ProjectData(omero.model.Project project)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.java.util.Set<DatasetData>getDatasets()Returns the datasets contained in this project.java.lang.StringgetDescription()Returns the description of the project.java.lang.StringgetName()Returns the name of the project.voidsetDatasets(java.util.Set<DatasetData> newValue)Sets the datasets contained in this project.voidsetDescription(java.lang.String description)Sets the description of the project.voidsetName(java.lang.String name)Sets the name of the project.-
Methods inherited from class omero.gateway.model.DataObject
asAnnotation, asChannel, asDataset, asExperimenter, asFolder, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlaneInfo, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getDetails, getGroupId, getId, getOwner, getPermissions, getUpdated, getVersion, isDirty, isLoaded, nullDetails, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, setDirty, setId, setValue, setVersion, timeOfEvent, toString
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
Identifies theProjectI.NAMEfield.- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
Identifies theProjectI.DESCRIPTIONfield.- See Also:
- Constant Field Values
-
DATASET_LINKS
public static final java.lang.String DATASET_LINKS
Identifies theProjectI.DATASETLINKSfield.- 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 theProjectmodel object. Mustn't benull.- Throws:
java.lang.IllegalArgumentException- If the object isnull.
-
-
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 benull.- Throws:
java.lang.IllegalArgumentException- If the name isnull.
-
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 benullif 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.
-
-