Enum TaskAlertService
- java.lang.Object
-
- java.lang.Enum<TaskAlertService>
-
- fr.paris.lutece.plugins.workflow.modules.alertgru.service.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 datevoidsendAlert()Send gru alert servicevoidupdateResourceQueue(fr.paris.lutece.portal.business.event.ResourceEvent event)Update resource queue when an event is triggeredstatic TaskAlertServicevalueOf(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.
-
-
-
Enum Constant Detail
-
INSNACE
public static final TaskAlertService INSNACE
-
-
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 namejava.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 taskresourceHistory- the resource historyrequest- 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)
-
-