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

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 Member Functions

static String convertId (PublicationCategory category)
 

Static Public Attributes

static final String PUBLICATION_NOTIFICATION = "/publication"
 

Detailed Description

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

Definition at line 43 of file PublicationElephantNotification.java.

Member Function Documentation

◆ checkConstraints()

void org.turro.publication.util.PublicationElephantNotification.checkConstraints ( String  idCategory)

Implements org.turro.action.queue.IElephantNotification.

Definition at line 105 of file PublicationElephantNotification.java.

105  {
106  QueueManager qm = new QueueManager();
107  qm.checkConstraints(idCategory);
108  }
Here is the call graph for this function:

◆ convertId()

static String org.turro.publication.util.PublicationElephantNotification.convertId ( PublicationCategory  category)
static

Definition at line 115 of file PublicationElephantNotification.java.

115  {
116  return PUBLICATION_NOTIFICATION + "/" + category.getId();
117  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAllCategories()

Collection<NotificationCategory> org.turro.publication.util.PublicationElephantNotification.getAllCategories ( )

Implements org.turro.action.queue.IElephantNotification.

Definition at line 52 of file PublicationElephantNotification.java.

52  {
53  return getCategories();
54  }
Here is the call graph for this function:

◆ getAllCategoryIds()

Collection<String> org.turro.publication.util.PublicationElephantNotification.getAllCategoryIds ( )

Implements org.turro.action.queue.IElephantNotification.

Definition at line 63 of file PublicationElephantNotification.java.

Here is the call graph for this function:

◆ getCategories()

Collection<NotificationCategory> org.turro.publication.util.PublicationElephantNotification.getCategories ( )

Implements org.turro.action.queue.IElephantNotification.

Definition at line 46 of file PublicationElephantNotification.java.

46  {
47  NotificationCategoryMap map = initCategories(this);
48  return map.values();
49  }
Here is the caller graph for this function:

◆ getCategory()

NotificationCategory org.turro.publication.util.PublicationElephantNotification.getCategory ( String  id)

Implements org.turro.action.queue.IElephantNotification.

Definition at line 68 of file PublicationElephantNotification.java.

68  {
69  NotificationCategoryMap map = initCategories(this);
70  return map.get(id);
71  }

◆ getCategoryIds()

Collection<String> org.turro.publication.util.PublicationElephantNotification.getCategoryIds ( )

Implements org.turro.action.queue.IElephantNotification.

Definition at line 57 of file PublicationElephantNotification.java.

57  {
58  NotificationCategoryMap map = initCategories(this);
59  return map.keySet();
60  }
Here is the caller graph for this function:

◆ period()

QueuePeriod org.turro.publication.util.PublicationElephantNotification.period ( String  idCategory,
IContact  contact 
)

Implements org.turro.action.queue.IElephantNotification.

Definition at line 74 of file PublicationElephantNotification.java.

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

◆ periodToAll()

void org.turro.publication.util.PublicationElephantNotification.periodToAll ( String  idCategory,
QueuePeriod  period 
)

Implements org.turro.action.queue.IElephantNotification.

Definition at line 99 of file PublicationElephantNotification.java.

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

◆ removeAll()

void org.turro.publication.util.PublicationElephantNotification.removeAll ( String  idCategory)

Implements org.turro.action.queue.IElephantNotification.

Definition at line 93 of file PublicationElephantNotification.java.

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

◆ reset()

void org.turro.publication.util.PublicationElephantNotification.reset ( )

Implements org.turro.action.queue.IElephantNotification.

Definition at line 111 of file PublicationElephantNotification.java.

111  {
112  _categories = null;
113  }

◆ subscribe()

void org.turro.publication.util.PublicationElephantNotification.subscribe ( String  idCategory,
IContact  contact,
QueuePeriod  period 
)

Implements org.turro.action.queue.IElephantNotification.

Definition at line 81 of file PublicationElephantNotification.java.

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

◆ subscribeIfNot()

void org.turro.publication.util.PublicationElephantNotification.subscribeIfNot ( String  idCategory,
IContact  contact,
QueuePeriod  period 
)

Implements org.turro.action.queue.IElephantNotification.

Definition at line 87 of file PublicationElephantNotification.java.

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

Member Data Documentation

◆ PUBLICATION_NOTIFICATION

final String org.turro.publication.util.PublicationElephantNotification.PUBLICATION_NOTIFICATION = "/publication"
static

Definition at line 124 of file PublicationElephantNotification.java.


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