Package com.easydesk.localization.enums
Enum Class SecurityL10NKey
- All Implemented Interfaces:
LocalizableKey,Serializable,Comparable<SecurityL10NKey>,Constable
Java 코드에서 쓰는 resource key 모음 (EasyDeskBundle_ko.properties, EasyDeskModuleBundle_ko.properties). bundle 의 key 마다 상수가 하나씩 있고, 상수 이름은 key 를 대문자 +
'_' 로 바꾼 것이다 (예:
MovedFromItemDescription -> MOVED_FROM_ITEM_DESCRIPTION).
toString() 은 실제 bundle key 를 돌려준다.
service.getString(locale, L10NKey.ACCEPT); // "Accept"
service.format(new L10NMessage(L10NKey.MOVED_FROM_ITEM_DESCRIPTION, args), locale);
L10NKey.fromKey("Accept"); // L10NKey.ACCEPT
- Author:
- 조 영 호
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionYouDoNotHavePermissionToActionWithDebug , parameters : 2YouDoNotHavePermissionToDeleteReport , parameters : 1YouHaveRoleAlready , parameters : 3 -
Method Summary
Modifier and TypeMethodDescriptionstatic SecurityL10NKeybundle key 로 상수를 찾는다.getKey()toString()static SecurityL10NKeyReturns the enum constant of this class with the specified name.static SecurityL10NKey[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADD_MODULE
-
ADD_NEW_ROLE
-
ADD_NEW_USER
-
ADD_PERMISSION
-
ADD_ROLE
-
ADD_USER
-
ADMIN
-
ALL_ROLE
-
ANONYMOUS
-
ANY
-
DOMAIN__ADMIN
-
DOMAIN__EDIT
-
GROUP
-
GUEST
-
HELP_DESK
-
ISSUE__ADD_PERSONAL_NOTE
-
ISSUE__APPROVE
-
ISSUE__ASSIGN
-
ISSUE__ATTACH
-
ISSUE__COPY
-
ISSUE__DELETE
-
ISSUE__EDIT
-
ISSUE__ENTER
-
ISSUE__FILE_ATTACHMENT_REMOVE
-
ISSUE__FILE_ATTACHMENT
-
ISSUE__MODERATION
-
ISSUE__MODIFY_REQUEST
-
ISSUE__MOVE
-
ISSUE__REQUEST
-
ISSUE__SEARCH
-
ISSUE__TEMPLATE_ENTER
-
ISSUE__VIEW
-
ISSUE__XML_EXPORT
-
ISSUE__XML_IMPORT
-
ISSUE__X_SEARCH
-
MEMBER
-
MODULE__ADD
-
MODULE__CONFIGURE
-
MODULE__EDIT
-
MODULE__PERMISSION_ASSIGN
-
NO_PERMISSION_TO_EDIT_REPORT
-
NO_PERMISSION_TO_VIEW_ITEM
-
OWNER
-
ROLE
-
ROOT
-
SET_OF_PERMISSIONS
-
SET_OF_PERMISSIONS_PER_ROLE
-
SET_OF_ROLES
-
SET_OF_USERS
-
STAFF
-
USER__APPROVE_ROLES
-
USER__EDIT_PREFERENCES
-
USER__MANAGE_USER_GROUP
-
USER__SEARCH
-
VOTE__MANAGE
-
YOU_DO_NOT_HAVE_PERMISSION
-
YOU_DO_NOT_HAVE_PERMISSION_TO_ACTION
-
YOU_DO_NOT_HAVE_PERMISSION_TO_ACTION_WITH_DEBUG
YouDoNotHavePermissionToActionWithDebug , parameters : 2 -
YOU_DO_NOT_HAVE_PERMISSION_TO_DELETE_REPORT
YouDoNotHavePermissionToDeleteReport , parameters : 1 -
YOU_HAVE_ROLE_ALREADY
YouHaveRoleAlready , parameters : 3
-
-
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
-
getKey
- Returns:
- bundle 의 key (예: "MovedFromItemDescription")
-
toString
- Overrides:
toStringin classEnum<SecurityL10NKey>- Returns:
- bundle 의 key
-
fromKey
bundle key 로 상수를 찾는다.- Throws:
IllegalArgumentException- 그런 key 가 없을 때
-