19 package org.turro.plugin.command;
21 import java.util.ArrayList;
22 import java.util.Collection;
23 import java.util.Date;
24 import java.util.HashMap;
26 import org.turro.command.Command;
27 import org.turro.command.Context;
28 import org.turro.elephant.context.Application;
29 import org.turro.plugin.calendar.ICalendarEvent;
30 import org.turro.plugin.contacts.IContact;
36 public abstract class CalendarEventPlugin
implements IPlugin, Command {
38 public static final int
43 protected Map<String, Object>
params;
48 return "CalendarEvent";
58 this.params = (Map<String, Object>)
params;
66 return (Date)
params.get(
"oldFrom");
70 return (Date)
params.get(
"oldTo");
74 return (Date)
params.get(
"from");
78 return (Date)
params.get(
"to");
82 return (String)
params.get(
"path");
86 return (Integer)
params.get(
"mode");
114 IContact contact, Date oldFrom, Date oldTo, Date from, Date to, String path,
int mode) {
void setParams(Object params)
static Collection< ICalendarEvent > getCalendarEventFor(Application app, IContact contact, Date oldFrom, Date oldTo, Date from, Date to, String path, int mode)
Map< String, Object > params
boolean stopsPropagating()
abstract void executePlugin(Context context)
void addToResult(Object data)
Object execute(Context context)