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

Public Member Functions

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

Member Function Documentation

◆ createDao()

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

Definition at line 41 of file ServiceParticipationCatcher.java.

41  {
42  return new ContactsPU();
43  }

◆ doChangeFor()

void org.turro.activity.ServiceParticipationCatcher.doChangeFor ( ContactService  v,
Path  toPath 
)

Definition at line 94 of file ServiceParticipationCatcher.java.

94  {
95  // do nothing
96  }

◆ doDelete()

void org.turro.activity.ServiceParticipationCatcher.doDelete ( ContactService  v)

Definition at line 69 of file ServiceParticipationCatcher.java.

Here is the call graph for this function:

◆ doShow()

void org.turro.activity.ServiceParticipationCatcher.doShow ( ContactService  v)

Definition at line 74 of file ServiceParticipationCatcher.java.

74  {
75  // do nothing
76  }

◆ getCanChangeFor()

boolean org.turro.activity.ServiceParticipationCatcher.getCanChangeFor ( ContactService  v)

Definition at line 89 of file ServiceParticipationCatcher.java.

89  {
90  return false;
91  }

◆ getCanDelete()

boolean org.turro.activity.ServiceParticipationCatcher.getCanDelete ( ContactService  v)

Definition at line 59 of file ServiceParticipationCatcher.java.

59  {
60  return false;
61  }

◆ getDescription() [1/2]

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

Definition at line 36 of file ServiceParticipationCatcher.java.

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

◆ getDescription() [2/2]

String org.turro.activity.ServiceParticipationCatcher.getDescription ( ContactService  v)

Definition at line 64 of file ServiceParticipationCatcher.java.

64  {
65  return v.getTitle();
66  }
Here is the call graph for this function:

◆ getQuery()

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

Definition at line 46 of file ServiceParticipationCatcher.java.

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

◆ getReferringEntity()

Object org.turro.activity.ServiceParticipationCatcher.getReferringEntity ( ContactService  v)

Definition at line 99 of file ServiceParticipationCatcher.java.

99  {
100  return null;
101  }

◆ onChange()

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

Definition at line 79 of file ServiceParticipationCatcher.java.

79  {
80  // do nothing
81  }

◆ onDelete()

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

Definition at line 84 of file ServiceParticipationCatcher.java.

84  {
85  // do nothing
86  }

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