Package omero.gateway.model
Class GroupData
- java.lang.Object
-
- omero.gateway.model.DataObject
-
- omero.gateway.model.GroupData
-
public class GroupData extends DataObject
The data that makes up an OME Group along with the various members of the Group- Since:
- OME2.2
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULTIdentifies thedefaultgroup.static java.lang.StringDESCRIPTIONIdentifies theExperimenterGroupI.DESCRIPTIONfield.static java.lang.StringGROUP_EXPERIMENTER_MAPIdentifies theExperimenterGroupI.GROUPEXPERIMENTERMAPfield.static java.lang.StringGUESTIdentifies theGuestgroup.static java.lang.StringNAMEIdentifies theExperimenterGroupI.NAMEfield.static intPERMISSIONS_GROUP_READIndicates that the group isGroupi.e.static intPERMISSIONS_GROUP_READ_LINKIndicates that the group isGroupi.e.static java.lang.StringPERMISSIONS_GROUP_READ_LINK_SHORT_TEXTIndicates that the group isGroupi.e.static java.lang.StringPERMISSIONS_GROUP_READ_LINK_TEXTIndicates that the group isGroupi.e.static java.lang.StringPERMISSIONS_GROUP_READ_SHORT_TEXTIndicates that the group isGroupi.e.static java.lang.StringPERMISSIONS_GROUP_READ_TEXTIndicates that the group isGroupi.e.static intPERMISSIONS_GROUP_READ_WRITEIndicates that the group isGroupi.e.static java.lang.StringPERMISSIONS_GROUP_READ_WRITE_SHORT_TEXTIndicates that the group isGroupi.e.static java.lang.StringPERMISSIONS_GROUP_READ_WRITE_TEXTIndicates that the group isGroupi.e.static intPERMISSIONS_PRIVATEIndicates that the group isPrivatei.e.static java.lang.StringPERMISSIONS_PRIVATE_TEXTIndicates that the group isPrivatei.e.static intPERMISSIONS_PUBLIC_READIndicates that the group isPublici.e.static java.lang.StringPERMISSIONS_PUBLIC_READ_TEXTIndicates that the group isPublici.e.static intPERMISSIONS_PUBLIC_READ_WRITEIndicates that the group isPublici.e.static java.lang.StringPERMISSIONS_PUBLIC_READ_WRITE_TEXTIndicates that the group isPublici.e.static java.lang.StringSYSTEMIdentifies theSystemgroup.static java.lang.StringUSERIdentifies theUsergroup.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()Returns the description of the group.java.util.Set<ExperimenterData>getExperimenters()Returns the experimenters contained in this group.longgetGroupId()Overridden to return the id of the object.java.util.Set<ExperimenterData>getLeaders()Returns the experimenters contained in this group.java.util.Set<ExperimenterData>getMembersOnly()Returns the list of experimenters that are not owners of the group.java.lang.StringgetName()Returns the name of the group.voidsetDescription(java.lang.String description)Sets the name of the group.voidsetExperimenters(java.util.Set<ExperimenterData> newValue)Sets the experimenters contained in this group.voidsetName(java.lang.String name)Sets the name of the group.-
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, getId, getOwner, getPermissions, getUpdated, getVersion, isDirty, isLoaded, nullDetails, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, setDirty, setId, setValue, setVersion, timeOfEvent, toString
-
-
-
-
Field Detail
-
PERMISSIONS_PRIVATE
public static final int PERMISSIONS_PRIVATE
Indicates that the group isPrivatei.e. RW----.- See Also:
- Constant Field Values
-
PERMISSIONS_GROUP_READ
public static final int PERMISSIONS_GROUP_READ
Indicates that the group isGroupi.e. RWR---.- See Also:
- Constant Field Values
-
PERMISSIONS_GROUP_READ_LINK
public static final int PERMISSIONS_GROUP_READ_LINK
Indicates that the group isGroupi.e. RWRA--.- See Also:
- Constant Field Values
-
PERMISSIONS_GROUP_READ_WRITE
public static final int PERMISSIONS_GROUP_READ_WRITE
Indicates that the group isGroupi.e. RWRW--.- See Also:
- Constant Field Values
-
PERMISSIONS_PUBLIC_READ
public static final int PERMISSIONS_PUBLIC_READ
Indicates that the group isPublici.e. RWRWR-.- See Also:
- Constant Field Values
-
PERMISSIONS_PUBLIC_READ_WRITE
public static final int PERMISSIONS_PUBLIC_READ_WRITE
Indicates that the group isPublici.e. RWRWRW.- See Also:
- Constant Field Values
-
PERMISSIONS_PRIVATE_TEXT
public static final java.lang.String PERMISSIONS_PRIVATE_TEXT
Indicates that the group isPrivatei.e. RW----.- See Also:
- Constant Field Values
-
PERMISSIONS_GROUP_READ_TEXT
public static final java.lang.String PERMISSIONS_GROUP_READ_TEXT
Indicates that the group isGroupi.e. RWR---.- See Also:
- Constant Field Values
-
PERMISSIONS_GROUP_READ_LINK_TEXT
public static final java.lang.String PERMISSIONS_GROUP_READ_LINK_TEXT
Indicates that the group isGroupi.e. RWRA--.- See Also:
- Constant Field Values
-
PERMISSIONS_GROUP_READ_WRITE_TEXT
public static final java.lang.String PERMISSIONS_GROUP_READ_WRITE_TEXT
Indicates that the group isGroupi.e. RWRW--.- See Also:
- Constant Field Values
-
PERMISSIONS_PUBLIC_READ_TEXT
public static final java.lang.String PERMISSIONS_PUBLIC_READ_TEXT
Indicates that the group isPublici.e. RWRWR-.- See Also:
- Constant Field Values
-
PERMISSIONS_PUBLIC_READ_WRITE_TEXT
public static final java.lang.String PERMISSIONS_PUBLIC_READ_WRITE_TEXT
Indicates that the group isPublici.e. RWRWRW.- See Also:
- Constant Field Values
-
PERMISSIONS_GROUP_READ_SHORT_TEXT
public static final java.lang.String PERMISSIONS_GROUP_READ_SHORT_TEXT
Indicates that the group isGroupi.e. RWR---.- See Also:
- Constant Field Values
-
PERMISSIONS_GROUP_READ_LINK_SHORT_TEXT
public static final java.lang.String PERMISSIONS_GROUP_READ_LINK_SHORT_TEXT
Indicates that the group isGroupi.e. RWRA--.- See Also:
- Constant Field Values
-
PERMISSIONS_GROUP_READ_WRITE_SHORT_TEXT
public static final java.lang.String PERMISSIONS_GROUP_READ_WRITE_SHORT_TEXT
Indicates that the group isGroupi.e. RWRW--.- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
Identifies theExperimenterGroupI.NAMEfield.- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
Identifies theExperimenterGroupI.DESCRIPTIONfield.- See Also:
- Constant Field Values
-
GROUP_EXPERIMENTER_MAP
public static final java.lang.String GROUP_EXPERIMENTER_MAP
Identifies theExperimenterGroupI.GROUPEXPERIMENTERMAPfield.- See Also:
- Constant Field Values
-
USER
public static final java.lang.String USER
Identifies theUsergroup.- See Also:
- Constant Field Values
-
SYSTEM
public static final java.lang.String SYSTEM
Identifies theSystemgroup.- See Also:
- Constant Field Values
-
GUEST
public static final java.lang.String GUEST
Identifies theGuestgroup.- See Also:
- Constant Field Values
-
DEFAULT
public static final java.lang.String DEFAULT
Identifies thedefaultgroup.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GroupData
public GroupData()
Creates a new instance.
-
GroupData
public GroupData(omero.model.ExperimenterGroup group)
Creates a new instance.- Parameters:
group- Back pointer to theExperimenterGroupmodel object. Mustn't benull.- Throws:
java.lang.IllegalArgumentException- If the object isnull.
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of the group.- Returns:
- See above.
-
setName
public void setName(java.lang.String name)
Sets the name of the group.- Parameters:
name- The name of the group. Mustn't benull.- Throws:
java.lang.IllegalArgumentException- If the name isnull.
-
getDescription
public java.lang.String getDescription()
Returns the description of the group.- Returns:
- See above.
-
setDescription
public void setDescription(java.lang.String description)
Sets the name of the group.- Parameters:
description- The description of the group. Mustn't benull.- Throws:
java.lang.IllegalArgumentException- If the name isnull.
-
getLeaders
public java.util.Set<ExperimenterData> getLeaders()
Returns the experimenters contained in this group.- Returns:
- See above.
-
getExperimenters
public java.util.Set<ExperimenterData> getExperimenters()
Returns the experimenters contained in this group.- Returns:
- See above.
-
getMembersOnly
public java.util.Set<ExperimenterData> getMembersOnly()
Returns the list of experimenters that are not owners of the group.- Returns:
- See above.
-
getGroupId
public long getGroupId()
Overridden to return the id of the object.- Overrides:
getGroupIdin classDataObject- Returns:
- See above.
- See Also:
DataObject.getGroupId()
-
setExperimenters
public void setExperimenters(java.util.Set<ExperimenterData> newValue)
Sets the experimenters contained in this group.- Parameters:
newValue- The set of experimenters.
-
-