fr.paris.lutece.plugins.workflow.modules.taskautomaticassignment.business
Class AutomaticAssignmentHome

java.lang.Object
  extended by fr.paris.lutece.plugins.workflow.modules.taskautomaticassignment.business.AutomaticAssignmentHome

public final class AutomaticAssignmentHome
extends java.lang.Object

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


Method Summary
static boolean checkExist(AutomaticAssignment assign, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Check if an assignment already exist
static void create(AutomaticAssignment assign, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of assign
static java.util.List<java.lang.Integer> findAllIdEntriesByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Return a list of id from entries with the same task
static java.util.List<AutomaticAssignment> findByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Return a list of assignment with the same task
static java.util.List<AutomaticAssignment> findByTaskByEntry(int nIdTask, int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Return a list of assignment with the same task and entry
static void remove(AutomaticAssignment assign, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          remove assign which is specified in parameter
static void removeByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          remove all assign linked to the task
 
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(AutomaticAssignment assign,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of assign

Parameters:
assign - The instance of AutomaticAssignment
plugin - the plugin

remove

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

Parameters:
assign - The AutomaticAssignment
plugin - the Plugin

removeByTask

public static void removeByTask(int nIdTask,
                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
remove all assign linked to the task

Parameters:
nIdTask - The id of the task
plugin - the Plugin

checkExist

public static boolean checkExist(AutomaticAssignment assign,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if an assignment already exist

Parameters:
assign - the assignment to check
plugin - the plugin
Returns:
true if exists

findByTaskByEntry

public static java.util.List<AutomaticAssignment> findByTaskByEntry(int nIdTask,
                                                                    int nIdEntry,
                                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return a list of assignment with the same task and entry

Parameters:
nIdTask - the task id
nIdEntry - the entry id
plugin - the plugin
Returns:
assignmentList the list of automatic assignment

findByTask

public static java.util.List<AutomaticAssignment> findByTask(int nIdTask,
                                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return a list of assignment with the same task

Parameters:
nIdTask - the task id
plugin - the plugin
Returns:
assignmentList the list of automatic assignment

findAllIdEntriesByTask

public static java.util.List<java.lang.Integer> findAllIdEntriesByTask(int nIdTask,
                                                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return a list of id from entries with the same task

Parameters:
nIdTask - the task id
plugin - the plugin
Returns:
idEntriesList the list of entries id


Copyright © 2012 Mairie de Paris. All Rights Reserved.