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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    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

    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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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 appointment
      resourceHistory - The resource history
      request - The request
      locale - The locale
      notifyAppointmentDTO - The DTO with data of the email
      strEmail - 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 request
      notifyAppointmentDTO - The configuration of the task
      appointment - The appointment to process
      locale - The locale
      Returns:
      The model filled with data