com.softwareag.mdm.service
Class ActionPermission

java.lang.Object
  extended bycom.softwareag.mdm.service.ActionPermission

public final class ActionPermission
extends Object

Defines the permission for a user to execute or not an action. The possible states are :


Field Summary
static Map ALL_ACTIONPERMISSION_NOMENCLATURE
           
static Map ALL_READONLY_ACTIONPERMISSION_NOMENCLATURE
           
 
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()
           
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()
           
static ActionPermission parseFlag(char accessFlag)
           
static ActionPermission parseFlag(String actionFlag)
           
 String toDisplayString(Locale aLocale, char aFlag)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALL_ACTIONPERMISSION_NOMENCLATURE

public static Map ALL_ACTIONPERMISSION_NOMENCLATURE

ALL_READONLY_ACTIONPERMISSION_NOMENCLATURE

public static Map ALL_READONLY_ACTIONPERMISSION_NOMENCLATURE
Method Detail

getEnabled

public static ActionPermission getEnabled()
Factory method that specifies that an action may be executed in the current session context.


getDisabled

public 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.


getDisabled

public 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.


getHidden

public 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.


toString

public String toString()

isEnabled

public boolean isEnabled()
See Also:
getEnabled()

isDisabled

public boolean isDisabled()
See Also:
getDisabled(), getDisabled(UserMessage)

isHidden

public boolean isHidden()
See Also:
getHidden()

isDisabledOrHidden

public boolean isDisabledOrHidden()
This method returns the opposite of isEnabled().


getDisabledReason

public UserMessage getDisabledReason()
Only defined if this state is set as 'disabled' and a specific reason is provided.

See Also:
getDisabled(UserMessage)

parseFlag

public static ActionPermission parseFlag(String actionFlag)

parseFlag

public static ActionPermission parseFlag(char accessFlag)

getFlag

public char getFlag()

getActionPermissionNomenclature

public static Nomenclature getActionPermissionNomenclature(Locale currentLocale)

toDisplayString

public String toDisplayString(Locale aLocale,
                              char aFlag)

getReadOnlyActionPermissionNomenclature

public static Nomenclature getReadOnlyActionPermissionNomenclature(Locale currentLocale)


(report a bug)
webMethods MDM 4.2.8 [0558]
Copyright Software AG 2000-2007. All rights reserved.