Enum GroupEnum

java.lang.Object
java.lang.Enum<GroupEnum>
pl.matsuo.core.model.user.GroupEnum
All Implemented Interfaces:
Serializable, Comparable<GroupEnum>, java.lang.constant.Constable

public enum GroupEnum
extends Enum<GroupEnum>
Most general group definitions. Created by tunguski on 22.12.13.
  • Enum Constant Details

    • ADMIN

      public static final GroupEnum ADMIN
      System IT administrator. Permissions checking returns true by default.
    • SUPERVISOR

      public static final GroupEnum SUPERVISOR
      User that has full access to company's data.
    • USER

      public static final GroupEnum USER
      Logged user. Added by default to all logged users. It's not recommended to save it in db.
    • GUEST

      public static final GroupEnum GUEST
      Not logged user.
  • Method Details

    • values

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

      public static GroupEnum valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null