Interface Principal

All Superinterfaces:
Comparable<Principal>
All Known Subinterfaces:
ExternalGroup, Group, User

public interface Principal extends Comparable<Principal>
This interface represents Users and Groups
Since:
3.1.324
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Principal type Group.
    static final int
    Principal type User.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the unique id of this principal
    Returns the name of this principal.
    int
    Returns the type of this principal (GROUP or USER)

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Field Details

  • Method Details

    • getType

      int getType()
      Returns the type of this principal (GROUP or USER)
      Returns:
      type of this principal (GROUP or USER)
      Since:
      3.1.324
    • getName

      String getName()
      Returns the name of this principal.
      Returns:
      name of this principal
      Since:
      3.1.324
    • getId

      long getId()
      Returns the unique id of this principal
      Returns:
      unique id
      Since:
      4.0.70