@Controller public class ActionController extends Object
Controller that provides allowed Actions for specific contexts and specific
AnyWorkObjects.
| Constructor and Description | 
|---|
ActionController(ActionManager actionManager)  | 
| Modifier and Type | Method and Description | 
|---|---|
org.springframework.http.ResponseEntity<FrontendAction> | 
getActionById(String actionId,
             String workObjectGlobalId)
Returns the  
Action instance for the given action id. | 
org.springframework.http.ResponseEntity<List<FrontendActionGroup>> | 
getAllowedActionsForCurrentUser(String contextId,
                               String workObjectGlobalId)
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)
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)
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 ID@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)
Returns the allowed actions for the specified Type.
typeId - the specified entity typequalifier - the specified entity type qualifier@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)
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 IDCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.