Class 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 Detail

      • PERMISSIONS_PRIVATE

        public static final int PERMISSIONS_PRIVATE
        Indicates that the group is Private i.e. RW----.
        See Also:
        Constant Field Values
      • PERMISSIONS_GROUP_READ

        public static final int PERMISSIONS_GROUP_READ
        Indicates that the group is Group i.e. RWR---.
        See Also:
        Constant Field Values
      • PERMISSIONS_GROUP_READ_LINK

        public static final int PERMISSIONS_GROUP_READ_LINK
        Indicates that the group is Group i.e. RWRA--.
        See Also:
        Constant Field Values
      • PERMISSIONS_GROUP_READ_WRITE

        public static final int PERMISSIONS_GROUP_READ_WRITE
        Indicates that the group is Group i.e. RWRW--.
        See Also:
        Constant Field Values
      • PERMISSIONS_PUBLIC_READ

        public static final int PERMISSIONS_PUBLIC_READ
        Indicates that the group is Public i.e. RWRWR-.
        See Also:
        Constant Field Values
      • PERMISSIONS_PUBLIC_READ_WRITE

        public static final int PERMISSIONS_PUBLIC_READ_WRITE
        Indicates that the group is Public i.e. RWRWRW.
        See Also:
        Constant Field Values
      • PERMISSIONS_PRIVATE_TEXT

        public static final java.lang.String PERMISSIONS_PRIVATE_TEXT
        Indicates that the group is Private 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 is Group 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 is Group 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 is Group 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 is Public 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 is Public 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 is Group 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 is Group 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 is Group i.e. RWRW--.
        See Also:
        Constant Field Values
      • NAME

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

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

        public static final java.lang.String GROUP_EXPERIMENTER_MAP
        Identifies the ExperimenterGroupI.GROUPEXPERIMENTERMAP field.
        See Also:
        Constant Field Values
      • USER

        public static final java.lang.String USER
        Identifies the User group.
        See Also:
        Constant Field Values
      • SYSTEM

        public static final java.lang.String SYSTEM
        Identifies the System group.
        See Also:
        Constant Field Values
      • GUEST

        public static final java.lang.String GUEST
        Identifies the Guest group.
        See Also:
        Constant Field Values
      • DEFAULT

        public static final java.lang.String DEFAULT
        Identifies the default 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 the ExperimenterGroup model object. Mustn't be null.
        Throws:
        java.lang.IllegalArgumentException - If the object is null.
    • 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 be null.
        Throws:
        java.lang.IllegalArgumentException - If the name is null.
      • 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 be null.
        Throws:
        java.lang.IllegalArgumentException - If the name is null.
      • 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.
      • setExperimenters

        public void setExperimenters​(java.util.Set<ExperimenterData> newValue)
        Sets the experimenters contained in this group.
        Parameters:
        newValue - The set of experimenters.