Class Group

All Implemented Interfaces:
Identifiable, Principal, 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:
  • Constructor Details

    • Group

      public Group(String id, ObjectIdentity context, String name, String description, long revision, 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 Details

    • getRevision

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

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

      public void setMembers(Set<Principal> members)
      Sets the members of the group.
      Parameters:
      members - the members of the group.
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Principal
      Overrides:
      hashCode in class GroupDescriptor
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface Principal
      Overrides:
      equals in class GroupDescriptor
    • toString

      public String toString()
      Overrides:
      toString in class GroupDescriptor