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

Public Member Functions

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

Member Function Documentation

◆ createDao()

Dao org.turro.participation.CommonsParticipationCatcher.createDao ( )

Reimplemented from org.turro.activity.JpaParticipationCatcher< V >.

Definition at line 44 of file CommonsParticipationCatcher.java.

44  {
45  return new ElephantPU();
46  }

◆ doChangeFor()

void org.turro.participation.CommonsParticipationCatcher.doChangeFor ( EntityParticipation  v,
Path  toPath 
)

Definition at line 94 of file CommonsParticipationCatcher.java.

94  {
95  // do nothing
96  }

◆ doDelete()

void org.turro.participation.CommonsParticipationCatcher.doDelete ( EntityParticipation  v)

Definition at line 69 of file CommonsParticipationCatcher.java.

69  {
70  getDao().deleteObject(v);
71  }
void deleteObject(Object obj)
Definition: Dao.java:162
Here is the call graph for this function:

◆ doShow()

void org.turro.participation.CommonsParticipationCatcher.doShow ( EntityParticipation  v)

Definition at line 74 of file CommonsParticipationCatcher.java.

74  {
75  // nothing to show?
76  }

◆ getCanChangeFor()

boolean org.turro.participation.CommonsParticipationCatcher.getCanChangeFor ( EntityParticipation  v)

Definition at line 89 of file CommonsParticipationCatcher.java.

89  {
90  return false;
91  }

◆ getCanDelete()

boolean org.turro.participation.CommonsParticipationCatcher.getCanDelete ( EntityParticipation  v)

Definition at line 59 of file CommonsParticipationCatcher.java.

59  {
60  return true;
61  }

◆ getDescription() [1/2]

String org.turro.participation.CommonsParticipationCatcher.getDescription ( )

Implements org.turro.activity.IParticipationCatcher.

Definition at line 39 of file CommonsParticipationCatcher.java.

39  {
40  return "Elephant Commons - Participation";
41  }

◆ getDescription() [2/2]

String org.turro.participation.CommonsParticipationCatcher.getDescription ( EntityParticipation  v)

Definition at line 64 of file CommonsParticipationCatcher.java.

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

◆ getQuery()

WhereClause org.turro.participation.CommonsParticipationCatcher.getQuery ( Path  entityPath)

Reimplemented from org.turro.activity.JpaParticipationCatcher< V >.

Definition at line 49 of file CommonsParticipationCatcher.java.

49  {
50  WhereClause wc = new WhereClause();
51  wc.addClause("select distinct a from EntityParticipation as a");
52  wc.addClause("where participatorPath = :path");
53  wc.addClause("or entityPath = :path");
54  wc.addNamedValue("path", entityPath.getPath());
55  return wc;
56  }
Here is the call graph for this function:

◆ getReferringEntity()

Object org.turro.participation.CommonsParticipationCatcher.getReferringEntity ( EntityParticipation  v)

Definition at line 99 of file CommonsParticipationCatcher.java.

99  {
100  return Entities.getController(v.getEntityPath()).getEntity();
101  }
Here is the call graph for this function:

◆ onChange()

void org.turro.participation.CommonsParticipationCatcher.onChange ( Object  entity)

Implements org.turro.activity.IParticipationCatcher.

Definition at line 79 of file CommonsParticipationCatcher.java.

79  {
80  // do nothing
81  }

◆ onDelete()

void org.turro.participation.CommonsParticipationCatcher.onDelete ( Object  entity)

Implements org.turro.activity.IParticipationCatcher.

Definition at line 84 of file CommonsParticipationCatcher.java.

84  {
85  // do nothing
86  }

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