Class 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
    • 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 alias
        aliasGroupKey - the unique key of the alias group