19 package org.turro.activity;
21 import java.io.Serializable;
22 import java.util.Date;
23 import org.turro.assistant.AssistantConstants;
24 import org.turro.assistant.AssistantSet;
25 import org.turro.assistant.Assistants;
26 import org.turro.elephant.context.Application;
27 import org.turro.entities.Entities;
28 import org.turro.entities.IElephantEntity;
29 import org.turro.marker.ElephantMarker;
37 private final transient Object activity;
38 private final String entityPath, reason, activityPath, activityText;
39 private final Date date;
40 private String sortPath;
43 private transient Object realActivity;
47 if(activityPath ==
null) {
48 this.activity = activity;
52 this.entityPath = entityPath;
55 this.activityText = formatActivityText();
71 if(participants ==
null) {
80 if(realActivity ==
null) {
116 if(mainEntity ==
null) {
128 private String formatActivityText() {
130 marker.
put(
"last",
this);
131 return marker.
parse(
"activity",
"laformat");
DefaultEntityLastActivity(Object activity, String entityPath, Date date, String reason)
IElephantEntity getEntity()
IElephantEntity getMainEntity()
void setSortPath(String sortPath)
AssistantSet getParticipants()
static Object getMainEntity(Object entity)
static void addAssistants(String role, AssistantSet list, Object data)
IConstructor getConstructor()
static Application getApplication()
static IElephantEntity getController(String path)
String parse(String rootTmpl, String tmpl)
Object put(Object key, Object value)
static final String PATH_SEPARATOR