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() ) );groupKey, GUID_PREFIX, PREDICATE_IS_MEMBER_OF, principalKey
Constructor and Description |
---|
AttivioPrincipalAlias() |
AttivioPrincipalAlias(AttivioPrincipalKey principalKey,
AttivioPrincipalKey aliasGroupKey)
Constructs an alias membership.
|
clone, equals, getGroupKey, getPrincipalKey, hashCode, toString
public AttivioPrincipalAlias()
public AttivioPrincipalAlias(AttivioPrincipalKey principalKey, AttivioPrincipalKey aliasGroupKey)
principalKey
- the unique key of the principal to aliasaliasGroupKey
- the unique key of the alias groupCopyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.