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

Public Member Functions

String getDescription ()
 
Dao createDao ()
 
WhereClause getQuery (Path entityPath)
 
boolean getCanDelete (InTouch v)
 
String getDescription (InTouch v)
 
void doDelete (InTouch v)
 
void doShow (InTouch v)
 
void onChange (Object entity)
 
void onDelete (Object entity)
 
boolean getCanChangeFor (InTouch v)
 
void doChangeFor (InTouch v, Path toPath)
 
Object getReferringEntity (InTouch v)
 
- Public Member Functions inherited from org.turro.activity.JpaParticipationCatcher< InTouch >
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 34 of file InTouchParticipationCatcher.java.

Member Function Documentation

◆ createDao()

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

Definition at line 42 of file InTouchParticipationCatcher.java.

42  {
43  return new ContactsPU();
44  }

◆ doChangeFor()

void org.turro.activity.InTouchParticipationCatcher.doChangeFor ( InTouch  v,
Path  toPath 
)

Definition at line 98 of file InTouchParticipationCatcher.java.

98  {
99  // do nothing
100  }

◆ doDelete()

void org.turro.activity.InTouchParticipationCatcher.doDelete ( InTouch  v)

Definition at line 73 of file InTouchParticipationCatcher.java.

Here is the call graph for this function:

◆ doShow()

void org.turro.activity.InTouchParticipationCatcher.doShow ( InTouch  v)

Definition at line 78 of file InTouchParticipationCatcher.java.

78  {
79  // nothing to show?
80  }

◆ getCanChangeFor()

boolean org.turro.activity.InTouchParticipationCatcher.getCanChangeFor ( InTouch  v)

Definition at line 93 of file InTouchParticipationCatcher.java.

93  {
94  return false;
95  }

◆ getCanDelete()

boolean org.turro.activity.InTouchParticipationCatcher.getCanDelete ( InTouch  v)

Definition at line 63 of file InTouchParticipationCatcher.java.

63  {
64  return true;
65  }

◆ getDescription() [1/2]

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

Definition at line 37 of file InTouchParticipationCatcher.java.

37  {
38  return "BrightSide Contacts - " + I_.get("In touch");
39  }
Here is the call graph for this function:

◆ getDescription() [2/2]

String org.turro.activity.InTouchParticipationCatcher.getDescription ( InTouch  v)

Definition at line 68 of file InTouchParticipationCatcher.java.

68  {
69  return Entities.getController(v.getName()).getName();
70  }
Here is the call graph for this function:

◆ getQuery()

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

Definition at line 47 of file InTouchParticipationCatcher.java.

47  {
48  if(!entityPath.isRoot() && "contact".equals(entityPath.getRoot())) {
49  WhereClause wc = new WhereClause();
50  wc.addClause("select distinct a from InTouch as a");
51  wc.addClause("where a.contact.id = :idc");
52  wc.addNamedValue("idc", entityPath.getLastNode());
53  wc.addClause("or a.address.contact.id = :idp");
54  wc.addNamedValue("idp", entityPath.getLastNode());
55  wc.addClause("or a.path = :path");
56  wc.addNamedValue("path", entityPath.getPath());
57  return wc;
58  }
59  return null;
60  }
Here is the call graph for this function:

◆ getReferringEntity()

Object org.turro.activity.InTouchParticipationCatcher.getReferringEntity ( InTouch  v)

Definition at line 103 of file InTouchParticipationCatcher.java.

103  {
104  return Entities.getController(v.getPath()).getEntity();
105  }
Here is the call graph for this function:

◆ onChange()

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

Definition at line 83 of file InTouchParticipationCatcher.java.

83  {
84  // do nothing
85  }

◆ onDelete()

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

Definition at line 88 of file InTouchParticipationCatcher.java.

88  {
89  // do nothing
90  }

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