public final class AutomaticAssignmentService extends Object implements IAutomaticAssignmentService
| Modifier and Type | Field and Description |
|---|---|
static String |
BEAN_SERVICE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkExist(AutomaticAssignment assign,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if an assignment already exist
|
void |
create(AutomaticAssignment assign,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of assign
|
List<Integer> |
findAllIdEntriesByTask(int nIdTask,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return a list of id from entries with the same task
|
List<AutomaticAssignment> |
findByTask(int nIdTask,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return a list of assignment with the same task
|
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
|
List<fr.paris.lutece.util.mail.FileAttachment> |
getFilesAttachment(TaskAutomaticAssignmentConfig config,
int nIdRecord,
int nIdDirectory)
the files Attachments to insert in the mail
|
List<fr.paris.lutece.plugins.directory.business.IEntry> |
getListEntries(int nIdTask)
Get the list of entries from a given id task
|
List<fr.paris.lutece.plugins.directory.business.IEntry> |
getListEntriesFile(int nIdTask,
Locale locale)
Get the list of entries that have the accepted type for file
|
boolean |
isEntryTypeFileAccepted(int nIdEntryType)
Check if the given entry type id is accepted for file
|
void |
notify(TaskAutomaticAssignmentConfig config,
List<String> listWorkgroup,
fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory resourceHistory,
javax.servlet.http.HttpServletRequest request,
Locale locale,
fr.paris.lutece.plugins.workflowcore.service.task.ITask task)
Notify the mailing list associated to the list of workgroups
|
void |
remove(AutomaticAssignment assign,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove assign which is specified in parameter
|
void |
removeByTask(int nIdTask,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all assign linked to the task
|
public static final String BEAN_SERVICE
@Transactional(value="workflow-automaticassignment.transactionManager") public void create(AutomaticAssignment assign, fr.paris.lutece.portal.service.plugin.Plugin plugin)
create in interface IAutomaticAssignmentServiceassign - The instance of AutomaticAssignmentplugin - the plugin@Transactional(value="workflow-automaticassignment.transactionManager") public void remove(AutomaticAssignment assign, fr.paris.lutece.portal.service.plugin.Plugin plugin)
remove in interface IAutomaticAssignmentServiceassign - The AutomaticAssignmentplugin - the plugin@Transactional(value="workflow-automaticassignment.transactionManager")
public void removeByTask(int nIdTask,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeByTask in interface IAutomaticAssignmentServicenIdTask - The id of the taskplugin - the pluginpublic boolean checkExist(AutomaticAssignment assign, fr.paris.lutece.portal.service.plugin.Plugin plugin)
checkExist in interface IAutomaticAssignmentServiceassign - the assignment to checkplugin - the pluginpublic boolean isEntryTypeFileAccepted(int nIdEntryType)
isEntryTypeFileAccepted in interface IAutomaticAssignmentServicenIdEntryType - the id entry typepublic List<AutomaticAssignment> findByTaskByEntry(int nIdTask, int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByTaskByEntry in interface IAutomaticAssignmentServicenIdTask - the task idnIdEntry - the entry idplugin - the pluginpublic List<AutomaticAssignment> findByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByTask in interface IAutomaticAssignmentServicenIdTask - the task idplugin - the pluginpublic List<Integer> findAllIdEntriesByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findAllIdEntriesByTask in interface IAutomaticAssignmentServicenIdTask - the task idplugin - the pluginpublic List<fr.paris.lutece.plugins.directory.business.IEntry> getListEntries(int nIdTask)
getListEntries in interface IAutomaticAssignmentServicenIdTask - the id taskpublic List<fr.paris.lutece.plugins.directory.business.IEntry> getListEntriesFile(int nIdTask, Locale locale)
getListEntriesFile in interface IAutomaticAssignmentServicenIdTask - the id tasklocale - the Localepublic List<fr.paris.lutece.util.mail.FileAttachment> getFilesAttachment(TaskAutomaticAssignmentConfig config, int nIdRecord, int nIdDirectory)
getFilesAttachment in interface IAutomaticAssignmentServiceconfig - the configurationnIdRecord - the record idnIdDirectory - the directory idpublic void notify(TaskAutomaticAssignmentConfig config, List<String> listWorkgroup, fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory resourceHistory, javax.servlet.http.HttpServletRequest request, Locale locale, fr.paris.lutece.plugins.workflowcore.service.task.ITask task)
notify in interface IAutomaticAssignmentServiceconfig - the configlistWorkgroup - the list of workgroupsresourceHistory - the resource historyrequest - the HTTP requestlocale - the Localetask - the taskCopyright © 2016 City of Paris. All rights reserved.