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.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 Summary
Fields Modifier and Type Field Description protected AttivioPrincipalKey
groupKey
The object (group) key.static java.lang.String
GUID_PREFIX
The document ID prefix for storing group memberships.static java.lang.String
PREDICATE_IS_MEMBER_OF
The "is-member-of" predicate value, for group memberships.protected AttivioPrincipalKey
principalKey
The subject (group member) key.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AttivioGroupMembership()
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 AttivioGroupMembership
clone()
boolean
equals(java.lang.Object obj)
AttivioPrincipalKey
getGroupKey()
AttivioPrincipalKey
getPrincipalKey()
int
hashCode()
java.lang.String
toString()
-
-
-
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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
clone
public AttivioGroupMembership clone() throws java.lang.CloneNotSupportedException
- Overrides:
clone
in classjava.lang.Object
- Throws:
java.lang.CloneNotSupportedException
-
-