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.PluginAdminPageJspBean
class ManageDirectoryJspBean
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoAddTaskToReflexiveAction(javax.servlet.http.HttpServletRequest request) Do create a task and add it to the reflexive action of a statedoChangeOrderAction(javax.servlet.http.HttpServletRequest request) Changes the order of a given action (the way it will be displayed in the list)doChangeOrderState(javax.servlet.http.HttpServletRequest request) Changes the order of a given state (the way it will be displayed in the list)doChangeOrderTask(javax.servlet.http.HttpServletRequest request) Changes the order of a given task (the way it will be displayed in the list)doCopyAction(javax.servlet.http.HttpServletRequest request) Duplicate an actiondoCopyState(javax.servlet.http.HttpServletRequest request) duplicate a statedoCopyTask(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 existsdoCopyWorkflow(javax.servlet.http.HttpServletRequest request) Duplicate a workflowdoCreateAction(javax.servlet.http.HttpServletRequest request) Perform the workflow creationdoCreateState(javax.servlet.http.HttpServletRequest request) Perform the workflow creationdoCreateWorkflow(javax.servlet.http.HttpServletRequest request) Perform the workflow creationdoDisableWorkflow(javax.servlet.http.HttpServletRequest request) Remove all workflow record of the workflowdoEnableWorkflow(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 JsondoImportWorkflow(javax.servlet.http.HttpServletRequest request) doInsertTask(javax.servlet.http.HttpServletRequest request) Insert a new task in an ActiondoModifyAction(javax.servlet.http.HttpServletRequest request) Perform the workflow modificationdoModifyState(javax.servlet.http.HttpServletRequest request) Perform the workflow modificationdoModifyTask(javax.servlet.http.HttpServletRequest request) Modify taskdoModifyWorkflow(javax.servlet.http.HttpServletRequest request) Perform the workflow modificationdoRemoveAction(javax.servlet.http.HttpServletRequest request) Remove all workflow record of the workflowdoRemoveState(javax.servlet.http.HttpServletRequest request) Remove all workflow record of the workflowdoRemoveTask(javax.servlet.http.HttpServletRequest request, boolean isReflexiveTask) Remove all workflow record of the workflowdoRemoveTaskFromReflexiveAction(javax.servlet.http.HttpServletRequest request) Do delete a task and remove it from the reflexive action of a state.doRemoveWorkflow(javax.servlet.http.HttpServletRequest request) Remove all workflow record of the workflowdoUpdateActionOrder(javax.servlet.http.HttpServletRequest request) Updates the order of actionsdoUpdateStateOrder(javax.servlet.http.HttpServletRequest request) Updates the order of statesdoUpdateTaskOrder(javax.servlet.http.HttpServletRequest request) Updates the order of tasksgetConfirmCopyAction(javax.servlet.http.HttpServletRequest request) Gets the confirmation page of copy actiongetConfirmCopyState(javax.servlet.http.HttpServletRequest request) Gets the confirmation page of copy stategetConfirmCopyTask(javax.servlet.http.HttpServletRequest request) Gets the confirmation page of copy taskgetConfirmCopyWorkflow(javax.servlet.http.HttpServletRequest request) getConfirmImportWorkflow(javax.servlet.http.HttpServletRequest request) getConfirmRemoveAction(javax.servlet.http.HttpServletRequest request) Gets the confirmation page of remove all Directory RecordgetConfirmRemoveState(javax.servlet.http.HttpServletRequest request) Gets the confirmation page of remove all Directory RecordgetConfirmRemoveTask(javax.servlet.http.HttpServletRequest request) Gets the confirmation page of remove taskgetConfirmRemoveWorkflow(javax.servlet.http.HttpServletRequest request) Gets the confirmation page of remove all Directory RecordgetCreateAction(javax.servlet.http.HttpServletRequest request) Gets the workflow creation pagegetCreateState(javax.servlet.http.HttpServletRequest request) Gets the workflow creation pagegetCreateWorkflow(javax.servlet.http.HttpServletRequest request) Gets the workflow creation pagegetManageAdvancedParameters(javax.servlet.http.HttpServletRequest request) Returns advanced parameters formgetManageWorkflow(javax.servlet.http.HttpServletRequest request) Return management page of plugin workflowgetModifyAction(javax.servlet.http.HttpServletRequest request) Gets the workflow creation pagegetModifyReflexiveAction(javax.servlet.http.HttpServletRequest request) Get the modify reflexive action pagegetModifyState(javax.servlet.http.HttpServletRequest request) Gets the workflow creation pagegetModifyTask(javax.servlet.http.HttpServletRequest request) Gets the workflow creation pagegetModifyWorkflow(javax.servlet.http.HttpServletRequest request) Gets the workflow creation pageMethods inherited from class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
getPlugin, initMethods inherited from class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getUser, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validate
-
Field Details
-
RIGHT_MANAGE_WORKFLOW
Right to manage workflows- See Also:
-
-
Constructor Details
-
WorkflowJspBean
public WorkflowJspBean()
-
-
Method Details
-
getManageWorkflow
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
-
getConfirmCopyTask
public String getConfirmCopyTask(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException Gets the confirmation page of copy task- Parameters:
request- The HTTP request- Returns:
- the confirmation page of copy Task
- 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
Returns advanced parameters form- Parameters:
request- The Http request- Returns:
- Html form
-
doChangeOrderState
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
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
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
-
getConfirmCopyState
public String getConfirmCopyState(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException Gets the confirmation page of copy state- Parameters:
request- The HTTP request- Returns:
- the confirmation page of copy State
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
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
-
getConfirmCopyAction
public String getConfirmCopyAction(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException Gets the confirmation page of copy action- Parameters:
request- The HTTP request- Returns:
- the confirmation page of copy action
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedException
-
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
-
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
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
-
doImportWorkflow
-