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

Public Member Functions

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

Member Function Documentation

◆ createDao()

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

Definition at line 41 of file CommentItParticipationCatcher.java.

41  {
42  return new ContactsPU();
43  }

◆ doChangeFor()

void org.turro.activity.CommentItParticipationCatcher.doChangeFor ( CommentIt  v,
Path  toPath 
)

Definition at line 91 of file CommentItParticipationCatcher.java.

91  {
92  // do nothing
93  }

◆ doDelete()

void org.turro.activity.CommentItParticipationCatcher.doDelete ( CommentIt  v)

Definition at line 66 of file CommentItParticipationCatcher.java.

Here is the call graph for this function:

◆ doShow()

void org.turro.activity.CommentItParticipationCatcher.doShow ( CommentIt  v)

Definition at line 71 of file CommentItParticipationCatcher.java.

71  {
72  // nothing to show?
73  }

◆ getCanChangeFor()

boolean org.turro.activity.CommentItParticipationCatcher.getCanChangeFor ( CommentIt  v)

Definition at line 86 of file CommentItParticipationCatcher.java.

86  {
87  return false;
88  }

◆ getCanDelete()

boolean org.turro.activity.CommentItParticipationCatcher.getCanDelete ( CommentIt  v)

Definition at line 56 of file CommentItParticipationCatcher.java.

56  {
57  return true;
58  }

◆ getDescription() [1/2]

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

Definition at line 36 of file CommentItParticipationCatcher.java.

36  {
37  return "BrightSide Contacts - CommentIt";
38  }

◆ getDescription() [2/2]

String org.turro.activity.CommentItParticipationCatcher.getDescription ( CommentIt  v)

Definition at line 61 of file CommentItParticipationCatcher.java.

61  {
62  return v.getBody();
63  }
Here is the call graph for this function:

◆ getQuery()

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

Definition at line 46 of file CommentItParticipationCatcher.java.

46  {
47  WhereClause wc = new WhereClause();
48  wc.addClause("select distinct a from CommentIt as a");
49  wc.addClause("where (a.creator.id = :idc or a.path = :path)");
50  wc.addNamedValue("idc", entityPath.getLastNode());
51  wc.addNamedValue("path", entityPath.getPath());
52  return wc;
53  }
Here is the call graph for this function:

◆ getReferringEntity()

Object org.turro.activity.CommentItParticipationCatcher.getReferringEntity ( CommentIt  v)

Definition at line 96 of file CommentItParticipationCatcher.java.

96  {
97  return Entities.getController(v.getPath()).getEntity();
98  }
Here is the call graph for this function:

◆ onChange()

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

Definition at line 76 of file CommentItParticipationCatcher.java.

76  {
77  // do nothing
78  }

◆ onDelete()

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

Definition at line 81 of file CommentItParticipationCatcher.java.

81  {
82  // do nothing
83  }

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