19 package org.turro.plugin.command;
21 import java.util.Collection;
22 import java.util.TreeSet;
23 import org.turro.command.Command;
24 import org.turro.command.Context;
25 import org.turro.elephant.context.Application;
26 import org.turro.plugin.contacts.IContact;
32 public abstract class TimelinePlugin
implements IPlugin, Command {
35 protected Collection<TimelineEvent>
result;
71 result =
new TreeSet<TimelineEvent>();
78 protected abstract void executePlugin(Context context)
throws Exception;
90 StringBuilder sb =
new StringBuilder(
"<data>\n");
92 sb.append(tle.getEvent(app));
94 sb.append(
"\n</data>");
Map< String, Object > params
static String getTimelineFor(Application app, IContact contact)
abstract void executePlugin(Context context)
void addToResult(Object data)
Object execute(Context context)
static String generateXML(Application app, Collection< TimelineEvent > result)
Collection< TimelineEvent > result
void setParams(Object params)
boolean stopsPropagating()