Enum Class KbPrincipal

java.lang.Object
java.lang.Enum<KbPrincipal>
ru.bitel.bgbilling.kernel.kb.server.bean.enums.KbPrincipal
All Implemented Interfaces:
Serializable, Comparable<KbPrincipal>, Constable

public enum KbPrincipal extends Enum<KbPrincipal>
Тип субъекта в ACL базы знаний.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Все (без ограничений внутри провайдера).
    Договор (principal_id = id договора; актуально для клиентов провайдера).
    Группа пользователей (principal_id = id группы).
    Роль пользователя (principal_id = id роли).
    Пользователь (principal_id = id из таблицы user).
  • Method Summary

    Modifier and Type
    Method
    Description
    fromString(String value, KbPrincipal defaultValue)
    По строке (значение из БД); нераспознано - defaultValue.
    Returns the enum constant of this class with the specified name.
    static KbPrincipal[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • USER

      public static final KbPrincipal USER
      Пользователь (principal_id = id из таблицы user).
    • ROLE

      public static final KbPrincipal ROLE
      Роль пользователя (principal_id = id роли).
    • CONTRACT

      public static final KbPrincipal CONTRACT
      Договор (principal_id = id договора; актуально для клиентов провайдера).
    • GROUP

      public static final KbPrincipal GROUP
      Группа пользователей (principal_id = id группы).
    • ALL

      public static final KbPrincipal ALL
      Все (без ограничений внутри провайдера).
  • Method Details

    • values

      public static KbPrincipal[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static KbPrincipal valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromString

      public static KbPrincipal fromString(String value, KbPrincipal defaultValue)
      По строке (значение из БД); нераспознано - defaultValue.