Class Group

  • All Implemented Interfaces:
    Identifiable, Principal, java.io.Serializable

    public class Group
    extends GroupDescriptor
    Group is a collection of principals (users or other groups) that are uniquely identified by a name and context. A group is associated with and scoped to a context in which it is defined. Group contexts are contexts that are defined in the repository hierarchy and that have the membership capability.
    Since:
    1.2
    See Also:
    Serialized Form
    • Constructor Detail

      • Group

        public Group​(java.lang.String id,
                     ObjectIdentity context,
                     java.lang.String name,
                     java.lang.String description,
                     long revision,
                     java.util.Set<Principal> members)
        It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the groups returned by the API.
        Parameters:
        id - the unique identifier of the group.
        context - the context in which the group was defined.
        name - the name of the group.
        description - the description of the group.
        revision - the internal revision number of this group.
        members - the members of the group.
    • Method Detail

      • getRevision

        public long getRevision()
        Gets the internal revision number of the object.
        Returns:
        The internal revision number of the object.
      • getMembers

        public java.util.Set<Principal> getMembers()
        Gets the members of the group.
        Returns:
        The members.
      • setMembers

        public void setMembers​(java.util.Set<Principal> members)
        Sets the members of the group.
        Parameters:
        members - the members of the group.