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

java.lang.Object
  extended by fr.paris.lutece.plugins.workflow.modules.taskautomaticassignment.business.AutomaticAssignmentDAO
All Implemented Interfaces:
IAutomaticAssignmentDAO

public class AutomaticAssignmentDAO
extends java.lang.Object
implements IAutomaticAssignmentDAO

class TaskAssignmentConfigDAO


Constructor Summary
AutomaticAssignmentDAO()
           
 
Method Summary
 boolean checkExist(AutomaticAssignment assign, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Check if an assignment already exist
 void delete(AutomaticAssignment assign, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete an automatic assignment
 void deleteByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete all automatic assignment linked to a task
 java.util.List<java.lang.Integer> getIdEntriesListByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Return a list of id from entries with the same task
 void insert(AutomaticAssignment assign, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Create a new automatic assignment
 java.util.List<AutomaticAssignment> loadByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Return a list of assignment with the same task
 java.util.List<AutomaticAssignment> loadByTaskByEntry(int nIdTask, int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Return a list of assignment with the same task and entry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutomaticAssignmentDAO

public AutomaticAssignmentDAO()
Method Detail

checkExist

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

Specified by:
checkExist in interface IAutomaticAssignmentDAO
Parameters:
assign - the assignment to check
plugin - the plugin
Returns:
true if exists

delete

public void delete(AutomaticAssignment assign,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an automatic assignment

Specified by:
delete in interface IAutomaticAssignmentDAO
Parameters:
assign - the assignment to delete
plugin - the plugin

deleteByTask

public void deleteByTask(int nIdTask,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete all automatic assignment linked to a task

Specified by:
deleteByTask in interface IAutomaticAssignmentDAO
Parameters:
nIdTask - the task id
plugin - the plugin

insert

public void insert(AutomaticAssignment assign,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create a new automatic assignment

Specified by:
insert in interface IAutomaticAssignmentDAO
Parameters:
assign - the assignment to create
plugin - the plugin

loadByTaskByEntry

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

Specified by:
loadByTaskByEntry in interface IAutomaticAssignmentDAO
Parameters:
nIdTask - the task id
nIdEntry - the entry id
plugin - the plugin
Returns:
assignmentList the list of automatic assignment

loadByTask

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

Specified by:
loadByTask in interface IAutomaticAssignmentDAO
Parameters:
nIdTask - the task id
plugin - the plugin
Returns:
assignmentList the list of automatic assignment

getIdEntriesListByTask

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

Specified by:
getIdEntriesListByTask in interface IAutomaticAssignmentDAO
Parameters:
nIdTask - the task id
plugin - the plugin
Returns:
idEntriesList the list of entries id


Copyright © 2012 Mairie de Paris. All Rights Reserved.