public interface IAutomaticAssignmentService
| 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
|
@Transactional(value="workflow-automaticassignment.transactionManager") void create(AutomaticAssignment assign, fr.paris.lutece.portal.service.plugin.Plugin plugin)
assign - The instance of AutomaticAssignmentplugin - the plugin@Transactional(value="workflow-automaticassignment.transactionManager") void remove(AutomaticAssignment assign, fr.paris.lutece.portal.service.plugin.Plugin plugin)
assign - The AutomaticAssignmentplugin - the plugin@Transactional(value="workflow-automaticassignment.transactionManager")
void removeByTask(int nIdTask,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdTask - The id of the taskplugin - the pluginboolean checkExist(AutomaticAssignment assign, fr.paris.lutece.portal.service.plugin.Plugin plugin)
assign - the assignment to checkplugin - the pluginboolean isEntryTypeFileAccepted(int nIdEntryType)
nIdEntryType - the id entry typeList<AutomaticAssignment> findByTaskByEntry(int nIdTask, int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdTask - the task idnIdEntry - the entry idplugin - the pluginList<AutomaticAssignment> findByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdTask - the task idplugin - the pluginList<Integer> findAllIdEntriesByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdTask - the task idplugin - the pluginList<fr.paris.lutece.plugins.directory.business.IEntry> getListEntries(int nIdTask)
nIdTask - the id taskList<fr.paris.lutece.plugins.directory.business.IEntry> getListEntriesFile(int nIdTask, Locale locale)
nIdTask - the id tasklocale - the LocaleList<fr.paris.lutece.util.mail.FileAttachment> getFilesAttachment(TaskAutomaticAssignmentConfig config, int nIdRecord, int nIdDirectory)
config - the configurationnIdRecord - the record idnIdDirectory - the directory idvoid 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)
config - the configlistWorkgroup - the list of workgroupsresourceHistory - the resource historyrequest - the HTTP requestlocale - the Localetask - the taskCopyright © 2016 City of Paris. All rights reserved.