44 EntityActivitySet
set =
new EntityActivitySet();
45 Path path = Strings.isBlank(entityPath) ? null :
new Path(entityPath);
46 if(path ==
null ||
"dossier".equals(path.getRoot())) {
47 for(Object obj :
getProjects(from,
null,
"startDate")) {
48 Project project = (Project) obj;
49 DefaultEntityLastActivity ela =
new DefaultEntityLastActivity(
50 project.getDossier(), DossierPU.getObjectPath(project.getDossier()), project.getStartDate(),
"Started");
51 ela.setSortPath(Entities.getController(project.getDossier()).getHierarchicalPath());
54 for(Object obj :
getProjects(from,
null,
"approvedDate")) {
55 Project project = (Project) obj;
56 DefaultEntityLastActivity ela =
new DefaultEntityLastActivity(
57 project.getDossier(), DossierPU.getObjectPath(project.getDossier()), project.getApprovedDate(),
"lApproved");
58 ela.setSortPath(Entities.getController(project.getDossier()).getHierarchicalPath());
61 for(Object obj :
getProjects(from,
null,
"oppositingEndDate")) {
62 Project project = (Project) obj;
63 DefaultEntityLastActivity ela =
new DefaultEntityLastActivity(
64 project.getDossier(), DossierPU.getObjectPath(project.getDossier()), project.getOppositingEndDate(),
"lEndOppositing");
65 ela.setSortPath(Entities.getController(project.getDossier()).getHierarchicalPath());
68 for(Object obj :
getProjects(from,
null,
"endDate")) {
69 Project project = (Project) obj;
70 DefaultEntityLastActivity ela =
new DefaultEntityLastActivity(
71 project.getDossier(), DossierPU.getObjectPath(project.getDossier()), project.getEndDate(),
"Ended");
72 ela.setSortPath(Entities.getController(project.getDossier()).getHierarchicalPath());
75 for(Object obj :
getProjects(from,
null,
"changePhase")) {
76 Project project = (Project) obj;
77 DefaultEntityLastActivity ela =
new DefaultEntityLastActivity(
78 project.getDossier(), DossierPU.getObjectPath(project.getDossier()), project.getChangePhase(),
"Changed phase");
79 ela.setSortPath(Entities.getController(project.getDossier()).getHierarchicalPath());
83 Dossier dossier = (Dossier) obj;
84 DefaultEntityLastActivity ela =
new DefaultEntityLastActivity(
85 dossier, DossierPU.getObjectPath(dossier), dossier.getCreation(),
"Created");
86 ela.setSortPath(Entities.getController(dossier).getHierarchicalPath());
90 Participant participant = (Participant) obj;
91 DefaultEntityLastActivity ela =
new DefaultEntityLastActivity(
92 participant, DossierPU.getObjectPath(participant.getDossier()), participant.getCreation(),
"New Participant");
93 ela.setSortPath(Entities.getController(participant.getDossier()).getHierarchicalPath());
97 if(path ==
null ||
"issue".equals(path.getRoot())) {
105 IssueComment comment = (IssueComment) obj;
106 DefaultEntityLastActivity ela =
new DefaultEntityLastActivity(
107 comment, DossierPU.getObjectPath(comment.getIssue()), comment.getModification(),
"Informed");
108 ela.setSortPath(Entities.getController(comment.getIssue()).getHierarchicalPath());
List getDossiers(Date from, String select)
List getIssueComments(Date from, String select)
List getParticipants(Date from, String select)
List getProjects(Date from, String select, String field)