Package fr.igred.omero.meta
Class GroupWrapper
Class containing a GroupData object.
Wraps function calls to the GroupData contained.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Indicates that the group isGroup
i.e.static final int
Indicates that the group isGroup
i.e.static final int
Indicates that the group isGroup
i.e.static final int
Indicates that the group isPrivate
i.e.static final int
Indicates that the group isPublic
i.e.static final int
Indicates that the group isPublic
i.e.Fields inherited from class fr.igred.omero.GenericObjectWrapper
data
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the GroupData contained.Returns the description of the group.Returns the experimenters contained in this group.Returns the leaders of this group.Returns the list of experimenters that are not owners of the group.getName()
Returns the name of the group.int
Returns the permissions level.void
setDescription
(String description) Sets the description of the group.void
Sets the name of the group.Methods inherited from class fr.igred.omero.GenericObjectWrapper
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, distinct, flatten, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrap
-
Field Details
-
PERMISSIONS_PRIVATE
public static final int PERMISSIONS_PRIVATEIndicates that the group isPrivate
i.e. RW----.- See Also:
-
PERMISSIONS_GROUP_READ
public static final int PERMISSIONS_GROUP_READIndicates that the group isGroup
i.e. RWR---.- See Also:
-
PERMISSIONS_GROUP_READ_LINK
public static final int PERMISSIONS_GROUP_READ_LINKIndicates that the group isGroup
i.e. RWRA--.- See Also:
-
PERMISSIONS_GROUP_READ_WRITE
public static final int PERMISSIONS_GROUP_READ_WRITEIndicates that the group isGroup
i.e. RWRW--.- See Also:
-
PERMISSIONS_PUBLIC_READ
public static final int PERMISSIONS_PUBLIC_READIndicates that the group isPublic
i.e. RWRWR-.- See Also:
-
PERMISSIONS_PUBLIC_READ_WRITE
public static final int PERMISSIONS_PUBLIC_READ_WRITEIndicates that the group isPublic
i.e. RWRWRW.- See Also:
-
-
Constructor Details
-
GroupWrapper
Constructor of the class GroupWrapper.- Parameters:
group
- The GroupData to wrap in the GroupWrapper.
-
-
Method Details
-
getName
Returns the name of the group.- Returns:
- See above.
-
setName
Sets the name of the group.- Parameters:
name
- The name of the group. Mustn't benull
.- Throws:
IllegalArgumentException
- If the name isnull
.
-
asGroupData
Deprecated.Returns the GroupData contained. UseGenericObjectWrapper.asDataObject()
instead.- Returns:
- See above.
-
getDescription
Returns the description of the group.- Returns:
- See above.
-
setDescription
Sets the description of the group.- Parameters:
description
- The description of the group. Mustn't benull
.- Throws:
IllegalArgumentException
- If the name isnull
.
-
getLeaders
Returns the leaders of this group.- Returns:
- See above.
-
getExperimenters
Returns the experimenters contained in this group.- Returns:
- See above.
-
getMembersOnly
Returns the list of experimenters that are not owners of the group.- Returns:
- See above.
-
getPermissionsLevel
public int getPermissionsLevel()Returns the permissions level.- Returns:
- See above.
-