BrightSide Workbench Full Report + Source Code
org.turro.activity.MailParticipationCatcher Class Reference
Inheritance diagram for org.turro.activity.MailParticipationCatcher:
Collaboration diagram for org.turro.activity.MailParticipationCatcher:

Public Member Functions

String getDescription ()
 
Dao createDao ()
 
WhereClause getQuery (Path entityPath)
 
boolean getCanDelete (QueueOptions v)
 
String getDescription (QueueOptions v)
 
void doDelete (QueueOptions v)
 
void doShow (QueueOptions v)
 
void onChange (Object entity)
 
void onDelete (Object entity)
 
boolean getCanChangeFor (QueueOptions v)
 
void doChangeFor (QueueOptions v, Path toPath)
 
Object getReferringEntity (QueueOptions v)
 
- Public Member Functions inherited from org.turro.activity.JpaParticipationCatcher< QueueOptions >
List< IParticipationgetParticipations (Path entityPath)
 
Dao getDao ()
 
abstract Dao createDao ()
 
abstract WhereClause getQuery (Path entityPath)
 
abstract boolean getCanDelete (V v)
 
abstract boolean getCanChangeFor (V v)
 
abstract String getDescription (V v)
 
abstract void doDelete (V v)
 
abstract void doShow (V v)
 
abstract void doChangeFor (V v, Path toPath)
 
abstract Object getReferringEntity (V v)
 

Detailed Description

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

Definition at line 36 of file MailParticipationCatcher.java.

Member Function Documentation

◆ createDao()

Dao org.turro.activity.MailParticipationCatcher.createDao ( )

Definition at line 44 of file MailParticipationCatcher.java.

44  {
45  return new ElephantPU();
46  }

◆ doChangeFor()

void org.turro.activity.MailParticipationCatcher.doChangeFor ( QueueOptions  v,
Path  toPath 
)

Definition at line 99 of file MailParticipationCatcher.java.

99  {
100  if(v != null && !toPath.isRoot() && "contact".equals(toPath.getRoot())) {
101  WhereClause wc = new WhereClause();
102  wc.addClause("update QueueOptions");
103  wc.addClause("set idContact = :to");
104  wc.addClause("where idContact = :from");
105  wc.addNamedValue("to", toPath.getLastNode());
106  wc.addNamedValue("from", v.getIdContact());
107  getDao().executeUpdate(wc);
108  }
109  }
int executeUpdate(String query)
Definition: Dao.java:463
Here is the call graph for this function:

◆ doDelete()

void org.turro.activity.MailParticipationCatcher.doDelete ( QueueOptions  v)

Definition at line 72 of file MailParticipationCatcher.java.

72  {
73  QueueManager qm = new QueueManager();
74  qm.removeContactMails(v.getIdContact());
75  getDao().deleteObject(v);
76  }
void deleteObject(Object obj)
Definition: Dao.java:162
Here is the call graph for this function:

◆ doShow()

void org.turro.activity.MailParticipationCatcher.doShow ( QueueOptions  v)

Definition at line 79 of file MailParticipationCatcher.java.

79  {
80  // do nothing
81  }

◆ getCanChangeFor()

boolean org.turro.activity.MailParticipationCatcher.getCanChangeFor ( QueueOptions  v)

Definition at line 94 of file MailParticipationCatcher.java.

94  {
95  return true;
96  }

◆ getCanDelete()

boolean org.turro.activity.MailParticipationCatcher.getCanDelete ( QueueOptions  v)

Definition at line 61 of file MailParticipationCatcher.java.

61  {
62  return true;
63  }

◆ getDescription() [1/2]

String org.turro.activity.MailParticipationCatcher.getDescription ( )

Definition at line 39 of file MailParticipationCatcher.java.

39  {
40  return "Elephant Mail";
41  }

◆ getDescription() [2/2]

String org.turro.activity.MailParticipationCatcher.getDescription ( QueueOptions  v)

Definition at line 66 of file MailParticipationCatcher.java.

66  {
67  NotificationCategory nc = Notifications.getCategory(v.getIdCategory());
68  return (nc != null ? I_.get(nc.getCategory()) + " " : "") + I_.byKey(v.getPeriod().toString());
69  }
Here is the call graph for this function:

◆ getQuery()

WhereClause org.turro.activity.MailParticipationCatcher.getQuery ( Path  entityPath)

Definition at line 49 of file MailParticipationCatcher.java.

49  {
50  if(!entityPath.isRoot() && "contact".equals(entityPath.getRoot())) {
51  WhereClause wc = new WhereClause();
52  wc.addClause("select distinct opt from QueueOptions as opt");
53  wc.addClause("where opt.idContact = :id");
54  wc.addNamedValue("id", entityPath.getLastNode());
55  return wc;
56  }
57  return null;
58  }
Here is the call graph for this function:

◆ getReferringEntity()

Object org.turro.activity.MailParticipationCatcher.getReferringEntity ( QueueOptions  v)

Definition at line 112 of file MailParticipationCatcher.java.

112  {
113  return null;
114  }

◆ onChange()

void org.turro.activity.MailParticipationCatcher.onChange ( Object  entity)

Definition at line 84 of file MailParticipationCatcher.java.

84  {
85  // do nothing
86  }

◆ onDelete()

void org.turro.activity.MailParticipationCatcher.onDelete ( Object  entity)

Definition at line 89 of file MailParticipationCatcher.java.

89  {
90  // do nothing
91  }

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