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

Public Member Functions

EntityActivitySet getActivities (Date from, String entityPath, String type)
 
Object getMainEntity (Object entity)
 
List getPublications (String path, Date from, String select)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 35 of file PublicationLastActivity.java.

Member Function Documentation

◆ getActivities()

EntityActivitySet org.turro.activity.PublicationLastActivity.getActivities ( Date  from,
String  entityPath,
String  type 
)

Implements org.turro.activity.ILastActivity.

Definition at line 38 of file PublicationLastActivity.java.

38  {
39  EntityActivitySet set = new EntityActivitySet();
40  for(Object obj : getPublications(entityPath, from, null)) {
41  Publication publication = (Publication) obj;
42  DefaultEntityLastActivity ela = new DefaultEntityLastActivity(
43  publication, PublicationPU.getObjectPath(publication), publication.getDate(), "Published");
44  ela.setSortPath(Entities.getController(publication).getHierarchicalPath());
45  set.add(ela);
46  }
47  return set;
48  }
List getPublications(String path, Date from, String select)
Here is the call graph for this function:

◆ getMainEntity()

Object org.turro.activity.PublicationLastActivity.getMainEntity ( Object  entity)

Implements org.turro.activity.ILastActivity.

Definition at line 51 of file PublicationLastActivity.java.

51  {
52  return null;
53  }

◆ getPublications()

List org.turro.activity.PublicationLastActivity.getPublications ( String  path,
Date  from,
String  select 
)

Definition at line 55 of file PublicationLastActivity.java.

55  {
56  WhereClause wc = new WhereClause();
57  wc.addClause("select publication" + check(select) + " from Publication as publication");
58  wc.addClause("where publication.date >= :date");
59  wc.addNamedValue("date", from);
60  return getDao().getResultList(wc);
61  }
Here is the call graph for this function:
Here is the caller graph for this function:

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