fr.paris.lutece.plugins.workflow.business.task
Class TaskHome

java.lang.Object
  extended by fr.paris.lutece.plugins.workflow.business.task.TaskHome

public final class TaskHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for Task objects


Method Summary
static void create(ITask task, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of task
static ITask findByPrimaryKey(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin, java.util.Locale locale)
          Load the Task Object
static java.util.List<ITask> getListTaskByIdAction(int nIdAction, fr.paris.lutece.portal.service.plugin.Plugin plugin, java.util.Locale locale)
          Select all tasks associated to the action
static void remove(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          remove task which is specified in parameter
static void update(ITask task, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of task which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static void create(ITask task,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of task

Parameters:
task - The instance of task which contains the informations to store
plugin - the plugin

update

public static void update(ITask task,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of task which is specified in parameter

Parameters:
task - The instance of task which contains the informations to update
plugin - the Plugin

remove

public static void remove(int nIdTask,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
remove task which is specified in parameter

Parameters:
nIdTask - The task key
plugin - the Plugin

findByPrimaryKey

public static ITask findByPrimaryKey(int nIdTask,
                                     fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                     java.util.Locale locale)
Load the Task Object

Parameters:
nIdTask - the task id
plugin - the plugin
locale - the locale
Returns:
the Task Object

getListTaskByIdAction

public static java.util.List<ITask> getListTaskByIdAction(int nIdAction,
                                                          fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                                          java.util.Locale locale)
Select all tasks associated to the action

Parameters:
nIdAction - the action key
plugin - the plugin
locale - the locale
Returns:
Task list


Copyright © 2011 Mairie de Paris. All Rights Reserved.