◆ generateUserContent()
static void org.turro.activity.LastActivities.generateUserContent |
( |
Date |
date | ) |
|
|
static |
Definition at line 41 of file LastActivities.java.
42 Date from =
new CheckDate().addWeeks(LastActivities.LAST_ACTIVITY_WEEKS).getDate();
43 Date now =
new Date();
44 if(!existsActivitySession(now, from,
null)) {
45 tryInstance(now, from);
◆ getLastActivity()
Definition at line 51 of file LastActivities.java.
52 if(INIT.isBussy())
return new EntityActivitySet();
53 Date from =
new CheckDate().addWeeks(LastActivities.LAST_ACTIVITY_WEEKS).getDate();
54 Date now =
new Date();
55 return deserializeLastActivitySession(now, from, contact);
◆ getLastActivitySession()
static ContactActivityMap org.turro.activity.LastActivities.getLastActivitySession |
( |
Date |
from, |
|
|
String |
entityPath, |
|
|
String |
type |
|
) |
| |
|
static |
Definition at line 60 of file LastActivities.java.
62 if(Strings.isBlank(entityPath) && Strings.isBlank(type)) {
63 Date now =
new Date();
64 String fileName =
"/activity/" + ObjectString.formatObject(now, ObjectString.URL_DATE_PATTERN,
true) +
65 "-" + ObjectString.formatObject(from, ObjectString.URL_DATE_PATTERN,
true) +
".ser";
66 File ser = Serializer.getFile(fileName);
68 return (ContactActivityMap) Serializer.deserialize(ser);
70 ContactActivityMap current = getContactLastActivites(from, entityPath, type);
71 Serializer.serialize(ser, current);
75 return getContactLastActivites(from, entityPath, type);
◆ getMainEntity()
static Object org.turro.activity.LastActivities.getMainEntity |
( |
Object |
entity | ) |
|
|
static |
Definition at line 81 of file LastActivities.java.
82 for(ILastActivity iLast : Instances.cached().byAnnotation(LastActivity.class, ILastActivity.class)) {
83 Object main = iLast.getMainEntity(entity);
◆ LAST_ACTIVITY_WEEKS
final int org.turro.activity.LastActivities.LAST_ACTIVITY_WEEKS = -4 |
|
static |
The documentation for this class was generated from the following file: