fr.paris.lutece.plugins.workflow.web
Class WorkflowJspBean

java.lang.Object
  extended by fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
      extended by fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
          extended by 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:
Serialized Form

Field Summary
static String RIGHT_MANAGE_WORKFLOW
           
 
Constructor Summary
WorkflowJspBean()
           
 
Method Summary
 String doAddTaskToReflexiveAction(javax.servlet.http.HttpServletRequest request)
          Do create a task and add it to the reflexive action of a state
 String doChangeOrderAction(javax.servlet.http.HttpServletRequest request)
          Changes the order of a given action (the way it will be displayed in the list)
 String doChangeOrderState(javax.servlet.http.HttpServletRequest request)
          Changes the order of a given state (the way it will be displayed in the list)
 String doChangeOrderTask(javax.servlet.http.HttpServletRequest request)
          Changes the order of a given task (the way it will be displayed in the list)
 String doCopyAction(javax.servlet.http.HttpServletRequest request)
          Duplicate an action
 String doCopyState(javax.servlet.http.HttpServletRequest request)
          duplicate a state
 String doCopyTask(javax.servlet.http.HttpServletRequest request)
          copy the task whose key is specified in the Http request
 void doCopyTaskWithModifiedParam(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 exists
 String doCopyWorkflow(javax.servlet.http.HttpServletRequest request)
          Duplicate a workflow
 String doCreateAction(javax.servlet.http.HttpServletRequest request)
          Perform the workflow creation
 String doCreateState(javax.servlet.http.HttpServletRequest request)
          Perform the workflow creation
 String doCreateWorkflow(javax.servlet.http.HttpServletRequest request)
          Perform the workflow creation
 String doDisableWorkflow(javax.servlet.http.HttpServletRequest request)
          Remove all workflow record of the workflow
 String doEnableWorkflow(javax.servlet.http.HttpServletRequest request)
          Remove all workflow record of the workflow
 String doInsertTask(javax.servlet.http.HttpServletRequest request)
          Remove all workflow record of the workflow
 String doModifyAction(javax.servlet.http.HttpServletRequest request)
          Perform the workflow modification
 String doModifyState(javax.servlet.http.HttpServletRequest request)
          Perform the workflow modification
 String doModifyTask(javax.servlet.http.HttpServletRequest request)
          Modify task
 String doModifyWorkflow(javax.servlet.http.HttpServletRequest request)
          Perform the workflow modification
 String doRemoveAction(javax.servlet.http.HttpServletRequest request)
          Remove all workflow record of the workflow
 String doRemoveState(javax.servlet.http.HttpServletRequest request)
          Remove all workflow record of the workflow
 String doRemoveTask(javax.servlet.http.HttpServletRequest request)
          Remove all workflow record of the workflow
 String doRemoveTaskFromReflexiveAction(javax.servlet.http.HttpServletRequest request)
          Do delete a task and remove it from the reflexive action of a state.
 String doRemoveWorkflow(javax.servlet.http.HttpServletRequest request)
          Remove all workflow record of the workflow
 String doUpdateActionOrder(javax.servlet.http.HttpServletRequest request)
          Updates the order of actions
 String doUpdateStateOrder(javax.servlet.http.HttpServletRequest request)
          Updates the order of states
 String doUpdateTaskOrder(javax.servlet.http.HttpServletRequest request)
          Updates the order of tasks
 String getConfirmRemoveAction(javax.servlet.http.HttpServletRequest request)
          Gets the confirmation page of remove all Directory Record
 String getConfirmRemoveState(javax.servlet.http.HttpServletRequest request)
          Gets the confirmation page of remove all Directory Record
 String getConfirmRemoveTask(javax.servlet.http.HttpServletRequest request)
          Gets the confirmation page of remove task
 String getConfirmRemoveWorkflow(javax.servlet.http.HttpServletRequest request)
          Gets the confirmation page of remove all Directory Record
 String getCreateAction(javax.servlet.http.HttpServletRequest request)
          Gets the workflow creation page
 String getCreateState(javax.servlet.http.HttpServletRequest request)
          Gets the workflow creation page
 String getCreateWorkflow(javax.servlet.http.HttpServletRequest request)
          Gets the workflow creation page
 String getManageAdvancedParameters(javax.servlet.http.HttpServletRequest request)
          Returns advanced parameters form
 String getManageWorkflow(javax.servlet.http.HttpServletRequest request)
          Return management page of plugin workflow
 String getModifyAction(javax.servlet.http.HttpServletRequest request)
          Gets the workflow creation page
 String getModifyReflexiveAction(javax.servlet.http.HttpServletRequest request)
          Get the modify reflexive action page
 String getModifyState(javax.servlet.http.HttpServletRequest request)
          Gets the workflow creation page
 String getModifyTask(javax.servlet.http.HttpServletRequest request)
          Gets the workflow creation page
 String getModifyWorkflow(javax.servlet.http.HttpServletRequest request)
          Gets the workflow creation page
 
Methods inherited from class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
getPlugin, init
 
Methods inherited from class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getUser, populate, setFeatureIcon, setPageTitleProperty, validate, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RIGHT_MANAGE_WORKFLOW

public static final String RIGHT_MANAGE_WORKFLOW
See Also:
Constant Field Values
Constructor Detail

WorkflowJspBean

public WorkflowJspBean()
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 - the AccessDeniedException

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 - the AccessDeniedException

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 - the AccessDeniedException

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 - the AccessDeniedException

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 - the AccessDeniedException

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 - the AccessDeniedException

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 - the AccessDeniedException

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 - the AccessDeniedException

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 - the AccessDeniedException

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 - the AccessDeniedException

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 - the AccessDeniedException

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 - the AccessDeniedException

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 - the AccessDeniedException

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 - the AccessDeniedException

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 - the AccessDeniedException

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 - the AccessDeniedException

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 - the AccessDeniedException

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 - the AccessDeniedException

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 - the AccessDeniedException

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 - the AccessDeniedException

doInsertTask

public String doInsertTask(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 - the AccessDeniedException

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 - the AccessDeniedException

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 - the AccessDeniedException

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 - the AccessDeniedException

doRemoveTask

public String doRemoveTask(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 - the AccessDeniedException

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 - the AccessDeniedException
InvocationTargetException - the InvocationTargetException
IllegalAccessException - the IllegalAccessException
NoSuchMethodException - the NoSuchMethodException

doCopyTaskWithModifiedParam

public void doCopyTaskWithModifiedParam(fr.paris.lutece.plugins.workflowcore.service.task.ITask taskToCopy,
                                        Map<String,String> mapParamToChange)
                                 throws NoSuchMethodException,
                                        IllegalAccessException,
                                        InvocationTargetException
Copy the task whose key is specified in the Http request and update param if exists

Parameters:
taskToCopy - the task to copy
mapParamToChange - the map of to change
Throws:
NoSuchMethodException - NoSuchMethodException the NoSuchMethodException
IllegalAccessException - IllegalAccessException the IllegalAccessException
InvocationTargetException - InvocationTargetException the InvocationTargetException

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)
duplicate a state

Parameters:
request - The HTTP request
Returns:
The URL to go after performing the action

doCopyAction

public String doCopyAction(javax.servlet.http.HttpServletRequest request)
                    throws NoSuchMethodException,
                           IllegalAccessException,
                           InvocationTargetException
Duplicate an action

Parameters:
request - the request
Returns:
the URL of the "modify workflow" page
Throws:
NoSuchMethodException
IllegalAccessException
InvocationTargetException

doCopyWorkflow

public String doCopyWorkflow(javax.servlet.http.HttpServletRequest request)
                      throws NoSuchMethodException,
                             IllegalAccessException,
                             InvocationTargetException
Duplicate a workflow

Parameters:
request - the request
Returns:
the URL of the workflow management page
Throws:
InvocationTargetException
IllegalAccessException
NoSuchMethodException

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 - the AccessDeniedException

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 - the AccessDeniedException

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 - the AccessDeniedException

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)
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

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


Copyright © 2013 Mairie de Paris. All Rights Reserved.