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

Public Member Functions

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

Member Function Documentation

◆ createDao()

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

Definition at line 42 of file AcceptanceParticipationCatcher.java.

42  {
43  return new ContactsPU();
44  }

◆ doChangeFor()

void org.turro.activity.AcceptanceParticipationCatcher.doChangeFor ( Acceptance  v,
Path  toPath 
)

Definition at line 96 of file AcceptanceParticipationCatcher.java.

96  {
97  // do nothing
98  }

◆ doDelete()

void org.turro.activity.AcceptanceParticipationCatcher.doDelete ( Acceptance  v)

Definition at line 71 of file AcceptanceParticipationCatcher.java.

Here is the call graph for this function:

◆ doShow()

void org.turro.activity.AcceptanceParticipationCatcher.doShow ( Acceptance  v)

Definition at line 76 of file AcceptanceParticipationCatcher.java.

76  {
77  ContactMenu.showAcceptance(v.getPath(), null);
78  }
Here is the call graph for this function:

◆ getCanChangeFor()

boolean org.turro.activity.AcceptanceParticipationCatcher.getCanChangeFor ( Acceptance  v)

Definition at line 91 of file AcceptanceParticipationCatcher.java.

91  {
92  return false;
93  }

◆ getCanDelete()

boolean org.turro.activity.AcceptanceParticipationCatcher.getCanDelete ( Acceptance  v)

Definition at line 61 of file AcceptanceParticipationCatcher.java.

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

◆ getDescription() [1/2]

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

Definition at line 37 of file AcceptanceParticipationCatcher.java.

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

◆ getDescription() [2/2]

String org.turro.activity.AcceptanceParticipationCatcher.getDescription ( Acceptance  v)

Definition at line 66 of file AcceptanceParticipationCatcher.java.

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

◆ getQuery()

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

Definition at line 47 of file AcceptanceParticipationCatcher.java.

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

◆ getReferringEntity()

Object org.turro.activity.AcceptanceParticipationCatcher.getReferringEntity ( Acceptance  v)

Definition at line 101 of file AcceptanceParticipationCatcher.java.

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

◆ onChange()

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

Definition at line 81 of file AcceptanceParticipationCatcher.java.

81  {
82  // do nothing
83  }

◆ onDelete()

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

Definition at line 86 of file AcceptanceParticipationCatcher.java.

86  {
87  // do nothing
88  }

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