Class WorkflowJspBean
- java.lang.Object
-
- fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
-
- fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
-
- fr.paris.lutece.plugins.workflow.web.WorkflowJspBean
-
- All Implemented Interfaces:
Serializable
public class WorkflowJspBean extends fr.paris.lutece.portal.web.admin.PluginAdminPageJspBeanclass ManageDirectoryJspBean- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringRIGHT_MANAGE_WORKFLOWRight to manage workflows
-
Constructor Summary
Constructors Constructor Description WorkflowJspBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdoAddTaskToReflexiveAction(javax.servlet.http.HttpServletRequest request)Do create a task and add it to the reflexive action of a stateStringdoChangeOrderAction(javax.servlet.http.HttpServletRequest request)Changes the order of a given action (the way it will be displayed in the list)StringdoChangeOrderState(javax.servlet.http.HttpServletRequest request)Changes the order of a given state (the way it will be displayed in the list)StringdoChangeOrderTask(javax.servlet.http.HttpServletRequest request)Changes the order of a given task (the way it will be displayed in the list)StringdoCopyAction(javax.servlet.http.HttpServletRequest request)Duplicate an actionStringdoCopyState(javax.servlet.http.HttpServletRequest request)duplicate a stateStringdoCopyTask(javax.servlet.http.HttpServletRequest request)copy the task whose key is specified in the Http requestvoiddoCopyTaskWithModifiedParam(fr.paris.lutece.plugins.workflowcore.service.task.ITask taskToCopy, Map<String,String> mapParamToChange)Copy the task whose key is specified in the Http request and update param if existsStringdoCopyWorkflow(javax.servlet.http.HttpServletRequest request)Duplicate a workflowStringdoCreateAction(javax.servlet.http.HttpServletRequest request)Perform the workflow creationStringdoCreateState(javax.servlet.http.HttpServletRequest request)Perform the workflow creationStringdoCreateWorkflow(javax.servlet.http.HttpServletRequest request)Perform the workflow creationStringdoDisableWorkflow(javax.servlet.http.HttpServletRequest request)Remove all workflow record of the workflowStringdoEnableWorkflow(javax.servlet.http.HttpServletRequest request)Remove all workflow record of the workflowvoiddoExportWorkflow(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Export Workflow as JsonStringdoImportWorkflow(javax.servlet.http.HttpServletRequest request)StringdoInsertTask(javax.servlet.http.HttpServletRequest request)Insert a new task in an ActionStringdoModifyAction(javax.servlet.http.HttpServletRequest request)Perform the workflow modificationStringdoModifyState(javax.servlet.http.HttpServletRequest request)Perform the workflow modificationStringdoModifyTask(javax.servlet.http.HttpServletRequest request)Modify taskStringdoModifyWorkflow(javax.servlet.http.HttpServletRequest request)Perform the workflow modificationStringdoRemoveAction(javax.servlet.http.HttpServletRequest request)Remove all workflow record of the workflowStringdoRemoveState(javax.servlet.http.HttpServletRequest request)Remove all workflow record of the workflowStringdoRemoveTask(javax.servlet.http.HttpServletRequest request, boolean isReflexiveTask)Remove all workflow record of the workflowStringdoRemoveTaskFromReflexiveAction(javax.servlet.http.HttpServletRequest request)Do delete a task and remove it from the reflexive action of a state.StringdoRemoveWorkflow(javax.servlet.http.HttpServletRequest request)Remove all workflow record of the workflowStringdoUpdateActionOrder(javax.servlet.http.HttpServletRequest request)Updates the order of actionsStringdoUpdateStateOrder(javax.servlet.http.HttpServletRequest request)Updates the order of statesStringdoUpdateTaskOrder(javax.servlet.http.HttpServletRequest request)Updates the order of tasksStringgetConfirmCopyWorkflow(javax.servlet.http.HttpServletRequest request)StringgetConfirmImportWorkflow(javax.servlet.http.HttpServletRequest request)StringgetConfirmRemoveAction(javax.servlet.http.HttpServletRequest request)Gets the confirmation page of remove all Directory RecordStringgetConfirmRemoveState(javax.servlet.http.HttpServletRequest request)Gets the confirmation page of remove all Directory RecordStringgetConfirmRemoveTask(javax.servlet.http.HttpServletRequest request)Gets the confirmation page of remove taskStringgetConfirmRemoveWorkflow(javax.servlet.http.HttpServletRequest request)Gets the confirmation page of remove all Directory RecordStringgetCreateAction(javax.servlet.http.HttpServletRequest request)Gets the workflow creation pageStringgetCreateState(javax.servlet.http.HttpServletRequest request)Gets the workflow creation pageStringgetCreateWorkflow(javax.servlet.http.HttpServletRequest request)Gets the workflow creation pageStringgetManageAdvancedParameters(javax.servlet.http.HttpServletRequest request)Returns advanced parameters formStringgetManageWorkflow(javax.servlet.http.HttpServletRequest request)Return management page of plugin workflowStringgetModifyAction(javax.servlet.http.HttpServletRequest request)Gets the workflow creation pageStringgetModifyReflexiveAction(javax.servlet.http.HttpServletRequest request)Get the modify reflexive action pageStringgetModifyState(javax.servlet.http.HttpServletRequest request)Gets the workflow creation pageStringgetModifyTask(javax.servlet.http.HttpServletRequest request)Gets the workflow creation pageStringgetModifyWorkflow(javax.servlet.http.HttpServletRequest request)Gets the workflow creation page-
Methods inherited from class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
getPlugin, init
-
-
-
-
Field Detail
-
RIGHT_MANAGE_WORKFLOW
public static final String RIGHT_MANAGE_WORKFLOW
Right to manage workflows- See Also:
- Constant Field Values
-
-
Method Detail
-
getManageWorkflow
public String getManageWorkflow(javax.servlet.http.HttpServletRequest request)
Return management page of plugin workflow- Parameters:
request- The Http request- Returns:
- Html management page of plugin workflow
-
getCreateWorkflow
public String getCreateWorkflow(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Gets the workflow creation page- Parameters:
request- The HTTP request- Returns:
- The workflow creation page
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
doCreateWorkflow
public String doCreateWorkflow(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Perform the workflow creation- Parameters:
request- The HTTP request- Returns:
- The URL to go after performing the action
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
getModifyWorkflow
public String getModifyWorkflow(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Gets the workflow creation page- Parameters:
request- The HTTP request- Returns:
- The workflow creation page
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
doModifyWorkflow
public String doModifyWorkflow(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Perform the workflow modification- Parameters:
request- The HTTP request- Returns:
- The URL to go after performing the action
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
getConfirmRemoveWorkflow
public String getConfirmRemoveWorkflow(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Gets the confirmation page of remove all Directory Record- Parameters:
request- The HTTP request- Returns:
- the confirmation page of delete all Directory Record
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
doRemoveWorkflow
public String doRemoveWorkflow(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Remove all workflow record of the workflow- Parameters:
request- The HTTP request- Returns:
- The URL to go after performing the action
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
doEnableWorkflow
public String doEnableWorkflow(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Remove all workflow record of the workflow- Parameters:
request- The HTTP request- Returns:
- The URL to go after performing the action
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
doDisableWorkflow
public String doDisableWorkflow(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Remove all workflow record of the workflow- Parameters:
request- The HTTP request- Returns:
- The URL to go after performing the action
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
getCreateState
public String getCreateState(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Gets the workflow creation page- Parameters:
request- The HTTP request- Returns:
- The workflow creation page
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
doCreateState
public String doCreateState(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Perform the workflow creation- Parameters:
request- The HTTP request- Returns:
- The URL to go after performing the action
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
getModifyState
public String getModifyState(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Gets the workflow creation page- Parameters:
request- The HTTP request- Returns:
- The workflow creation page
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
doModifyState
public String doModifyState(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Perform the workflow modification- Parameters:
request- The HTTP request- Returns:
- The URL to go after performing the action
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
getConfirmRemoveState
public String getConfirmRemoveState(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Gets the confirmation page of remove all Directory Record- Parameters:
request- The HTTP request- Returns:
- the confirmation page of delete all Directory Record
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
doRemoveState
public String doRemoveState(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Remove all workflow record of the workflow- Parameters:
request- The HTTP request- Returns:
- The URL to go after performing the action
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
getCreateAction
public String getCreateAction(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Gets the workflow creation page- Parameters:
request- The HTTP request- Returns:
- The workflow creation page
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
doCreateAction
public String doCreateAction(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Perform the workflow creation- Parameters:
request- The HTTP request- Returns:
- The URL to go after performing the action
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
getModifyAction
public String getModifyAction(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Gets the workflow creation page- Parameters:
request- The HTTP request- Returns:
- The workflow creation page
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
doModifyAction
public String doModifyAction(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Perform the workflow modification- Parameters:
request- The HTTP request- Returns:
- The URL to go after performing the action
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
getConfirmRemoveAction
public String getConfirmRemoveAction(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Gets the confirmation page of remove all Directory Record- Parameters:
request- The HTTP request- Returns:
- the confirmation page of delete all Directory Record
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
doRemoveAction
public String doRemoveAction(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Remove all workflow record of the workflow- Parameters:
request- The HTTP request- Returns:
- The URL to go after performing the action
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
doInsertTask
public String doInsertTask(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Insert a new task in an Action- Parameters:
request- The HTTP request- Returns:
- The URL to go after performing the action
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
getModifyTask
public String getModifyTask(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Gets the workflow creation page- Parameters:
request- The HTTP request- Returns:
- The workflow creation page
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
doModifyTask
public String doModifyTask(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Modify task- Parameters:
request- The HTTP request- Returns:
- The URL to go after performing the action
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
getConfirmRemoveTask
public String getConfirmRemoveTask(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Gets the confirmation page of remove task- Parameters:
request- The HTTP request- Returns:
- the confirmation page of delete Task
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
doRemoveTask
public String doRemoveTask(javax.servlet.http.HttpServletRequest request, boolean isReflexiveTask) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Remove all workflow record of the workflow- Parameters:
request- The HTTP requestisReflexiveTask- Set to true if a Reflexive Task ( automatic action ) is being removed, set to false otherwise- Returns:
- The URL to go after performing the action
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
doCopyTask
public String doCopyTask(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
copy the task whose key is specified in the Http request- Parameters:
request- The HTTP request- Returns:
- The URL to go after performing the action
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedExceptionInvocationTargetException- theInvocationTargetExceptionIllegalAccessException- theIllegalAccessExceptionNoSuchMethodException- theNoSuchMethodException
-
doCopyTaskWithModifiedParam
public void doCopyTaskWithModifiedParam(fr.paris.lutece.plugins.workflowcore.service.task.ITask taskToCopy, Map<String,String> mapParamToChange) throws NoSuchMethodException, IllegalAccessException, InvocationTargetExceptionCopy the task whose key is specified in the Http request and update param if exists- Parameters:
taskToCopy- the task to copymapParamToChange- the map of (Param, Value) to change- Throws:
NoSuchMethodException- NoSuchMethodException theNoSuchMethodExceptionIllegalAccessException- IllegalAccessException theIllegalAccessExceptionInvocationTargetException- InvocationTargetException theInvocationTargetException
-
getManageAdvancedParameters
public String getManageAdvancedParameters(javax.servlet.http.HttpServletRequest request)
Returns advanced parameters form- Parameters:
request- The Http request- Returns:
- Html form
-
doChangeOrderState
public String doChangeOrderState(javax.servlet.http.HttpServletRequest request)
Changes the order of a given state (the way it will be displayed in the list)- Parameters:
request- The HTTP request- Returns:
- return url of the jsp change order state
-
doChangeOrderAction
public String doChangeOrderAction(javax.servlet.http.HttpServletRequest request)
Changes the order of a given action (the way it will be displayed in the list)- Parameters:
request- The HTTP request- Returns:
- return url of the jsp change order action
-
doChangeOrderTask
public String doChangeOrderTask(javax.servlet.http.HttpServletRequest request)
Changes the order of a given task (the way it will be displayed in the list)- Parameters:
request- The HTTP request- Returns:
- return url of the jsp change order task
-
doCopyState
public String doCopyState(javax.servlet.http.HttpServletRequest request) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, fr.paris.lutece.portal.service.admin.AccessDeniedException
duplicate a state- Parameters:
request- The HTTP request- Returns:
- The URL to go after performing the action
- Throws:
InvocationTargetExceptionIllegalAccessExceptionNoSuchMethodExceptionfr.paris.lutece.portal.service.admin.AccessDeniedException
-
doCopyAction
public String doCopyAction(javax.servlet.http.HttpServletRequest request) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, fr.paris.lutece.portal.service.admin.AccessDeniedException
Duplicate an action- Parameters:
request- the request- Returns:
- the URL of the "modify workflow" page
- Throws:
NoSuchMethodException- If a method was not foundIllegalAccessException- If an illegal access is performedInvocationTargetException- If an error occursfr.paris.lutece.portal.service.admin.AccessDeniedException
-
doCopyWorkflow
public String doCopyWorkflow(javax.servlet.http.HttpServletRequest request) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, fr.paris.lutece.portal.service.admin.AccessDeniedException
Duplicate a workflow- Parameters:
request- the request- Returns:
- the URL of the workflow management page
- Throws:
InvocationTargetException- If a method was not foundIllegalAccessException- If an illegal access is performedNoSuchMethodException- If an error occursfr.paris.lutece.portal.service.admin.AccessDeniedException
-
getConfirmCopyWorkflow
public String getConfirmCopyWorkflow(javax.servlet.http.HttpServletRequest request)
-
doUpdateStateOrder
public String doUpdateStateOrder(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Updates the order of states- Parameters:
request- The HTTP request- Returns:
- The workflow creation page
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
doUpdateActionOrder
public String doUpdateActionOrder(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Updates the order of actions- Parameters:
request- The HTTP request- Returns:
- The workflow creation page
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
doUpdateTaskOrder
public String doUpdateTaskOrder(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Updates the order of tasks- Parameters:
request- The HTTP request- Returns:
- The workflow creation page
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
getModifyReflexiveAction
public String getModifyReflexiveAction(javax.servlet.http.HttpServletRequest request)
Get the modify reflexive action page- Parameters:
request- The request- Returns:
- The modify reflexive action page, or the manage workflow page if no valid state id is specified
-
doAddTaskToReflexiveAction
public String doAddTaskToReflexiveAction(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Do create a task and add it to the reflexive action of a state- Parameters:
request- The request- Returns:
- The next URL to redirect to
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException
-
doRemoveTaskFromReflexiveAction
public String doRemoveTaskFromReflexiveAction(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Do delete a task and remove it from the reflexive action of a state. If the action has no more task, then it is removed- Parameters:
request- The request- Returns:
- The next URL to redirect to
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- If the user is not allowed to access this feature
-
doExportWorkflow
public void doExportWorkflow(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Export Workflow as Json- Parameters:
request-
-
getConfirmImportWorkflow
public String getConfirmImportWorkflow(javax.servlet.http.HttpServletRequest request)
-
doImportWorkflow
public String doImportWorkflow(javax.servlet.http.HttpServletRequest request)
-
-