BrightSide Workbench Full Report + Source Code
org.turro.dossier.util.DossierElephantNotification Class Reference
Inheritance diagram for org.turro.dossier.util.DossierElephantNotification:
Collaboration diagram for org.turro.dossier.util.DossierElephantNotification:

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 PROJECT_NOTIFICATION = "/project"
 

Detailed Description

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

Definition at line 38 of file DossierElephantNotification.java.

Member Function Documentation

◆ checkConstraints()

void org.turro.dossier.util.DossierElephantNotification.checkConstraints ( String  idCategory)

Implements org.turro.action.queue.IElephantNotification.

Definition at line 100 of file DossierElephantNotification.java.

100  {
101  //
102  }

◆ getAllCategories()

Collection<NotificationCategory> org.turro.dossier.util.DossierElephantNotification.getAllCategories ( )

Implements org.turro.action.queue.IElephantNotification.

Definition at line 47 of file DossierElephantNotification.java.

47  {
48  return getCategories();
49  }
Here is the call graph for this function:

◆ getAllCategoryIds()

Collection<String> org.turro.dossier.util.DossierElephantNotification.getAllCategoryIds ( )

Implements org.turro.action.queue.IElephantNotification.

Definition at line 58 of file DossierElephantNotification.java.

58  {
59  return getCategoryIds();
60  }
Here is the call graph for this function:

◆ getCategories()

Collection<NotificationCategory> org.turro.dossier.util.DossierElephantNotification.getCategories ( )

Implements org.turro.action.queue.IElephantNotification.

Definition at line 41 of file DossierElephantNotification.java.

41  {
42  NotificationCategoryMap map = initCategories(this);
43  return map.values();
44  }
Here is the caller graph for this function:

◆ getCategory()

NotificationCategory org.turro.dossier.util.DossierElephantNotification.getCategory ( String  id)

Implements org.turro.action.queue.IElephantNotification.

Definition at line 63 of file DossierElephantNotification.java.

63  {
64  NotificationCategoryMap map = initCategories(this);
65  return map.get(id);
66  }
Here is the caller graph for this function:

◆ getCategoryIds()

Collection<String> org.turro.dossier.util.DossierElephantNotification.getCategoryIds ( )

Implements org.turro.action.queue.IElephantNotification.

Definition at line 52 of file DossierElephantNotification.java.

52  {
53  NotificationCategoryMap map = initCategories(this);
54  return map.keySet();
55  }
Here is the caller graph for this function:

◆ period()

QueuePeriod org.turro.dossier.util.DossierElephantNotification.period ( String  idCategory,
IContact  contact 
)

Implements org.turro.action.queue.IElephantNotification.

Definition at line 69 of file DossierElephantNotification.java.

69  {
70  QueueManager qm = new QueueManager();
71  QueueOptions qo = qm.getConfiguration(contact, idCategory);
72  return qo != null ? qo.getPeriod() : null;
73  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ periodToAll()

void org.turro.dossier.util.DossierElephantNotification.periodToAll ( String  idCategory,
QueuePeriod  period 
)

Implements org.turro.action.queue.IElephantNotification.

Definition at line 94 of file DossierElephantNotification.java.

94  {
95  QueueManager qm = new QueueManager();
96  qm.setPeriodToAll(idCategory, period);
97  }
QueuePeriod period(String idCategory, IContact contact)
Here is the call graph for this function:

◆ removeAll()

void org.turro.dossier.util.DossierElephantNotification.removeAll ( String  idCategory)

Implements org.turro.action.queue.IElephantNotification.

Definition at line 88 of file DossierElephantNotification.java.

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

◆ reset()

void org.turro.dossier.util.DossierElephantNotification.reset ( )

Implements org.turro.action.queue.IElephantNotification.

Definition at line 105 of file DossierElephantNotification.java.

105  {
106  // do nothing
107  }

◆ subscribe()

void org.turro.dossier.util.DossierElephantNotification.subscribe ( String  idCategory,
IContact  contact,
QueuePeriod  period 
)

Implements org.turro.action.queue.IElephantNotification.

Definition at line 76 of file DossierElephantNotification.java.

76  {
77  QueueManager qm = new QueueManager();
78  qm.setPeriod(contact, idCategory, period, true);
79  }
Here is the call graph for this function:

◆ subscribeIfNot()

void org.turro.dossier.util.DossierElephantNotification.subscribeIfNot ( String  idCategory,
IContact  contact,
QueuePeriod  period 
)

Implements org.turro.action.queue.IElephantNotification.

Definition at line 82 of file DossierElephantNotification.java.

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

Member Data Documentation

◆ PROJECT_NOTIFICATION

final String org.turro.dossier.util.DossierElephantNotification.PROJECT_NOTIFICATION = "/project"
static

Definition at line 114 of file DossierElephantNotification.java.


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