public interface ActionManager
Modifier and Type | Method and Description |
---|---|
Action |
getActionByGlobalId(String actionId,
String globalId,
Locale locale)
Returns the
Action instance for the given action id. |
List<Action> |
getAllowedActions(ActionContext actionContext,
Locale locale)
Returns the allowed
Action s for the specified context and the work object id. |
List<ActionGroup> |
getAllowedActions(String context,
String globalId,
Locale locale)
Returns the allowed
ActionGroup s for the specified context and the work object id. |
List<Action> |
getAllowedActionsForType(String type,
Optional<String> qualifier,
Locale locale)
Returns the allowed
Action s for the specified Type. |
List<ActionGroup> getAllowedActions(String context, String globalId, Locale locale)
Returns the allowed ActionGroup
s for the specified context and the work object id. The privileges of the current user are also involved in the permission
process.
context
- the action context for which the allowed actions should be returnedglobalId
- the work object global id for which the allowed actions should be returnedlocale
- the translation localeIllegalArgumentException
- if an input parameter is not validRuntimeException
- if an error occurs while getting the allowed actions for the current userList<Action> getAllowedActions(ActionContext actionContext, Locale locale)
Returns the allowed Action
s for the specified context and the work object id. The privileges of the current user are also involved in the permission
process.
actionContext
- the action context for which the allowed actions should be returnedlocale
- the translation localeIllegalArgumentException
- if an input parameter is not validRuntimeException
- if an error occurs while getting the allowed actions for the current userList<Action> getAllowedActionsForType(String type, Optional<String> qualifier, Locale locale)
Returns the allowed Action
s for the specified Type.
type
- the type for which to retrieve the actionsqualifier
- action type qualifierlocale
- the translation localeIllegalArgumentException
- if the type is not knownRuntimeException
- if an error occurs while getting the allowed actions for the typeAction getActionByGlobalId(String actionId, String globalId, Locale locale)
Returns the Action
instance for the given action id. If the id is not known a generated "unknown" action is returned.
actionId
- the action id for which the action instance should be createdglobalId
- the work object global id for which the action should be returnedlocale
- the translation localeRuntimeException
- if the action is not allowed in the context of the given work object idCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.