@Controller public class ActionController extends Object
Controller that provides allowed Action
s for specific contexts and specific
AnyWorkObject
s.
Constructor and Description |
---|
ActionController(ActionManager actionManager) |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<FrontendAction> |
getActionById(String actionId,
String workObjectGlobalId,
Locale locale)
Returns the
Action instance for the given action id. |
org.springframework.http.ResponseEntity<List<FrontendActionGroup>> |
getAllowedActionsForCurrentUser(String contextId,
String workObjectGlobalId,
Locale locale)
Returns the allowed actions for the specified context and specific com.edorasware.commons.core.any.WorkObjectId.
|
org.springframework.http.ResponseEntity<List<FrontendAction>> |
getAllowedActionsForType(String typeId,
String qualifier,
Locale locale)
Returns the allowed actions for the specified Type.
|
public ActionController(ActionManager actionManager)
@RequestMapping(value="/permissions/actions/context/{contextId}", method=GET) @ResponseBody public org.springframework.http.ResponseEntity<List<FrontendActionGroup>> getAllowedActionsForCurrentUser(@PathVariable String contextId, @RequestParam(value="workObjectGlobalId",required=false) String workObjectGlobalId, Locale locale)
Returns the allowed actions for the specified context and specific com.edorasware.commons.core.any.WorkObjectId.
contextId
- the specified action contextworkObjectGlobalId
- the specified work object global IDlocale
- the translation locale@RequestMapping(value="/permissions/actions/type/{typeId}", method=GET) @ResponseBody public org.springframework.http.ResponseEntity<List<FrontendAction>> getAllowedActionsForType(@PathVariable String typeId, @RequestParam(required=false) String qualifier, Locale locale)
Returns the allowed actions for the specified Type.
typeId
- the specified entity typequalifier
- the specified entity type qualifierlocale
- the translation locale@RequestMapping(value="/permissions/actions/{actionId}", method=GET) @ResponseBody public org.springframework.http.ResponseEntity<FrontendAction> getActionById(@PathVariable String actionId, @RequestParam(value="workObjectGlobalId",required=false) String workObjectGlobalId, Locale locale)
Returns the Action
instance for the given action id. If the action id is not known a unknown action object is returned, such
that the client is able to check that this id is not known instead of throwing an exception.
actionId
- the action id for which the action instance should be createdworkObjectGlobalId
- the work object global IDlocale
- the translation localeCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.