Package com.attivio.sdk.security
Class AttivioGroupMembership
- java.lang.Object
-
- com.attivio.sdk.security.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.CloneableRepresents an "is-member-of" relationship/association between a principal and a group that principal is a member of.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AttivioPrincipalKeygroupKeyThe object (group) key.static java.lang.StringGUID_PREFIXThe document ID prefix for storing group memberships.static java.lang.StringPREDICATE_IS_MEMBER_OFThe "is-member-of" predicate value, for group memberships.protected AttivioPrincipalKeyprincipalKeyThe subject (group member) key.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAttivioGroupMembership()The default constructor.AttivioGroupMembership(AttivioPrincipalKey principalKey, AttivioPrincipalKey groupKey)Constructs a group membership.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttivioGroupMembershipclone()booleanequals(java.lang.Object obj)AttivioPrincipalKeygetGroupKey()AttivioPrincipalKeygetPrincipalKey()inthashCode()java.lang.StringtoString()
-
-
-
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
-
principalKey
protected AttivioPrincipalKey principalKey
The subject (group member) key.
-
groupKey
protected AttivioPrincipalKey groupKey
The object (group) key.
-
-
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 principalgroupKey- the unique key of the group
-
-
Method Detail
-
getGroupKey
public AttivioPrincipalKey getGroupKey()
- Returns:
- the group key
-
getPrincipalKey
public AttivioPrincipalKey getPrincipalKey()
- Returns:
- the group member key
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
clone
public AttivioGroupMembership clone() throws java.lang.CloneNotSupportedException
- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
-