Package com.easydesk.enums
Enum Class UserEnum
- All Implemented Interfaces:
Entitiable<Long,,EasyDeskUser> Serializable,Comparable<UserEnum>,Constable
System 에서 기본으로 사용하는 User 를 id 로 정의한 enum.
- Version:
- $Id$
- Author:
- Youngho Cho
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.easydesk.enums.Entitiable
represent
-
Enum Constant Details
-
ANONYMOUS
system anonymous user -
EASYDESK
system owner -
HELPDESK
통지(notification) 등을 처리하는 system 사용자 -
TESTER
테스트 용도의 사용자 -
ADMIN
system 관리자 -
ERROR_USER
Notification 발송시 Error 처리를 위해 도입했다.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getId
database userId 를 구한다.- Specified by:
getIdin interfaceEntitiable<Long,EasyDeskUser> - Returns:
- database userId
-
getInstance
id 에 해당하는 EasyDeskUser 를 구한다.- Specified by:
getInstancein interfaceEntitiable<Long,EasyDeskUser> - Returns:
- enum 에 해당하는 EasyDeskUser
- Throws:
RuntimeException- 사용자를 찾을 수 없는 경우 (database 설정 확인 필요)
-