fr.paris.lutece.plugins.fdw.modules.wizard.service
Class WizardService

java.lang.Object
  extended by fr.paris.lutece.plugins.fdw.modules.wizard.service.WizardService

public class WizardService
extends Object

WizardService


Field Summary
static String BEAN_SERVICE
           
 
Constructor Summary
WizardService()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEAN_SERVICE

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

WizardService

public WizardService()
Method Detail

init

public void init()
Initialize the service


getInstance

public static WizardService getInstance()
Returns the instance of the singleton

Returns:
The instance of the singleton

setWorkflowService

public void setWorkflowService(fr.paris.lutece.plugins.workflowcore.service.workflow.IWorkflowService workflowService)
Parameters:
workflowService - the workflowService to set

setActionService

public void setActionService(fr.paris.lutece.plugins.workflowcore.service.action.IActionService actionService)
Parameters:
actionService - the actionService to set

setStateService

public void setStateService(fr.paris.lutece.plugins.workflowcore.service.state.IStateService stateService)
Parameters:
stateService - the stateService to set

setTaskService

public void setTaskService(fr.paris.lutece.plugins.workflowcore.service.task.ITaskService taskService)
Parameters:
taskService - the taskService to set

getDirectory

public fr.paris.lutece.plugins.directory.business.Directory getDirectory(int nIdDirectory,
                                                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets a directory

Parameters:
nIdDirectory - the id of the directory
plugin - the plugin
Returns:
the directory

getForm

public fr.paris.lutece.plugins.form.business.Form getForm(int nIdForm,
                                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets a form

Parameters:
nIdForm - the id of the form
plugin - the plugin
Returns:
the form

getWorkflow

public fr.paris.lutece.plugins.workflowcore.business.workflow.Workflow getWorkflow(int nIdWorkflow)
Gets a workflow

Parameters:
nIdWorkflow - the id of the workflow
Returns:
the workflow

doCopyWorkflow

public int doCopyWorkflow(fr.paris.lutece.plugins.workflowcore.business.workflow.Workflow workflowToCopy,
                          String copyName,
                          Locale locale)
                   throws DuplicationException
Copy a given workflow

Parameters:
workflowToCopy - the workflow to copy
copyName - the name of the copy
locale - the locale
Returns:
the id of the copy
Throws:
DuplicationException - the duplication exception

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

doCopyDirectory

public int doCopyDirectory(fr.paris.lutece.plugins.directory.business.Directory directoryToCopy,
                           String copyName,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Copy a given directory

Parameters:
directoryToCopy - the directory to copy
copyName - the name of the copy
plugin - the plugin
Returns:
the id of the copy

doCopyForm

public int doCopyForm(fr.paris.lutece.plugins.form.business.Form formToCopy,
                      String copyName,
                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Copy a given form

Parameters:
formToCopy - the form to copy
copyName - the name of the copy
plugin - the plugin
Returns:
the id of the copy

doCopyDirectoryWithWorkflow

public 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
Copy a given directory and its workflow

Parameters:
directoryToCopy - the directory to copy
directoryCopyName - the name of the copy
workflowCopyName - the name of the copy
plugin - the plugin
locale - the locale
Returns:
the id of the copy
Throws:
DuplicationException - the duplication exception

getDirectoryAssociatedToForm

public fr.paris.lutece.plugins.directory.business.Directory getDirectoryAssociatedToForm(fr.paris.lutece.plugins.form.business.Form form)
Gets the directory associted to a given form

Parameters:
form - the form
Returns:
the directory or null if no directory found

deleteWorkflow

public void deleteWorkflow(int nIdWorkflow)
Deletes a given workflow

Parameters:
nIdWorkflow - the id of the workflow


Copyright © 2013 Mairie de Paris. All Rights Reserved.