Enum TaskAlertService

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<TaskAlertService>

    public enum TaskAlertService
    extends java.lang.Enum<TaskAlertService>
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      INSNACE  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.sql.Timestamp> getReferenceDateAlert​(int nIdTask, fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory resourceHistory, javax.servlet.http.HttpServletRequest request)
      Get the alert reference date
      void sendAlert()
      Send gru alert service
      void updateResourceQueue​(fr.paris.lutece.portal.business.event.ResourceEvent event)
      Update resource queue when an event is triggered
      static TaskAlertService valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static TaskAlertService[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • values

        public static TaskAlertService[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TaskAlertService c : TaskAlertService.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TaskAlertService valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • sendAlert

        public void sendAlert()
        Send gru alert service
      • getReferenceDateAlert

        public java.util.Optional<java.sql.Timestamp> getReferenceDateAlert​(int nIdTask,
                                                                            fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory resourceHistory,
                                                                            javax.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)