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

Public Member Functions

void generate ()
 

Detailed Description

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

Definition at line 36 of file ContactActivity.java.

Member Function Documentation

◆ generate()

void org.turro.activity.ContactActivity.generate ( )

Implements org.turro.activity.IElephantActivity.

Definition at line 39 of file ContactActivity.java.

39  {
40  Activities comacts = Activities.of("Commented");
41  SqlClause.select("comment").from("CommentIt comment")
42  .where().greater("comment.dateCreation", comacts.lastDate())
43  .dao(dao.get()).forEach(CommentIt.class, comment -> {
44  IElephantEntity icom = comment.getOwnerEntity();
45  if(!icom.isEmpty()) {
46  String path = ContactsPU.getObjectPath(comment);
47  comacts.add(comment.getDateCreation(), path, icom.getPath(), icom.getHierarchicalPath());
48  }
49  });
50  Activities staacts = Activities.of("Starred");
51  SqlClause.select("star").from("StarIt star")
52  .where().greater("star.dateCreation", staacts.lastDate())
53  .dao(dao.get()).forEach(StarIt.class, star -> {
54  IElephantEntity istar = star.getOwnerEntity();
55  if(!istar.isEmpty()) {
56  String path = ContactsPU.getObjectPath(star);
57  staacts.add(star.getDateCreation(), path, istar.getPath(), istar.getHierarchicalPath());
58  }
59  });
60  Activities votacts = Activities.of("Voted");
61  SqlClause.select("vote").from("VoteIt vote")
62  .where().greater("vote.dateCreation", votacts.lastDate())
63  .dao(dao.get()).forEach(VoteIt.class, vote -> {
64  IElephantEntity ivote = vote.getOwnerEntity();
65  if(!ivote.isEmpty()) {
66  String path = ContactsPU.getObjectPath(vote);
67  votacts.add(vote.getDateCreation(), path, ivote.getPath(), ivote.getHierarchicalPath());
68  }
69  });
70  Activities conacts = Activities.of("Convoked");
71  SqlClause.select("convo").from("Convocation convo")
72  .where().greater("convo.callDate", conacts.lastDate())
73  .dao(dao.get()).forEach(Convocation.class, convo -> {
74  IElephantEntity iconvo = convo.getEntity();
75  if(!iconvo.isEmpty()) {
76  String path = ContactsPU.getObjectPath(convo);
77  conacts.add(convo.getCallDate(), path, iconvo.getPath(), iconvo.getHierarchicalPath());
78  }
79  });
80  }
Here is the call graph for this function:

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