◆ ActivityReport()
org.turro.user.activity.ActivityReport.ActivityReport |
( |
ActivitySet |
activities | ) |
|
◆ getByCategory()
Map<String, Double[]> org.turro.user.activity.ActivityReport.getByCategory |
( |
| ) |
|
Definition at line 41 of file ActivityReport.java.
Map< String, Double > getSeenByCategory()
Map< String, Double > getChallengesByCategory()
Map< String, Double > getProjectsByCategory()
◆ getChallengesByCategory()
Map<String, Double> org.turro.user.activity.ActivityReport.getChallengesByCategory |
( |
| ) |
|
Definition at line 58 of file ActivityReport.java.
59 AggregateMap map =
new AggregateMap();
60 for(Activity activity : activities) {
61 if(EnumSet.of(ActivityType.ACTIVITY_CHANGE).contains(activity.getType())) {
62 if(activity.getEntityPath().startsWith(
"/challenge/")) {
63 IElephantEntity parent = activity.getEntity().getParent().getParent();
64 if(parent !=
null && !parent.isEmpty()) map.inc(parent.getName());
◆ getProjectsByCategory()
Map<String, Double> org.turro.user.activity.ActivityReport.getProjectsByCategory |
( |
| ) |
|
Definition at line 45 of file ActivityReport.java.
46 AggregateMap map =
new AggregateMap();
47 for(Activity activity : activities) {
48 if(EnumSet.of(ActivityType.ACTIVITY_PARTICIPATE, ActivityType.ACTIVITY_FOLLOW).contains(activity.getType())) {
49 if(activity.getEntityPath().startsWith(
"/dossier/")) {
50 IElephantEntity parent = activity.getEntity().getParent();
51 if(parent !=
null && !parent.isEmpty()) map.inc(parent.getName());
◆ getSeenByCategory()
Map<String, Double> org.turro.user.activity.ActivityReport.getSeenByCategory |
( |
| ) |
|
Definition at line 71 of file ActivityReport.java.
72 AggregateMap map =
new AggregateMap();
73 for(Activity activity : activities) {
74 if(EnumSet.of(ActivityType.ACTIVITY_SEEN).contains(activity.getType())) {
75 if(activity.getEntityPath().startsWith(
"/dossier/")) {
76 IElephantEntity parent = activity.getEntity().getParent();
77 if(parent !=
null && !parent.isEmpty()) map.inc(parent.getName());
79 map.inc(Chars.backward() +
" " + I_.get(
"Others"));
The documentation for this class was generated from the following file: