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

Public Member Functions

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

Member Function Documentation

◆ createDao()

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

Definition at line 41 of file VoteItParticipationCatcher.java.

41  {
42  return new ContactsPU();
43  }

◆ doChangeFor()

void org.turro.activity.VoteItParticipationCatcher.doChangeFor ( VoteIt  v,
Path  toPath 
)

Definition at line 91 of file VoteItParticipationCatcher.java.

91  {
92  // do nothing
93  }

◆ doDelete()

void org.turro.activity.VoteItParticipationCatcher.doDelete ( VoteIt  v)

Definition at line 66 of file VoteItParticipationCatcher.java.

Here is the call graph for this function:

◆ doShow()

void org.turro.activity.VoteItParticipationCatcher.doShow ( VoteIt  v)

Definition at line 71 of file VoteItParticipationCatcher.java.

71  {
72  // nothing to show?
73  }

◆ getCanChangeFor()

boolean org.turro.activity.VoteItParticipationCatcher.getCanChangeFor ( VoteIt  v)

Definition at line 86 of file VoteItParticipationCatcher.java.

86  {
87  return false;
88  }

◆ getCanDelete()

boolean org.turro.activity.VoteItParticipationCatcher.getCanDelete ( VoteIt  v)

Definition at line 56 of file VoteItParticipationCatcher.java.

56  {
57  return true;
58  }

◆ getDescription() [1/2]

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

Definition at line 36 of file VoteItParticipationCatcher.java.

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

◆ getDescription() [2/2]

String org.turro.activity.VoteItParticipationCatcher.getDescription ( VoteIt  v)

Definition at line 61 of file VoteItParticipationCatcher.java.

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

◆ getQuery()

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

Definition at line 46 of file VoteItParticipationCatcher.java.

46  {
47  WhereClause wc = new WhereClause();
48  wc.addClause("select distinct a from VoteIt 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.VoteItParticipationCatcher.getReferringEntity ( VoteIt  v)

Definition at line 96 of file VoteItParticipationCatcher.java.

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

◆ onChange()

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

Definition at line 76 of file VoteItParticipationCatcher.java.

76  {
77  // do nothing
78  }

◆ onDelete()

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

Definition at line 81 of file VoteItParticipationCatcher.java.

81  {
82  // do nothing
83  }

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