fr.paris.lutece.plugins.workflow.modules.automaticassignment.business
Interface IAutomaticAssignmentDAO

All Known Implementing Classes:
AutomaticAssignmentDAO

public interface IAutomaticAssignmentDAO

IAutomaticAssignmentDAO


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
 

Method Detail

insert

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

Parameters:
assign - the assignment to create
plugin - the plugin

delete

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

Parameters:
assign - the assignment to delete
plugin - the plugin

deleteByTask

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

Parameters:
nIdTask - the task id
plugin - the plugin

checkExist

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

loadByTaskByEntry

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

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

loadByTask

java.util.List<AutomaticAssignment> loadByTask(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

getIdEntriesListByTask

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

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


Copyright © 2012 Mairie de Paris. All Rights Reserved.