BrightSide Workbench Full Report + Source Code
org.turro.plugin.command.CalendarPlugin Class Referenceabstract
Inheritance diagram for org.turro.plugin.command.CalendarPlugin:
Collaboration diagram for org.turro.plugin.command.CalendarPlugin:

Public Member Functions

String getName ()
 
boolean stopPropagating ()
 
IContact getContact ()
 
Date getFrom ()
 
Date getTo ()
 
void execute ()
 
String getName ()
 
boolean stopsPropagating ()
 
void setParams (Object params)
 
IContact getContact ()
 
Date getFrom ()
 
Date getTo ()
 
Object execute (Context context)
 
- Public Member Functions inherited from org.turro.action.DefaultPlugin
void setContext (Map< String, Object > params, Map< String, Object > results)
 
Object getParam (String key)
 
boolean itsMe (String name)
 
Object addResult (String key, Object value)
 

Static Public Member Functions

static Collection< Object > getCalendarFor (IContact contact, Date from, Date to)
 
static Collection< ICalendarEventgetCalendarFor (Application app, IContact contact, Date from, Date to)
 

Protected Member Functions

abstract void executePlugin ()
 
void addToResult (Object data)
 
abstract void executePlugin (Context context) throws Exception
 

Protected Attributes

Map< String, Object > params
 
Collection< ICalendarEventresult
 
- Protected Attributes inherited from org.turro.action.DefaultPlugin
Map< String, Object > params
 
Map< String, Object > results
 

Detailed Description

Member Function Documentation

◆ addToResult()

void org.turro.plugin.command.CalendarPlugin.addToResult ( Object  data)
protected

Definition at line 83 of file elephant-plugins/src/main/java/org/turro/plugin/command/CalendarPlugin.java.

83  {
84  if(result == null) {
85  result = new ArrayList<>();
86  }
87  if(data instanceof ICalendarEvent) {
88  result.add((ICalendarEvent) data);
89  }
90  }

◆ execute() [1/2]

void org.turro.plugin.command.CalendarPlugin.execute ( )

Reimplemented from org.turro.action.DefaultPlugin.

Definition at line 58 of file elephant/src/main/java/org/turro/plugin/command/CalendarPlugin.java.

58  {
59  executePlugin();
60  }
Here is the call graph for this function:

◆ execute() [2/2]

Object org.turro.plugin.command.CalendarPlugin.execute ( Context  context)

Definition at line 69 of file elephant-plugins/src/main/java/org/turro/plugin/command/CalendarPlugin.java.

69  {
70 // if(getName().equals(context.get(CommandFactory.COMMAND_PARS))) {
71 // setParams(context.get(CommandFactory.DATA));
72 // result = (Collection<ICalendarEvent>) context.get(CommandFactory.RESULT);
73 // executePlugin(context);
74 // context.put(CommandFactory.RESULT, result);
75 // if(stopsPropagating()) {
76 // return PROCESSING_COMPLETE;
77 // }
78 // }
79 // return CONTINUE_PROCESSING;
80  return null;
81  };

◆ executePlugin() [1/2]

abstract void org.turro.plugin.command.CalendarPlugin.executePlugin ( )
abstractprotected

◆ executePlugin() [2/2]

abstract void org.turro.plugin.command.CalendarPlugin.executePlugin ( Context  context) throws Exception
abstractprotected

◆ getCalendarFor() [1/2]

static Collection<ICalendarEvent> org.turro.plugin.command.CalendarPlugin.getCalendarFor ( Application  app,
IContact  contact,
Date  from,
Date  to 
)
static

Definition at line 94 of file elephant-plugins/src/main/java/org/turro/plugin/command/CalendarPlugin.java.

94  {
95 // Map<String, Object> params = new HashMap<String, Object>();
96 // params.put("contact", contact);
97 // params.put("from", from);
98 // params.put("to", to);
99 // return (Collection<ICalendarEvent>) CommandFactory
100 // .executePlugins(app, params, "Calendar");
101  return null;
102  }

