|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.orchestranetworks.service.ActionPermission
Defines the permission for a user to execute or not an action. The possible states are :
| Method Summary | |
static Nomenclature |
getActionPermissionNomenclature(Locale currentLocale)
|
static ActionPermission |
getDisabled()
Factory method that specifies that an action cannot be executed in the current session context, however the action is displayed to the user, without giving a specific reason. |
static ActionPermission |
getDisabled(UserMessage disabledReason)
Factory method that specifies that an action cannot be executed in the current session context, however the action is displayed to the user, and the reason specified is given to the user. |
UserMessage |
getDisabledReason()
Only defined if this state is set as 'disabled' and a specific reason is provided. |
static ActionPermission |
getEnabled()
Factory method that specifies that an action may be executed in the current session context. |
char |
getFlag()
Persistent flag that identifies the permission. |
static ActionPermission |
getHidden()
Factory method that specifies that an action cannot be executed in the current session context and the action is not displayed to the user. |
static Nomenclature |
getReadOnlyActionPermissionNomenclature(Locale currentLocale)
|
boolean |
isDisabled()
|
boolean |
isDisabledOrHidden()
This method returns the opposite of isEnabled(). |
boolean |
isEnabled()
|
boolean |
isHidden()
|
boolean |
isSameFlag(String aFlagString)
Returns true if the flag specified is the
same as the flag of this permission. |
static ActionPermission |
parseFlag(char accessFlag)
|
static ActionPermission |
parseFlag(String actionFlag)
|
String |
toDisplayString(Locale aLocale)
|
static String |
toDisplayString(Locale aLocale,
char aFlag)
Deprecated. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public static ActionPermission getEnabled()
public static ActionPermission getDisabled()
public static ActionPermission getDisabled(UserMessage disabledReason)
public static ActionPermission getHidden()
public String toString()
public boolean isEnabled()
getEnabled()public boolean isDisabled()
getDisabled(),
getDisabled(UserMessage)public boolean isHidden()
getHidden()public boolean isDisabledOrHidden()
isEnabled().
public UserMessage getDisabledReason()
getDisabled(UserMessage)public static ActionPermission parseFlag(String actionFlag)
public static ActionPermission parseFlag(char accessFlag)
public char getFlag()
public boolean isSameFlag(String aFlagString)
true if the flag specified is the
same as the flag of this permission.
public static Nomenclature getActionPermissionNomenclature(Locale currentLocale)
public String toDisplayString(Locale aLocale)
public static String toDisplayString(Locale aLocale,
char aFlag)
toDisplayString(Locale)public static Nomenclature getReadOnlyActionPermissionNomenclature(Locale currentLocale)
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
(report a bug)
EBX.Platform 4.5.3 [0607:0001]
Copyright Orchestra Networks 2000-2008. All rights reserved.