Class AbstractTaskNotifyAppointment<T extends NotifyAppointmentDTO>

    • 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.
      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
      • 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 interface fr.paris.lutece.plugins.workflowcore.service.task.ITask

        doAnonymizeTaskInformation, getTitle, processTask, processTask, processTaskWithResult, processTaskWithResult
    • Constructor Detail

      • AbstractTaskNotifyAppointment

        public AbstractTaskNotifyAppointment()
    • 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 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​(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 request
        notifyAppointmentDTO - The configuration of the task.
        appointment - The appointment to get data from
        appointmentSlot - The slot associated with the appointment
        locale - The locale
        Returns:
        The model with data