public class WizardService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BEAN_SERVICE |
| Constructor and Description |
|---|
WizardService() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteWorkflow(int nIdWorkflow)
Deletes a given workflow
|
int |
doCopyDirectory(fr.paris.lutece.plugins.directory.business.Directory directoryToCopy,
String copyName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Copy a given directory
|
int |
doCopyDirectoryWithWorkflow(fr.paris.lutece.plugins.directory.business.Directory directoryToCopy,
String directoryCopyName,
String workflowCopyName,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
Locale locale)
Copy a given directory and its workflow
|
int |
doCopyForm(fr.paris.lutece.plugins.form.business.Form formToCopy,
String copyName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Copy a given form
|
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
|
int |
doCopyWorkflow(fr.paris.lutece.plugins.workflowcore.business.workflow.Workflow workflowToCopy,
String copyName,
Locale locale)
Copy a given workflow
|
fr.paris.lutece.plugins.directory.business.Directory |
getDirectory(int nIdDirectory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets a directory
|
fr.paris.lutece.plugins.directory.business.Directory |
getDirectoryAssociatedToForm(fr.paris.lutece.plugins.form.business.Form form)
Gets the directory associted to a given form
|
fr.paris.lutece.plugins.form.business.Form |
getForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets a form
|
static WizardService |
getInstance()
Returns the instance of the singleton
|
fr.paris.lutece.plugins.workflowcore.business.workflow.Workflow |
getWorkflow(int nIdWorkflow)
Gets a workflow
|
void |
init()
Initialize the service
|
void |
setActionService(fr.paris.lutece.plugins.workflowcore.service.action.IActionService actionService) |
void |
setStateService(fr.paris.lutece.plugins.workflowcore.service.state.IStateService stateService) |
void |
setTaskService(fr.paris.lutece.plugins.workflowcore.service.task.ITaskService taskService) |
void |
setWorkflowService(fr.paris.lutece.plugins.workflowcore.service.workflow.IWorkflowService workflowService) |
public static final String BEAN_SERVICE
public void init()
public static WizardService getInstance()
public void setWorkflowService(fr.paris.lutece.plugins.workflowcore.service.workflow.IWorkflowService workflowService)
workflowService - the workflowService to setpublic void setActionService(fr.paris.lutece.plugins.workflowcore.service.action.IActionService actionService)
actionService - the actionService to setpublic void setStateService(fr.paris.lutece.plugins.workflowcore.service.state.IStateService stateService)
stateService - the stateService to setpublic void setTaskService(fr.paris.lutece.plugins.workflowcore.service.task.ITaskService taskService)
taskService - the taskService to setpublic fr.paris.lutece.plugins.directory.business.Directory getDirectory(int nIdDirectory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdDirectory - the id of the directoryplugin - the pluginpublic fr.paris.lutece.plugins.form.business.Form getForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdForm - the id of the formplugin - the pluginpublic fr.paris.lutece.plugins.workflowcore.business.workflow.Workflow getWorkflow(int nIdWorkflow)
nIdWorkflow - the id of the workflowpublic int doCopyWorkflow(fr.paris.lutece.plugins.workflowcore.business.workflow.Workflow workflowToCopy,
String copyName,
Locale locale)
throws DuplicationException
workflowToCopy - the workflow to copycopyName - the name of the copylocale - the localeDuplicationException - the duplication exceptionpublic void doCopyTaskWithModifiedParam(fr.paris.lutece.plugins.workflowcore.service.task.ITask taskToCopy,
Map<String,String> mapParamToChange)
throws NoSuchMethodException,
IllegalAccessException,
InvocationTargetException
taskToCopy - the task to copymapParamToChange - the mapNoSuchMethodException - NoSuchMethodException the
NoSuchMethodExceptionIllegalAccessException - IllegalAccessException the
IllegalAccessExceptionInvocationTargetException - InvocationTargetException the
InvocationTargetExceptionpublic int doCopyDirectory(fr.paris.lutece.plugins.directory.business.Directory directoryToCopy,
String copyName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
directoryToCopy - the directory to copycopyName - the name of the copyplugin - the pluginpublic int doCopyForm(fr.paris.lutece.plugins.form.business.Form formToCopy,
String copyName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
formToCopy - the form to copycopyName - the name of the copyplugin - the pluginpublic int doCopyDirectoryWithWorkflow(fr.paris.lutece.plugins.directory.business.Directory directoryToCopy,
String directoryCopyName,
String workflowCopyName,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
Locale locale)
throws DuplicationException
directoryToCopy - the directory to copydirectoryCopyName - the name of the copyworkflowCopyName - the name of the copyplugin - the pluginlocale - the localeDuplicationException - the duplication exceptionpublic fr.paris.lutece.plugins.directory.business.Directory getDirectoryAssociatedToForm(fr.paris.lutece.plugins.form.business.Form form)
form - the formpublic void deleteWorkflow(int nIdWorkflow)
nIdWorkflow - the id of the workflowCopyright © 2017 City of Paris. All rights reserved.