fr.paris.lutece.plugins.workflow.business.task
Interface ITask

All Known Implementing Classes:
Task, TaskComment

public interface ITask

ITask


Method Summary
 void doRemoveConfig(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the task configuration
 void doRemoveTaskInformation(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          return for a resource history the informations store during processing task
 java.lang.String doSaveConfig(javax.servlet.http.HttpServletRequest request, java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Perform the task configuration
 java.lang.String doValidateTask(javax.servlet.http.HttpServletRequest request, java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          validates the user input associated to the task
 Action getAction()
           
 java.lang.String getDisplayConfigForm(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.plugin.Plugin plugin, java.util.Locale locale)
          returns the informations which must be displayed in the task configuration
 java.lang.String getDisplayTaskForm(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.plugin.Plugin plugin, java.util.Locale locale)
          returns the informations which must be displayed in the tasks form
 java.lang.String getDisplayTaskInformation(int nIdHistory, javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.plugin.Plugin plugin, java.util.Locale locale)
          return for a document the informations store during processing task
 int getId()
           
 ITaskType getTaskType()
           
 boolean isConfigRequire()
           
 boolean isFormTaskRequire()
           
 void processTask(int nIdResourceHistory, javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.plugin.Plugin plugin, java.util.Locale locale)
          Process the task
 void setAction(Action action)
          set the action associate to the task
 void setId(int nId)
          set the task id
 void setTaskType(ITaskType taskType)
          set the TaskType object
 

Method Detail

getId

int getId()
Returns:
the task Id

setId

void setId(int nId)
set the task id

Parameters:
nId - the task id

getTaskType

ITaskType getTaskType()
Returns:
the TaskType Object

setTaskType

void setTaskType(ITaskType taskType)
set the TaskType object

Parameters:
taskType - the task type object

getAction

Action getAction()
Returns:
the action associate to the task

setAction

void setAction(Action action)
set the action associate to the task

Parameters:
action - the action associate to the task

processTask

void processTask(int nIdResourceHistory,
                 javax.servlet.http.HttpServletRequest request,
                 fr.paris.lutece.portal.service.plugin.Plugin plugin,
                 java.util.Locale locale)
Process the task

Parameters:
nIdResourceHistory - the resource history id
request - the request
plugin - plugin
locale - locale

doValidateTask

java.lang.String doValidateTask(javax.servlet.http.HttpServletRequest request,
                                java.util.Locale locale,
                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
validates the user input associated to the task

Parameters:
request - request
locale - locale
plugin - the plugin
Returns:
null if there is no error in the task form else return the error message url

getDisplayTaskForm

java.lang.String getDisplayTaskForm(javax.servlet.http.HttpServletRequest request,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                    java.util.Locale locale)
returns the informations which must be displayed in the tasks form

Parameters:
request - request
plugin - plugin
locale - locale
Returns:
the information which must be displayed in the tasks form

getDisplayConfigForm

java.lang.String getDisplayConfigForm(javax.servlet.http.HttpServletRequest request,
                                      fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                      java.util.Locale locale)
returns the informations which must be displayed in the task configuration

Parameters:
request - request
plugin - plugin
locale - locale
Returns:
the information which must be displayed in the task configuration

doSaveConfig

java.lang.String doSaveConfig(javax.servlet.http.HttpServletRequest request,
                              java.util.Locale locale,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Perform the task configuration

Parameters:
request - request
locale - locale
plugin - plugin
Returns:
the url to go after perform task configuration

getDisplayTaskInformation

java.lang.String getDisplayTaskInformation(int nIdHistory,
                                           javax.servlet.http.HttpServletRequest request,
                                           fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                           java.util.Locale locale)
return for a document the informations store during processing task

Parameters:
nIdHistory - the document id
request - the request
plugin - the plugin
locale - locale
Returns:
the informations store during processing task

doRemoveTaskInformation

void doRemoveTaskInformation(int nIdHistory,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
return for a resource history the informations store during processing task

Parameters:
nIdHistory - the document id
plugin - plugin
locale - locale

doRemoveConfig

void doRemoveConfig(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the task configuration

Parameters:
plugin - plugin

isConfigRequire

boolean isConfigRequire()
Returns:
true if the task use a configuration

isFormTaskRequire

boolean isFormTaskRequire()
Returns:
true if the task use a form


Copyright © 2009 Mairie de Paris. All Rights Reserved.