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.String
DEFAULT
Identifies thedefault
group.static java.lang.String
DESCRIPTION
Identifies theExperimenterGroupI.DESCRIPTION
field.static java.lang.String
GROUP_EXPERIMENTER_MAP
Identifies theExperimenterGroupI.GROUPEXPERIMENTERMAP
field.static java.lang.String
GUEST
Identifies theGuest
group.static java.lang.String
NAME
Identifies theExperimenterGroupI.NAME
field.static int
PERMISSIONS_GROUP_READ
Indicates that the group isGroup
i.e.static int
PERMISSIONS_GROUP_READ_LINK
Indicates that the group isGroup
i.e.static java.lang.String
PERMISSIONS_GROUP_READ_LINK_SHORT_TEXT
Indicates that the group isGroup
i.e.static java.lang.String
PERMISSIONS_GROUP_READ_LINK_TEXT
Indicates that the group isGroup
i.e.static java.lang.String
PERMISSIONS_GROUP_READ_SHORT_TEXT
Indicates that the group isGroup
i.e.static java.lang.String
PERMISSIONS_GROUP_READ_TEXT
Indicates that the group isGroup
i.e.static int
PERMISSIONS_GROUP_READ_WRITE
Indicates that the group isGroup
i.e.static java.lang.String
PERMISSIONS_GROUP_READ_WRITE_SHORT_TEXT
Indicates that the group isGroup
i.e.static java.lang.String
PERMISSIONS_GROUP_READ_WRITE_TEXT
Indicates that the group isGroup
i.e.static int
PERMISSIONS_PRIVATE
Indicates that the group isPrivate
i.e.static java.lang.String
PERMISSIONS_PRIVATE_TEXT
Indicates that the group isPrivate
i.e.static int
PERMISSIONS_PUBLIC_READ
Indicates that the group isPublic
i.e.static java.lang.String
PERMISSIONS_PUBLIC_READ_TEXT
Indicates that the group isPublic
i.e.static int
PERMISSIONS_PUBLIC_READ_WRITE
Indicates that the group isPublic
i.e.static java.lang.String
PERMISSIONS_PUBLIC_READ_WRITE_TEXT
Indicates that the group isPublic
i.e.static java.lang.String
SYSTEM
Identifies theSystem
group.static java.lang.String
USER
Identifies theUser
group.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
Returns the description of the group.java.util.Set<ExperimenterData>
getExperimenters()
Returns the experimenters contained in this group.long
getGroupId()
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.String
getName()
Returns the name of the group.void
setDescription(java.lang.String description)
Sets the name of the group.void
setExperimenters(java.util.Set<ExperimenterData> newValue)
Sets the experimenters contained in this group.void
setName(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 isPrivate
i.e. RW----.- See Also:
- Constant Field Values
-
PERMISSIONS_GROUP_READ
public static final int PERMISSIONS_GROUP_READ
Indicates that the group isGroup
i.e. RWR---.- See Also:
- Constant Field Values
-
PERMISSIONS_GROUP_READ_LINK
public static final int PERMISSIONS_GROUP_READ_LINK
Indicates that the group isGroup
i.e. RWRA--.- See Also:
- Constant Field Values
-
PERMISSIONS_GROUP_READ_WRITE
public static final int PERMISSIONS_GROUP_READ_WRITE
Indicates that the group isGroup
i.e. RWRW--.- See Also:
- Constant Field Values
-
PERMISSIONS_PUBLIC_READ
public static final int PERMISSIONS_PUBLIC_READ
Indicates that the group isPublic
i.e. RWRWR-.- See Also:
- Constant Field Values
-
PERMISSIONS_PUBLIC_READ_WRITE
public static final int PERMISSIONS_PUBLIC_READ_WRITE
Indicates that the group isPublic
i.e. RWRWRW.- See Also:
- Constant Field Values
-
PERMISSIONS_PRIVATE_TEXT
public static final java.lang.String PERMISSIONS_PRIVATE_TEXT
Indicates that the group isPrivate
i.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 isGroup
i.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 isGroup
i.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 isGroup
i.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 isPublic
i.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 isPublic
i.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 isGroup
i.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 isGroup
i.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 isGroup
i.e. RWRW--.- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
Identifies theExperimenterGroupI.NAME
field.- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
Identifies theExperimenterGroupI.DESCRIPTION
field.- See Also:
- Constant Field Values
-
GROUP_EXPERIMENTER_MAP
public static final java.lang.String GROUP_EXPERIMENTER_MAP
Identifies theExperimenterGroupI.GROUPEXPERIMENTERMAP
field.- See Also:
- Constant Field Values
-
USER
public static final java.lang.String USER
Identifies theUser
group.- See Also:
- Constant Field Values
-
SYSTEM
public static final java.lang.String SYSTEM
Identifies theSystem
group.- See Also:
- Constant Field Values
-
GUEST
public static final java.lang.String GUEST
Identifies theGuest
group.- See Also:
- Constant Field Values
-
DEFAULT
public static final java.lang.String DEFAULT
Identifies thedefault
group.- 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 theExperimenterGroup
model 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:
getGroupId
in 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.
-
-