|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sakaiproject.entitybroker.rest.EntityActionsManager
public class EntityActionsManager
Handles everything related to the custom actions registration and execution
| Constructor Summary | |
|---|---|
protected |
EntityActionsManager()
|
|
EntityActionsManager(EntityProviderMethodStore entityProviderMethodStore)
Full constructor |
| Method Summary | |
|---|---|
CustomAction |
getCustomAction(String prefix,
String action)
Get the CustomAction for a prefix and action if it exists |
ActionReturn |
handleCustomActionExecution(ActionsExecutable actionProvider,
EntityReference ref,
String action,
Map<String,Object> actionParams,
OutputStream outputStream,
EntityView view,
Map<String,Object> searchParams)
Handles the execution of custom actions based on a request for execution |
ActionReturn |
handleCustomActionRequest(ActionsExecutable actionProvider,
EntityView entityView,
String action,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Map<String,Object> searchParams)
Execute a custom action request |
void |
setEntityProviderMethodStore(EntityProviderMethodStore entityProviderMethodStore)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected EntityActionsManager()
public EntityActionsManager(EntityProviderMethodStore entityProviderMethodStore)
entityProviderMethodStore - the provider method store service| Method Detail |
|---|
public void setEntityProviderMethodStore(EntityProviderMethodStore entityProviderMethodStore)
public ActionReturn handleCustomActionRequest(ActionsExecutable actionProvider,
EntityView entityView,
String action,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Map<String,Object> searchParams)
actionProvider - entityView - action - request - response -
IllegalArgumentException - if any args are invalid
UnsupportedOperationException - if the action is not valid for this prefix
IllegalStateException - if a failure occurs
public ActionReturn handleCustomActionExecution(ActionsExecutable actionProvider,
EntityReference ref,
String action,
Map<String,Object> actionParams,
OutputStream outputStream,
EntityView view,
Map<String,Object> searchParams)
IllegalArgumentException - if any args are invalid
UnsupportedOperationException - if the action is not valid for this prefix
public CustomAction getCustomAction(String prefix,
String action)
CustomAction for a prefix and action if it exists
prefix - an entity prefixaction - an action key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||