BrightSide Workbench Full Report + Source Code
org.turro.action.queue.Notifications Class Reference

Static Public Member Functions

static Collection< NotificationCategorygetCategories ()
 
static Collection< NotificationCategorygetAllCategories ()
 
static NotificationCategory getCategory (String id)
 
static void reset ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 30 of file Notifications.java.

Member Function Documentation

◆ getAllCategories()

static Collection<NotificationCategory> org.turro.action.queue.Notifications.getAllCategories ( )
static

Definition at line 40 of file Notifications.java.

40  {
41  TreeSet<NotificationCategory> set = new TreeSet<>(new NotificationCategoryComparator());
42  for(IElephantNotification notification : Instances.cached().byAnnotation(ElephantNotification.class, IElephantNotification.class)) {
43  set.addAll(notification.getAllCategories());
44  }
45  return set;
46  }

◆ getCategories()

static Collection<NotificationCategory> org.turro.action.queue.Notifications.getCategories ( )
static

Definition at line 32 of file Notifications.java.

32  {
33  TreeSet<NotificationCategory> set = new TreeSet<>(new NotificationCategoryComparator());
34  for(IElephantNotification notification : Instances.cached().byAnnotation(ElephantNotification.class, IElephantNotification.class)) {
35  set.addAll(notification.getCategories());
36  }
37  return set;
38  }
Here is the caller graph for this function:

◆ getCategory()

static NotificationCategory org.turro.action.queue.Notifications.getCategory ( String  id)
static

Definition at line 48 of file Notifications.java.

48  {
49  for(IElephantNotification notification : Instances.cached().byAnnotation(ElephantNotification.class, IElephantNotification.class)) {
50  NotificationCategory nc = notification.getCategory(id);
51  if(nc != null) return nc;
52  }
53  return null;
54  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset()

static void org.turro.action.queue.Notifications.reset ( )
static

Definition at line 56 of file Notifications.java.

56  {
57  for(IElephantNotification notification : Instances.cached().byAnnotation(ElephantNotification.class, IElephantNotification.class)) {
58  notification.reset();
59  }
60  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: