Class AttivioGroupMembership

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable
    Direct Known Subclasses:
    AttivioPrincipalAlias

    public class AttivioGroupMembership
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable
    Represents an "is-member-of" relationship/association between a principal and a group that principal is a member of.
    See Also:
    Serialized Form
    • Field Detail

      • GUID_PREFIX

        public static final java.lang.String GUID_PREFIX
        The document ID prefix for storing group memberships.
        See Also:
        Constant Field Values
      • PREDICATE_IS_MEMBER_OF

        public static final java.lang.String PREDICATE_IS_MEMBER_OF
        The "is-member-of" predicate value, for group memberships.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AttivioGroupMembership

        protected AttivioGroupMembership()
        The default constructor.
      • AttivioGroupMembership

        public AttivioGroupMembership​(AttivioPrincipalKey principalKey,
                                      AttivioPrincipalKey groupKey)
        Constructs a group membership.

        For example if Tom is a member of the Engineering group, call: new AttivioGroupMembership(tom,Engineering)

        Parameters:
        principalKey - the unique key of the principal
        groupKey - the unique key of the group
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • clone

        public AttivioGroupMembership clone()
                                     throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException