BrightSide Workbench Full Report + Source Code
org.turro.mail.model.CategoriesVM Class Reference

Public Member Functions

void init (@ExecutionArgParam("contact") IContact contact)
 
void check (@BindingParam("entity") Object entity, @BindingParam("period") Object period)
 
boolean isChecked (NotificationCategory entity, QueuePeriod period)
 
List< NotificationCategorygetModel ()
 
String getLabel (String label)
 
QueuePeriod getPeriod (NotificationCategory entity)
 

Detailed Description

Member Function Documentation

◆ check()

void org.turro.mail.model.CategoriesVM.check ( @BindingParam("entity") Object  entity,
@BindingParam("period") Object  period 
)

Definition at line 52 of file Elephant/elephant-mail/src/main/java/org/turro/mail/model/CategoriesVM.java.

52  {
53  if((period instanceof QueuePeriod) && (entity instanceof NotificationCategory)) {
54  QueuePeriod qp = (QueuePeriod) period;
55  NotificationCategory nc = (NotificationCategory) entity;
56  nc.getNotification().subscribe(nc.getIdCategory(), contact, qp);
57  }
58  }
Here is the call graph for this function:

◆ getLabel()

String org.turro.mail.model.CategoriesVM.getLabel ( String  label)

Definition at line 75 of file Elephant/elephant-mail/src/main/java/org/turro/mail/model/CategoriesVM.java.

75  {
76  return I_.get(label);
77  }
Here is the call graph for this function:

◆ getModel()

List<NotificationCategory> org.turro.mail.model.CategoriesVM.getModel ( )

Definition at line 65 of file Elephant/elephant-mail/src/main/java/org/turro/mail/model/CategoriesVM.java.

65  {
66  ArrayList<NotificationCategory> list = new ArrayList<>();
67  for(NotificationCategory nc : Notifications.getCategories()) {
68  if(nc.isPublishable() && nc.strongBond(ConstraintKeys.from(contact))) {
69  list.add(nc);
70  }
71  }
72  return list;
73  }
Here is the call graph for this function:

◆ getPeriod()

QueuePeriod org.turro.mail.model.CategoriesVM.getPeriod ( NotificationCategory  entity)

Definition at line 79 of file Elephant/elephant-mail/src/main/java/org/turro/mail/model/CategoriesVM.java.

79  {
80  return entity.getNotification().period(entity.getIdCategory(), contact);
81  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init()

void org.turro.mail.model.CategoriesVM.init ( @ExecutionArgParam("contact") IContact  contact)

Definition at line 46 of file Elephant/elephant-mail/src/main/java/org/turro/mail/model/CategoriesVM.java.

46  {
47  if(contact != null) this.contact = contact;
48  }

◆ isChecked()

boolean org.turro.mail.model.CategoriesVM.isChecked ( NotificationCategory  entity,
QueuePeriod  period 
)

Definition at line 60 of file Elephant/elephant-mail/src/main/java/org/turro/mail/model/CategoriesVM.java.

60  {
61  QueuePeriod qp = getPeriod(entity);
62  return qp != null ? period.equals(qp) : false;
63  }
Here is the call graph for this function:

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