Enum Class GroupEnum

java.lang.Object
java.lang.Enum<GroupEnum>
com.easydesk.enums.GroupEnum
All Implemented Interfaces:
Entitiable<Long,EasyDeskGroup>, Serializable, Comparable<GroupEnum>, Constable

public enum GroupEnum extends Enum<GroupEnum> implements Entitiable<Long,EasyDeskGroup>
System 에서 기본으로 사용하는 Group 을 id 로 정의한 enum.
Author:
Youngho Cho
  • Enum Constant Details

    • ALL

      public static final GroupEnum ALL
      System Dummy All meaning, not real Group
    • GLOBAL

      public static final GroupEnum GLOBAL
      System Global : parent of all modules should have User, Group ItemType Only 사용자가 EasyDesk 에 등록하면 Global 에 Guest 역할을 가지게 된다.
    • EASYDESK

      public static final GroupEnum EASYDESK
      easydesk web admin,
    • TEMPLATE

      public static final GroupEnum TEMPLATE
      Template Group
  • Method Details

    • values

      public static GroupEnum[] 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 GroupEnum 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
    • getId

      public Long getId()
      group id 를 구한다.
      Specified by:
      getId in interface Entitiable<Long,EasyDeskGroup>
      Returns:
      group id
    • represent

      public boolean represent(Group group)
    • getInstance

      public EasyDeskGroup getInstance()
      id 에 해당하는 EasyDeskGroup 을 구한다.
      Specified by:
      getInstance in interface Entitiable<Long,EasyDeskGroup>
      Returns:
      EasyDeskGroup
      Throws:
      RuntimeException - 조회 중 오류가 발생한 경우