◆ getCalendarFor() [2/2]

static Collection<Object> org.turro.plugin.command.CalendarPlugin.getCalendarFor ( IContact  contact,
Date  from,
Date  to 
)
static

Definition at line 64 of file elephant/src/main/java/org/turro/plugin/command/CalendarPlugin.java.

64  {
65  Map<String, Object> args = new HashMap<>();
66  args.put("contact", contact);
67  args.put("from", from);
68  args.put("to", to);
69  args = Plugins.execute("Calendar", args);
70  return args.values();
71  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getContact() [1/2]

IContact org.turro.plugin.command.CalendarPlugin.getContact ( )

◆ getContact() [2/2]

IContact org.turro.plugin.command.CalendarPlugin.getContact ( )

Definition at line 45 of file elephant/src/main/java/org/turro/plugin/command/CalendarPlugin.java.

45  {
46  return (IContact) params.get("contact");
47  }
Here is the caller graph for this function:

◆ getFrom() [1/2]

Date org.turro.plugin.command.CalendarPlugin.getFrom ( )

Definition at line 60 of file elephant-plugins/src/main/java/org/turro/plugin/command/CalendarPlugin.java.

60  {
61  return (Date) params.get("from");
62  }

◆ getFrom() [2/2]

Date org.turro.plugin.command.CalendarPlugin.getFrom ( )

Definition at line 49 of file elephant/src/main/java/org/turro/plugin/command/CalendarPlugin.java.

49  {
50  return (Date) params.get("from");
51  }
Here is the caller graph for this function:

◆ getName() [1/2]

String org.turro.plugin.command.CalendarPlugin.getName ( )

Reimplemented from org.turro.action.DefaultPlugin.

Definition at line 42 of file elephant-plugins/src/main/java/org/turro/plugin/command/CalendarPlugin.java.

42  {
43  return "Calendar";
44  }

◆ getName() [2/2]

String org.turro.plugin.command.CalendarPlugin.getName ( )

Reimplemented from org.turro.action.DefaultPlugin.

Definition at line 36 of file elephant/src/main/java/org/turro/plugin/command/CalendarPlugin.java.

36  {
37  return "Calendar";
38  }

◆ getTo() [1/2]

Date org.turro.plugin.command.CalendarPlugin.getTo ( )

Definition at line 64 of file elephant-plugins/src/main/java/org/turro/plugin/command/CalendarPlugin.java.

64  {
65  return (Date) params.get("to");
66  }

◆ getTo() [2/2]

Date org.turro.plugin.command.CalendarPlugin.getTo ( )

Definition at line 53 of file elephant/src/main/java/org/turro/plugin/command/CalendarPlugin.java.

53  {
54  return (Date) params.get("to");
55  }
Here is the caller graph for this function:

◆ setParams()

void org.turro.plugin.command.CalendarPlugin.setParams ( Object  params)

Implements org.turro.plugin.command.IPlugin.

Definition at line 52 of file elephant-plugins/src/main/java/org/turro/plugin/command/CalendarPlugin.java.

52  {
53  this.params = (Map<String, Object>) params;
54  }

◆ stopPropagating()

boolean org.turro.plugin.command.CalendarPlugin.stopPropagating ( )

Reimplemented from org.turro.action.DefaultPlugin.

Definition at line 41 of file elephant/src/main/java/org/turro/plugin/command/CalendarPlugin.java.

41  {
42  return false;
43  }

◆ stopsPropagating()

boolean org.turro.plugin.command.CalendarPlugin.stopsPropagating ( )

Implements org.turro.plugin.command.IPlugin.

Definition at line 47 of file elephant-plugins/src/main/java/org/turro/plugin/command/CalendarPlugin.java.

47  {
48  return false;
49  }

Member Data Documentation

◆ params

Map<String, Object> org.turro.plugin.command.CalendarPlugin.params
protected

◆ result

Collection<ICalendarEvent> org.turro.plugin.command.CalendarPlugin.result
protected

The documentation for this class was generated from the following file: