BrightSide Workbench Full Report + Source Code
org.turro.publication.util.SubscriptionActivityCatcher Class Reference
Inheritance diagram for org.turro.publication.util.SubscriptionActivityCatcher:
Collaboration diagram for org.turro.publication.util.SubscriptionActivityCatcher:

Public Member Functions

String getDescription ()
 
Dao createDao ()
 
WhereClause getQuery (Path entityPath)
 
boolean getCanDelete (PublicationSubscription v)
 
String getDescription (PublicationSubscription v)
 
void doDelete (PublicationSubscription v)
 
void doShow (PublicationSubscription v)
 
void onChange (Object entity)
 
void onDelete (Object entity)
 
boolean getCanChangeFor (PublicationSubscription v)
 
void doChangeFor (PublicationSubscription v, Path toPath)
 
Object getReferringEntity (PublicationSubscription 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
Deprecated:

Definition at line 36 of file SubscriptionActivityCatcher.java.

Member Function Documentation

◆ createDao()

Dao org.turro.publication.util.SubscriptionActivityCatcher.createDao ( )

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

Definition at line 44 of file SubscriptionActivityCatcher.java.

44  {
45  return new PublicationPU();
46  }

◆ doChangeFor()

void org.turro.publication.util.SubscriptionActivityCatcher.doChangeFor ( PublicationSubscription  v,
Path  toPath 
)

Definition at line 99 of file SubscriptionActivityCatcher.java.

99  {
100  // do nothing
101  }

◆ doDelete()

void org.turro.publication.util.SubscriptionActivityCatcher.doDelete ( PublicationSubscription  v)

Definition at line 71 of file SubscriptionActivityCatcher.java.

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

◆ doShow()

void org.turro.publication.util.SubscriptionActivityCatcher.doShow ( PublicationSubscription  v)

Definition at line 76 of file SubscriptionActivityCatcher.java.

76  {
77  throw new UnsupportedOperationException("Not supported yet.");
78  }

◆ getCanChangeFor()

boolean org.turro.publication.util.SubscriptionActivityCatcher.getCanChangeFor ( PublicationSubscription  v)

Definition at line 94 of file SubscriptionActivityCatcher.java.

94  {
95  return false;
96  }

◆ getCanDelete()

boolean org.turro.publication.util.SubscriptionActivityCatcher.getCanDelete ( PublicationSubscription  v)

Definition at line 61 of file SubscriptionActivityCatcher.java.

61  {
62  return true;
63  }

◆ getDescription() [1/2]

String org.turro.publication.util.SubscriptionActivityCatcher.getDescription ( )

Implements org.turro.activity.IParticipationCatcher.

Definition at line 39 of file SubscriptionActivityCatcher.java.

39  {
40  return "BrightSide Publications - " + I_.get("Subscriptions");
41  }
Here is the call graph for this function:

◆ getDescription() [2/2]

String org.turro.publication.util.SubscriptionActivityCatcher.getDescription ( PublicationSubscription  v)

Definition at line 66 of file SubscriptionActivityCatcher.java.

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

◆ getQuery()

WhereClause org.turro.publication.util.SubscriptionActivityCatcher.getQuery ( Path  entityPath)

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

Definition at line 49 of file SubscriptionActivityCatcher.java.

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

◆ getReferringEntity()

Object org.turro.publication.util.SubscriptionActivityCatcher.getReferringEntity ( PublicationSubscription  v)

Definition at line 104 of file SubscriptionActivityCatcher.java.

104  {
105  return v.getPublicationCategory();
106  }
Here is the call graph for this function:

◆ onChange()

void org.turro.publication.util.SubscriptionActivityCatcher.onChange ( Object  entity)

Implements org.turro.activity.IParticipationCatcher.

Definition at line 81 of file SubscriptionActivityCatcher.java.

81  {
82  if(entity instanceof IContact) {
83  IContact contact = (IContact) entity;
84  // do nothing
85  }
86  }

◆ onDelete()

void org.turro.publication.util.SubscriptionActivityCatcher.onDelete ( Object  entity)

Implements org.turro.activity.IParticipationCatcher.

Definition at line 89 of file SubscriptionActivityCatcher.java.

89  {
90  // do nothing
91  }

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