Class AbstractTaskNotifyAppointment<T extends NotifyAppointmentDTO>
java.lang.Object
fr.paris.lutece.plugins.workflowcore.service.task.Task
fr.paris.lutece.plugins.workflowcore.service.task.SimpleTask
fr.paris.lutece.plugins.workflow.modules.appointment.service.AbstractTaskNotifyAppointment<T>
- Type Parameters:
T- The type of the DTO to use to send the email
- All Implemented Interfaces:
fr.paris.lutece.plugins.workflowcore.service.task.ITask
- Direct Known Subclasses:
TaskManualAppointmentNotification,TaskNotifyAdminAppointment,TaskNotifyAppointment
public abstract class AbstractTaskNotifyAppointment<T extends NotifyAppointmentDTO>
extends fr.paris.lutece.plugins.workflowcore.service.task.SimpleTask
Abstract task to notify a user of an appointment.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfillModel(jakarta.servlet.http.HttpServletRequest request, T notifyAppointmentDTO, fr.paris.lutece.plugins.appointment.web.dto.AppointmentDTO appointment, Locale locale) Get a model to generate email content for a given appointment and a given tasksendEmail(fr.paris.lutece.plugins.appointment.web.dto.AppointmentDTO appointment, fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory resourceHistory, jakarta.servlet.http.HttpServletRequest request, Locale locale, T notifyAppointmentDTO, String strEmail) Send an email to a userMethods inherited from class fr.paris.lutece.plugins.workflowcore.service.task.SimpleTask
doRemoveConfig, doRemoveTaskInformation, getTaskFormEntries, initMethods inherited from class fr.paris.lutece.plugins.workflowcore.service.task.Task
getAction, getActionUid, getId, getOrder, getTaskType, getUid, setAction, setActionUid, setId, setOrder, setTaskType, setUidMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.paris.lutece.plugins.workflowcore.service.task.ITask
doAnonymizeTaskInformation, getTitle, processTask, processTask, processTaskWithResult, processTaskWithResult
-
Constructor Details
-
AbstractTaskNotifyAppointment
public AbstractTaskNotifyAppointment()
-
-
Method Details
-
sendEmail
public EmailDTO sendEmail(fr.paris.lutece.plugins.appointment.web.dto.AppointmentDTO appointment, fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory resourceHistory, jakarta.servlet.http.HttpServletRequest request, Locale locale, T notifyAppointmentDTO, String strEmail) Send an email to a user- Parameters:
appointment- The appointmentresourceHistory- The resource historyrequest- The requestlocale- The localenotifyAppointmentDTO- The DTO with data of the emailstrEmail- The address to send the email to- Returns:
- The content sent, or null if no email was sent
-
fillModel
public Map<String,Object> fillModel(jakarta.servlet.http.HttpServletRequest request, T notifyAppointmentDTO, fr.paris.lutece.plugins.appointment.web.dto.AppointmentDTO appointment, Locale locale) Get a model to generate email content for a given appointment and a given task- Parameters:
request- The requestnotifyAppointmentDTO- The configuration of the taskappointment- The appointment to processlocale- The locale- Returns:
- The model filled with data
-