- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 43 of file Activities.java.
◆ Activities()
org.turro.activity.Activities.Activities |
( |
String |
reason | ) |
|
◆ add()
Activity org.turro.activity.Activities.add |
( |
Date |
activityDate, |
|
|
String |
activityPath, |
|
|
String |
entityPath, |
|
|
String |
sortPath |
|
) |
| |
Definition at line 45 of file Activities.java.
46 if(Strings.anyBlank(entityPath, activityPath, sortPath))
return null;
47 Activity activity =
new Activity();
48 activity.setReason(reason);
49 activity.setActivityDate(activityDate);
50 activity.setActivityPath(activityPath);
51 activity.setEntityPath(entityPath);
52 activity.setSortPath(sortPath);
53 entityPaths.add(entityPath);
54 return dao.get().saveObject(activity);
◆ addParticipants()
static void org.turro.activity.Activities.addParticipants |
( |
| ) |
|
|
static |
Definition at line 82 of file Activities.java.
83 Dao dao =
new ElephantPU();
84 for(String entityPath : entityPaths) {
85 updateEntityPath(dao, entityPath);
◆ generate()
static void org.turro.activity.Activities.generate |
( |
| ) |
|
|
static |
Definition at line 66 of file Activities.java.
68 for(IElephantActivity activity : Instances.cached().byAnnotation(ElephantActivity.class, IElephantActivity.class)) {
static void resetEntityPaths()
static void addParticipants()
◆ getParticipants()
static Set<String> org.turro.activity.Activities.getParticipants |
( |
String |
entityPath | ) |
|
|
static |
Definition at line 105 of file Activities.java.
106 AssistantSet participants =
new AssistantSet();
107 Assistants.addAssistants(entityPath,
true, participants, AssistantConstants.all());
108 return participants.stream().map(a -> a.contact.getId()).collect(Collectors.toSet());
◆ lastDate()
Date org.turro.activity.Activities.lastDate |
( |
| ) |
|
Definition at line 57 of file Activities.java.
58 return SqlClause.select(
"max(a.activityDate)").from(
"Activity a")
59 .where().equal(
"reason", reason)
61 .singleResult(Date.class, defaultDate);
◆ of()
static Activities org.turro.activity.Activities.of |
( |
String |
reason | ) |
|
|
static |
◆ resetEntityPaths()
static void org.turro.activity.Activities.resetEntityPaths |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following file: