Class AbstractTaskNotifyAppointment<T extends NotifyAppointmentDTO>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> fillModel​(javax.servlet.http.HttpServletRequest request, T notifyAppointmentDTO, fr.paris.lutece.plugins.appointment.web.dto.AppointmentDTO appointment, java.util.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, java.util.Locale locale, T notifyAppointmentDTO, java.lang.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 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,
                                  java.util.Locale locale,
                                  T notifyAppointmentDTO,
                                  java.lang.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 java.util.Map<java.lang.String,​java.lang.Object> fillModel​(javax.servlet.http.HttpServletRequest request,
                                                                                T notifyAppointmentDTO,
                                                                                fr.paris.lutece.plugins.appointment.web.dto.AppointmentDTO appointment,
                                                                                java.util.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