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

Public Member Functions

 NotificationCategory (String idCategory, String category, String description, EnumSet< QueuePeriod > allowedPeriods, boolean unique, QueuePeriod defaultPeriod, IElephantNotification notification, NotificationRole role, Set< NotificationConstraint > constraints, boolean publishable)
 
String getIdCategory ()
 
String getCategory ()
 
String getDescription ()
 
EnumSet< QueuePeriodgetAllowedPeriods ()
 
boolean isUnique ()
 
QueuePeriod getDefaultPeriod ()
 
IElephantNotification getNotification ()
 
NotificationRole getRole ()
 
boolean isPublishable ()
 
NotificationConstraintSet getConstraints ()
 
boolean isValid (IContact contact)
 
boolean strongBond (ConstraintKeys keys)
 
boolean wideBond (ConstraintKeys keys)
 

Detailed Description

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

Definition at line 29 of file NotificationCategory.java.

Constructor & Destructor Documentation

◆ NotificationCategory()

org.turro.action.queue.NotificationCategory.NotificationCategory ( String  idCategory,
String  category,
String  description,
EnumSet< QueuePeriod allowedPeriods,
boolean  unique,
QueuePeriod  defaultPeriod,
IElephantNotification  notification,
NotificationRole  role,
Set< NotificationConstraint constraints,
boolean  publishable 
)

Definition at line 39 of file NotificationCategory.java.

43  {
44  this.idCategory = idCategory;
45  this.category = category;
46  this.description = description;
47  this.allowedPeriods = allowedPeriods;
48  this.unique = unique;
49  this.defaultPeriod = defaultPeriod;
50  this.notification = notification;
51  this.role = role;
52  this.constraints = new NotificationConstraintSet(constraints);
53  this.publishable = publishable;
54  }

Member Function Documentation

◆ getAllowedPeriods()

EnumSet<QueuePeriod> org.turro.action.queue.NotificationCategory.getAllowedPeriods ( )

Definition at line 68 of file NotificationCategory.java.

68  {
69  return allowedPeriods;
70  }
Here is the caller graph for this function:

◆ getCategory()

String org.turro.action.queue.NotificationCategory.getCategory ( )

Definition at line 60 of file NotificationCategory.java.

60  {
61  return category;
62  }
Here is the caller graph for this function:

◆ getConstraints()

NotificationConstraintSet org.turro.action.queue.NotificationCategory.getConstraints ( )

Definition at line 92 of file NotificationCategory.java.

92  {
93  return constraints;
94  }
Here is the caller graph for this function:

◆ getDefaultPeriod()

QueuePeriod org.turro.action.queue.NotificationCategory.getDefaultPeriod ( )

Definition at line 76 of file NotificationCategory.java.

76  {
77  return defaultPeriod;
78  }
Here is the caller graph for this function:

◆ getDescription()

String org.turro.action.queue.NotificationCategory.getDescription ( )

Definition at line 64 of file NotificationCategory.java.

64  {
65  return description;
66  }
Here is the caller graph for this function:

◆ getIdCategory()

String org.turro.action.queue.NotificationCategory.getIdCategory ( )

Definition at line 56 of file NotificationCategory.java.

56  {
57  return idCategory;
58  }
Here is the caller graph for this function:

◆ getNotification()

IElephantNotification org.turro.action.queue.NotificationCategory.getNotification ( )

Definition at line 80 of file NotificationCategory.java.

80  {
81  return notification;
82  }
Here is the caller graph for this function:

◆ getRole()

NotificationRole org.turro.action.queue.NotificationCategory.getRole ( )

Definition at line 84 of file NotificationCategory.java.

84  {
85  return role;
86  }
Here is the caller graph for this function:

◆ isPublishable()

boolean org.turro.action.queue.NotificationCategory.isPublishable ( )

Definition at line 88 of file NotificationCategory.java.

88  {
89  return publishable;
90  }
Here is the caller graph for this function:

◆ isUnique()

boolean org.turro.action.queue.NotificationCategory.isUnique ( )

Definition at line 72 of file NotificationCategory.java.

72  {
73  return unique;
74  }
Here is the caller graph for this function:

◆ isValid()

boolean org.turro.action.queue.NotificationCategory.isValid ( IContact  contact)

Definition at line 96 of file NotificationCategory.java.

96  {
97  return contact != null && contact.isValid() && contact.isWebUser();
98  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ strongBond()

boolean org.turro.action.queue.NotificationCategory.strongBond ( ConstraintKeys  keys)

Definition at line 100 of file NotificationCategory.java.

100  {
101  return constraints.strongBond(keys);
102  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wideBond()

boolean org.turro.action.queue.NotificationCategory.wideBond ( ConstraintKeys  keys)

Definition at line 104 of file NotificationCategory.java.

104  {
105  return (constraints.isEmpty() && !isPublishable()) ? false : constraints.wideBond(keys);
106  }
Here is the call graph for this function:

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