fr.paris.lutece.plugins.workflow.modules.rest.rs
Class ActionRest

java.lang.Object
  extended by fr.paris.lutece.plugins.workflow.modules.rest.rs.ActionRest

public class ActionRest
extends java.lang.Object

ActionRest


Constructor Summary
ActionRest()
           
 
Method Summary
 java.util.List<IActionResult> doAction(int nIdAction, int nIdResource, java.lang.String strResourceType, javax.servlet.http.HttpServletRequest request)
          Execute the workflow action
 java.util.List<fr.paris.lutece.portal.business.workflow.Action> getAction(int nIdAction)
          Get the action
 java.util.List<fr.paris.lutece.portal.business.workflow.Action> getActionsList()
          Get the actions list
 void setWorkflowRestService(WorkflowRestService workflowRestService)
          Set the workflow rest service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionRest

public ActionRest()
Method Detail

setWorkflowRestService

public void setWorkflowRestService(WorkflowRestService workflowRestService)
Set the workflow rest service

Parameters:
workflowRestService - the workflow rest service

getAction

public java.util.List<fr.paris.lutece.portal.business.workflow.Action> getAction(int nIdAction)
Get the action

Parameters:
nIdAction - the id action
Returns:
the state

getActionsList

public java.util.List<fr.paris.lutece.portal.business.workflow.Action> getActionsList()
Get the actions list

Returns:
the list of states

doAction

public java.util.List<IActionResult> doAction(int nIdAction,
                                              int nIdResource,
                                              java.lang.String strResourceType,
                                              @Context
                                              javax.servlet.http.HttpServletRequest request)
Execute the workflow action

Parameters:
nIdAction - the id action
nIdResource - the id resource
strResourceType - the resource type
request - the HTTP request
Returns:
the action result


Copyright © 2011 Mairie de Paris. All Rights Reserved.