public interface ActionsExecutionControllable extends ActionsDefineable
ActionsExecutable or ActionsDefineable in most circumstanceDescribeable key: EntityCustomAction suffix to define the custom actionsfor more detailsACTION_METHOD_SUFFIX| Modifier and Type | Method and Description |
|---|---|
Object |
executeActions(EntityView entityView,
String action,
Map<String,Object> actionParams,
OutputStream outputStream)
This allows the developer to define how to execute custom actions on entities,
this method will be called every time a custom action execution is requested,
the incoming data provides the context for the action to be executed
NOTE: The return data can be complex so please read carefully, entity data is returned as the default for the request if no format is specified |
defineActionsgetEntityPrefixObject executeActions(EntityView entityView, String action, Map<String,Object> actionParams, OutputStream outputStream)
entityView - an entity view, should contain all the information related to the incoming entity request or URL,
includes the entity reference and the requested format informationaction - key which will be used to trigger the action (e.g. promote),
will be triggered by a URL like so: /user/aaronz/promoterequestValues - this is an array which contains passed in action params,
if this is running as a result of an http request this will include all the request variables,
otherwise this will just return any custom values needed to execute this actionoutputStream - an OutputStream to place binary or long text data into,
if this is used for binary data then the ActionReturn should be returned with the correct encoding information
and the output variable set to the OutputStreamActionReturn (this is a special object used to indicate return states and handle binary data) EntityNotFoundException EntityNotFoundException to indicate the entity request could not find the data that was requested IllegalArgumentException to indicate that the incoming params or the request was invalid FormatUnsupportedException to indicate that the requested format is not supported for this entity request EntityException to indicate a specific entity failure occurred, can include a response code and error message SecurityException to indicate that the the current user is no allowed to perform this action IllegalStateException to indicate a general failure has occurred Copyright © 2007–2019 Sakai Project. All rights reserved.