Enum Class TaskAlertService

java.lang.Object
java.lang.Enum<TaskAlertService>
fr.paris.lutece.plugins.workflow.modules.alertgru.service.TaskAlertService
All Implemented Interfaces:
Serializable, Comparable<TaskAlertService>, Constable

public enum TaskAlertService extends Enum<TaskAlertService>
  • Enum Constant Details

  • Method Details

    • values

      public static TaskAlertService[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TaskAlertService valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • sendAlert

      public void sendAlert()
      Send gru alert service
    • getReferenceDateAlert

      public Optional<Timestamp> getReferenceDateAlert(int nIdTask, fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory resourceHistory, jakarta.servlet.http.HttpServletRequest request)
      Get the alert reference date
      Parameters:
      nIdTask - the id task
      resourceHistory - the resource history
      request - the request
      Returns:
      Timestamp alert reference
    • updateResourceQueue

      public void updateResourceQueue(fr.paris.lutece.portal.business.event.ResourceEvent event)
      Update resource queue when an event is triggered
      Parameters:
      event - the resource event (event of the Listener)