Interface Principal

All Superinterfaces:
Identifiable, Serializable
All Known Implementing Classes:
AclMembers, AclOwner, Group, GroupDescriptor, User, UserDescriptor

public interface Principal extends Identifiable
A principal is either a user or a group that is defined in the system.
Since:
1.2
  • Method Details

    • getPrincipalId

      String getPrincipalId()
      Returns the principal identifier of a user or group. This uniquely identifies the principal within the system.
      Returns:
      The principal identifier of a user or group.
    • getPrincipalName

      String getPrincipalName()
      Returns the principal name of a user or group. This may not uniquely identify the principal and should only be used for display purposes.
      Returns:
      The principal name of a user or group.
    • hashCode

      int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      boolean equals(Object obj)
      Overrides:
      equals in class Object