Class AttivioPrincipalAlias
- java.lang.Object
-
- com.attivio.sdk.security.AttivioGroupMembership
-
- com.attivio.sdk.security.AttivioPrincipalAlias
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class AttivioPrincipalAlias extends AttivioGroupMembership
AttivioPrincipalAlias
defines an alias for a principal that allows multiple users to share the same ACLs.For example if bruce and batman are aliases in the 'Bruce - Batman' group, call:
AttivioPrincipal bruce = new AttivioPrincipal("gotham","bwayne","Bruce Wayne", AttivioPrincipal.PrincipalType.USER); AttivioPrincipal batman = new AttivioPrincipal("superheros","batman","Batman", AttivioPrincipal.PrincipalType.USER);
AttivioPrincipal alias = new AttivioPrincipal("aliases","Bruce - Batman","Bruce - Batman", AttivioPrincipal.PrincipalType.GROUP); alias.addGroupMembership( new AttivioPrincipalAlias( bruce.getPrincipalKey() , alias.getPrincipalKey() ) ); alias.addGroupMembership( new AttivioPrincipalAlias( batman.getPrincipalKey(), alias.getPrincipalKey() ) );
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.attivio.sdk.security.AttivioGroupMembership
groupKey, GUID_PREFIX, PREDICATE_IS_MEMBER_OF, principalKey
-
-
Constructor Summary
Constructors Constructor Description AttivioPrincipalAlias()
AttivioPrincipalAlias(AttivioPrincipalKey principalKey, AttivioPrincipalKey aliasGroupKey)
Constructs an alias membership.
-
Method Summary
-
Methods inherited from class com.attivio.sdk.security.AttivioGroupMembership
clone, equals, getGroupKey, getPrincipalKey, hashCode, toString
-
-
-
-
Constructor Detail
-
AttivioPrincipalAlias
public AttivioPrincipalAlias()
-
AttivioPrincipalAlias
public AttivioPrincipalAlias(AttivioPrincipalKey principalKey, AttivioPrincipalKey aliasGroupKey)
Constructs an alias membership.For example call: new AttivioPrincipalAlias( batman.getPrincipalKey(), bruceBatmanAliasGroup.getPrincipalKey() ) );
- Parameters:
principalKey
- the unique key of the principal to aliasaliasGroupKey
- the unique key of the alias group
-
-