BrightSide Workbench Full Report + Source Code
org.turro.activity.JpaParticipationCatcher< V > Class Template Referenceabstract
Inheritance diagram for org.turro.activity.JpaParticipationCatcher< V >:
Collaboration diagram for org.turro.activity.JpaParticipationCatcher< V >:

Public Member Functions

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)
 
- Public Member Functions inherited from org.turro.activity.IParticipationCatcher
String getDescription ()
 
void onChange (Object entity)
 
void onDelete (Object entity)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Parameters
<V>

Definition at line 31 of file JpaParticipationCatcher.java.

Member Function Documentation

◆ createDao()

abstract Dao org.turro.activity.JpaParticipationCatcher< V >.createDao ( )
abstract

Reimplemented in org.turro.participation.CommonsParticipationCatcher, and org.turro.publication.util.SubscriptionActivityCatcher.

Here is the caller graph for this function:

◆ doChangeFor()

abstract void org.turro.activity.JpaParticipationCatcher< V >.doChangeFor ( v,
Path  toPath 
)
abstract

◆ doDelete()

abstract void org.turro.activity.JpaParticipationCatcher< V >.doDelete ( v)
abstract

◆ doShow()

abstract void org.turro.activity.JpaParticipationCatcher< V >.doShow ( v)
abstract

◆ getCanChangeFor()

abstract boolean org.turro.activity.JpaParticipationCatcher< V >.getCanChangeFor ( v)
abstract
Here is the caller graph for this function:

◆ getCanDelete()

abstract boolean org.turro.activity.JpaParticipationCatcher< V >.getCanDelete ( v)
abstract
Here is the caller graph for this function:

◆ getDao()

Definition at line 51 of file JpaParticipationCatcher.java.

51  {
52  if(dao == null) {
53  dao = createDao();
54  }
55  return dao;
56  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getDescription()

abstract String org.turro.activity.JpaParticipationCatcher< V >.getDescription ( v)
abstract

◆ getParticipations()

List<IParticipation> org.turro.activity.JpaParticipationCatcher< V >.getParticipations ( Path  entityPath)

Implements org.turro.activity.IParticipationCatcher.

Definition at line 36 of file JpaParticipationCatcher.java.

36  {
37  List<V> l = getDao().getResultList(getQuery(entityPath));
38  List<IParticipation> participations = new ArrayList<>(l.size());
39  for(V v : l) {
40  JpaParticipation<V> ja = new JpaParticipation(this);
41  ja.setEntity(v);
42  ja.setCanDelete(getCanDelete(v));
43  ja.setCanChangeFor(getCanChangeFor(v));
44  ja.setDescription(getDescription(v));
45  ja.setReferring(getReferringEntity(v));
46  participations.add(ja);
47  }
48  return participations;
49  }
abstract WhereClause getQuery(Path entityPath)
Here is the call graph for this function:

◆ getQuery()

abstract WhereClause org.turro.activity.JpaParticipationCatcher< V >.getQuery ( Path  entityPath)
abstract

Reimplemented in org.turro.participation.CommonsParticipationCatcher, and org.turro.publication.util.SubscriptionActivityCatcher.

Here is the caller graph for this function:

◆ getReferringEntity()

abstract Object org.turro.activity.JpaParticipationCatcher< V >.getReferringEntity ( v)
abstract
Here is the caller graph for this function:

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