BrightSide Workbench Full Report + Source Code
org.turro.mail.queue.GenericElephantNotification Class Reference
Inheritance diagram for org.turro.mail.queue.GenericElephantNotification:
Collaboration diagram for org.turro.mail.queue.GenericElephantNotification:

Public Member Functions

Collection< NotificationCategorygetCategories ()
 
Collection< NotificationCategorygetAllCategories ()
 
Collection< String > getCategoryIds ()
 
Collection< String > getAllCategoryIds ()
 
NotificationCategory getCategory (String id)
 
QueuePeriod period (String idCategory, IContact contact)
 
void subscribe (String idCategory, IContact contact, QueuePeriod period)
 
void subscribeIfNot (String idCategory, IContact contact, QueuePeriod period)
 
void removeAll (String idCategory)
 
void periodToAll (String idCategory, QueuePeriod period)
 
void checkConstraints (String idCategory)
 
void reset ()
 

Static Public Attributes

static final String GENERIC_NOTIFICATION = "/elephant"
 

Detailed Description

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

Definition at line 36 of file GenericElephantNotification.java.

Member Function Documentation

◆ checkConstraints()

void org.turro.mail.queue.GenericElephantNotification.checkConstraints ( String  idCategory)

Implements org.turro.action.queue.IElephantNotification.

Definition at line 106 of file GenericElephantNotification.java.

106  {
107  //
108  }

◆ getAllCategories()

Collection<NotificationCategory> org.turro.mail.queue.GenericElephantNotification.getAllCategories ( )

Implements org.turro.action.queue.IElephantNotification.

Definition at line 45 of file GenericElephantNotification.java.

45  {
46  NotificationCategoryMap map = new NotificationCategoryMap();
47  map.putAll(initCategories(this));
48  map.putAll(_private);
49  return map.values();
50  }

◆ getAllCategoryIds()

Collection<String> org.turro.mail.queue.GenericElephantNotification.getAllCategoryIds ( )

Implements org.turro.action.queue.IElephantNotification.

Definition at line 59 of file GenericElephantNotification.java.

59  {
60  NotificationCategoryMap map = new NotificationCategoryMap();
61  map.putAll(initCategories(this));
62  map.putAll(_private);
63  return map.keySet();
64  }

◆ getCategories()

Collection<NotificationCategory> org.turro.mail.queue.GenericElephantNotification.getCategories ( )

Implements org.turro.action.queue.IElephantNotification.

Definition at line 39 of file GenericElephantNotification.java.

39  {
40  NotificationCategoryMap map = initCategories(this);
41  return map.values();
42  }

◆ getCategory()

NotificationCategory org.turro.mail.queue.GenericElephantNotification.getCategory ( String  id)

Implements org.turro.action.queue.IElephantNotification.

Definition at line 67 of file GenericElephantNotification.java.

67  {
68  NotificationCategoryMap map = new NotificationCategoryMap();
69  map.putAll(initCategories(this));
70  map.putAll(_private);
71  return map.get(id);
72  }

◆ getCategoryIds()

Collection<String> org.turro.mail.queue.GenericElephantNotification.getCategoryIds ( )

Implements org.turro.action.queue.IElephantNotification.

Definition at line 53 of file GenericElephantNotification.java.

53  {
54  NotificationCategoryMap map = initCategories(this);
55  return map.keySet();
56  }

◆ period()

QueuePeriod org.turro.mail.queue.GenericElephantNotification.period ( String  idCategory,
IContact  contact 
)

Implements org.turro.action.queue.IElephantNotification.

Definition at line 75 of file GenericElephantNotification.java.

75  {
76  QueueManager qm = new QueueManager();
77  QueueOptions qo = qm.getConfiguration(contact, idCategory);
78  return qo != null ? qo.getPeriod() : null;
79  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ periodToAll()

void org.turro.mail.queue.GenericElephantNotification.periodToAll ( String  idCategory,
QueuePeriod  period 
)

Implements org.turro.action.queue.IElephantNotification.

Definition at line 100 of file GenericElephantNotification.java.

100  {
101  QueueManager qm = new QueueManager();
102  qm.setPeriodToAll(idCategory, period);
103  }
QueuePeriod period(String idCategory, IContact contact)
Here is the call graph for this function:

◆ removeAll()

void org.turro.mail.queue.GenericElephantNotification.removeAll ( String  idCategory)

Implements org.turro.action.queue.IElephantNotification.

Definition at line 94 of file GenericElephantNotification.java.

94  {
95  QueueManager qm = new QueueManager();
96  qm.removeOptions(idCategory);
97  }
Here is the call graph for this function:

◆ reset()

void org.turro.mail.queue.GenericElephantNotification.reset ( )

Implements org.turro.action.queue.IElephantNotification.

Definition at line 111 of file GenericElephantNotification.java.

111  {
112  // do nothing
113  }

◆ subscribe()

void org.turro.mail.queue.GenericElephantNotification.subscribe ( String  idCategory,
IContact  contact,
QueuePeriod  period 
)

Implements org.turro.action.queue.IElephantNotification.

Definition at line 82 of file GenericElephantNotification.java.

82  {
83  QueueManager qm = new QueueManager();
84  qm.setPeriod(contact, idCategory, period, true);
85  }
Here is the call graph for this function:

◆ subscribeIfNot()

void org.turro.mail.queue.GenericElephantNotification.subscribeIfNot ( String  idCategory,
IContact  contact,
QueuePeriod  period 
)

Implements org.turro.action.queue.IElephantNotification.

Definition at line 88 of file GenericElephantNotification.java.

88  {
89  QueueManager qm = new QueueManager();
90  qm.setPeriod(contact, idCategory, period, false);
91  }
Here is the call graph for this function:

Member Data Documentation

◆ GENERIC_NOTIFICATION

final String org.turro.mail.queue.GenericElephantNotification.GENERIC_NOTIFICATION = "/elephant"
static

Definition at line 120 of file GenericElephantNotification.java.


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