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> |
findByTaskByQuestion(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.plugins.forms.business.Question> |
getAllQuestions(int nIdTask)
Get the list of entries from a given id task
|
List<fr.paris.lutece.plugins.forms.business.Question> |
getAuthorizedQuestions(int nIdTask)
Get the list of entries from a given id task
|
List<fr.paris.lutece.util.mail.FileAttachment> |
getFilesAttachment(TaskAutomaticAssignmentConfig config,
List<fr.paris.lutece.plugins.forms.business.FormQuestionResponse> listFormQuestionResponse)
the files Attachments to insert in the mail
|
List<fr.paris.lutece.plugins.forms.business.Question> |
getQuestionsTypesFile(int nIdTask) |
void |
notify(List<fr.paris.lutece.plugins.forms.business.FormQuestionResponse> listFormQuestionResponse,
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-formsautomaticassignment.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-formsautomaticassignment.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-formsautomaticassignment.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 List<AutomaticAssignment> findByTaskByQuestion(int nIdTask, int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByTaskByQuestion 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.forms.business.Question> getAllQuestions(int nIdTask)
getAllQuestions in interface IAutomaticAssignmentServicenIdTask - the id taskpublic List<fr.paris.lutece.plugins.forms.business.Question> getAuthorizedQuestions(int nIdTask)
getAuthorizedQuestions in interface IAutomaticAssignmentServicenIdTask - the id taskpublic List<fr.paris.lutece.plugins.forms.business.Question> getQuestionsTypesFile(int nIdTask)
getQuestionsTypesFile in interface IAutomaticAssignmentServicepublic List<fr.paris.lutece.util.mail.FileAttachment> getFilesAttachment(TaskAutomaticAssignmentConfig config, List<fr.paris.lutece.plugins.forms.business.FormQuestionResponse> listFormQuestionResponse)
getFilesAttachment in interface IAutomaticAssignmentServiceconfig - the configurationpublic void notify(List<fr.paris.lutece.plugins.forms.business.FormQuestionResponse> listFormQuestionResponse, 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 © 2020 City of Paris. All rights reserved.