public interface NotificationManager
NotificationTask
Modifier and Type | Method and Description |
---|---|
long |
countExecutionsWithStatus(String taskKey,
String status)
Count the number of task executions of a given task with a given status.
|
void |
createTasks(AfterHandlingEvent event)
Create notification tasks according to the provided event.
|
List<NotificationTask> |
createTasks(String who,
AuditElements.EventCategoryType type,
String category,
String subcategory,
String event,
AuditElements.Result condition,
Object before,
Object output,
Object... input)
Create notification tasks for each notification matching provided conditions.
|
long |
getMaxRetries() |
boolean |
notificationsAvailable(AuditElements.EventCategoryType type,
String category,
String subcategory,
String event)
Checks if notifications are available matching the provided conditions.
|
void |
setTaskExecuted(String taskKey,
boolean executed)
Set execution state of NotificationTask with provided id.
|
TaskExec |
storeExec(TaskExec execution)
Store execution of a NotificationTask.
|
long countExecutionsWithStatus(String taskKey, String status)
taskKey
- taskstatus
- statusboolean notificationsAvailable(AuditElements.EventCategoryType type, String category, String subcategory, String event)
type
- event category typecategory
- event categorysubcategory
- event subcategoryevent
- eventvoid createTasks(AfterHandlingEvent event)
event
- Spring event raised during Logic processingList<NotificationTask> createTasks(String who, AuditElements.EventCategoryType type, String category, String subcategory, String event, AuditElements.Result condition, Object before, Object output, Object... input)
who
- user triggering the eventtype
- event category typecategory
- event categorysubcategory
- event subcategoryevent
- eventcondition
- result value condition.before
- object(s) availabile before the eventoutput
- object(s) produced by the eventinput
- object(s) provided to the eventlong getMaxRetries()
void setTaskExecuted(String taskKey, boolean executed)
taskKey
- task to be updatedexecuted
- execution stateCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.