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.SimpleTaskAbstract task to notify a user of an appointment.
-
-
Constructor Summary
Constructors Constructor Description AbstractTaskNotifyAppointment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>fillModel(javax.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.EmailDTOsendEmail(fr.paris.lutece.plugins.appointment.web.dto.AppointmentDTO appointment, fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory resourceHistory, javax.servlet.http.HttpServletRequest request, Locale locale, T notifyAppointmentDTO, String strEmail)Send an email to a user-
Methods inherited from class fr.paris.lutece.plugins.workflowcore.service.task.SimpleTask
doRemoveConfig, doRemoveTaskInformation, getTaskFormEntries, init
-
Methods inherited from class fr.paris.lutece.plugins.workflowcore.service.task.Task
getAction, getActionUid, getId, getOrder, getTaskType, getUid, setAction, setActionUid, setId, setOrder, setTaskType, setUid
-
-
-
-
Method Detail
-
sendEmail
public EmailDTO sendEmail(fr.paris.lutece.plugins.appointment.web.dto.AppointmentDTO appointment, fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory resourceHistory, javax.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(javax.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 task.appointment- The appointment to get data fromappointmentSlot- The slot associated with the appointmentlocale- The locale- Returns:
- The model with data
-
-