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

Public Member Functions

String getName ()
 
boolean stopPropagating ()
 
IContact getContact ()
 
Date getOldFrom ()
 
Date getOldTo ()
 
Date getFrom ()
 
Date getTo ()
 
String getPath ()
 
Integer getMode ()
 
void execute ()
 
String getName ()
 
boolean stopsPropagating ()
 
void setParams (Object params)
 
IContact getContact ()
 
Date getOldFrom ()
 
Date getOldTo ()
 
Date getFrom ()
 
Date getTo ()
 
String getPath ()
 
Integer getMode ()
 
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 > getCalendarEventFor (IContact contact, Date oldFrom, Date oldTo, Date from, Date to, String path, int mode)
 
static Collection< ICalendarEventgetCalendarEventFor (Application app, IContact contact, Date oldFrom, Date oldTo, Date from, Date to, String path, int mode)
 

Static Public Attributes

static final int CREATE = 1
 

Protected Member Functions

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

Protected Attributes

Map< String, Object > params
 
Collection controls
 
- 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.CalendarEventPlugin.addToResult ( Object  data)
protected

◆ execute() [1/2]

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

Reimplemented from org.turro.action.DefaultPlugin.

Definition at line 79 of file elephant/src/main/java/org/turro/plugin/command/CalendarEventPlugin.java.

79  {
80  executePlugin();
81  }
Here is the call graph for this function:

◆ execute() [2/2]

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

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

90  {
91 // if(getName().equals(context.get(CommandFactory.COMMAND_PARS))) {
92 // setParams(context.get(CommandFactory.DATA));
93 // controls = (Collection) context.get(CommandFactory.RESULT);
94 // executePlugin(context);
95 // context.put(CommandFactory.RESULT, controls);
96 // if(stopsPropagating()) {
97 // return PROCESSING_COMPLETE;
98 // }
99 // }
100 // return CONTINUE_PROCESSING;
101  return null;
102  };

◆ executePlugin() [1/2]

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

◆ executePlugin() [2/2]

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

◆ getCalendarEventFor() [1/2]

static Collection<ICalendarEvent> org.turro.plugin.command.CalendarEventPlugin.getCalendarEventFor ( Application  app,
IContact  contact,
Date  oldFrom,
Date  oldTo,
Date  from,
Date  to,
String  path,
int  mode 
)
static

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

114  {
115 // Map<String, Object> params = new HashMap<String, Object>();
116 // params.put("contact", contact);
117 // params.put("oldFrom", oldFrom);
118 // params.put("oldTo", oldTo);
119 // params.put("from", from);
120 // params.put("to", to);
121 // params.put("path", path);
122 // params.put("mode", mode);
123 // return (Collection<ICalendarEvent>) CommandFactory
124 // .executePlugins(app, params, "CalendarEvent");
125  return null;
126  }

◆ getCalendarEventFor() [2/2]

static Collection<Object> org.turro.plugin.command.CalendarEventPlugin.getCalendarEventFor ( IContact  contact,
Date  oldFrom,
Date  oldTo,
Date  from,
Date  to,
String  path,
int  mode 
)
static

Definition at line 85 of file elephant/src/main/java/org/turro/plugin/command/CalendarEventPlugin.java.

86  {
87  Map<String, Object> args = new HashMap<>();
88  args.put("contact", contact);
89  args.put("oldFrom", oldFrom);
90  args.put("oldTo", oldTo);
91  args.put("from", from);
92  args.put("to", to);
93  args.put("path", path);
94  args.put("mode", mode);
95  args = Plugins.execute("CalendarEvent", args);
96  return args.values();
97  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getContact() [1/2]

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

◆ getContact() [2/2]

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

Definition at line 50 of file elephant/src/main/java/org/turro/plugin/command/CalendarEventPlugin.java.

50  {
51  return (IContact) params.get("contact");
52  }

◆ getFrom() [1/2]

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

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

73  {
74  return (Date) params.get("from");
75  }

◆ getFrom() [2/2]

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

Definition at line 62 of file elephant/src/main/java/org/turro/plugin/command/CalendarEventPlugin.java.

62  {
63  return (Date) params.get("from");
64  }
Here is the caller graph for this function:

◆ getMode() [1/2]

Integer org.turro.plugin.command.CalendarEventPlugin.getMode ( )

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

85  {
86  return (Integer) params.get("mode");
87  }

◆ getMode() [2/2]

Integer org.turro.plugin.command.CalendarEventPlugin.getMode ( )

Definition at line 74 of file elephant/src/main/java/org/turro/plugin/command/CalendarEventPlugin.java.

74  {
75  return (Integer) params.get("mode");
76  }
Here is the caller graph for this function:

◆ getName() [1/2]

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

Reimplemented from org.turro.action.DefaultPlugin.

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

47  {
48  return "CalendarEvent";
49  }

◆ getName() [2/2]

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

Reimplemented from org.turro.action.DefaultPlugin.

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

41  {
42  return "CalendarEvent";
43  }

◆ getOldFrom() [1/2]

Date org.turro.plugin.command.CalendarEventPlugin.getOldFrom ( )

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

65  {
66  return (Date) params.get("oldFrom");
67  }

◆ getOldFrom() [2/2]

Date org.turro.plugin.command.CalendarEventPlugin.getOldFrom ( )

Definition at line 54 of file elephant/src/main/java/org/turro/plugin/command/CalendarEventPlugin.java.

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

◆ getOldTo() [1/2]

Date org.turro.plugin.command.CalendarEventPlugin.getOldTo ( )

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

69  {
70  return (Date) params.get("oldTo");
71  }

◆ getOldTo() [2/2]

Date org.turro.plugin.command.CalendarEventPlugin.getOldTo ( )

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

58  {
59  return (Date) params.get("oldTo");
60  }

◆ getPath() [1/2]

String org.turro.plugin.command.CalendarEventPlugin.getPath ( )

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

81  {
82  return (String) params.get("path");
83  }

◆ getPath() [2/2]

String org.turro.plugin.command.CalendarEventPlugin.getPath ( )

Definition at line 70 of file elephant/src/main/java/org/turro/plugin/command/CalendarEventPlugin.java.

70  {
71  return (String) params.get("path");
72  }
Here is the caller graph for this function:

◆ getTo() [1/2]

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

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

77  {
78  return (Date) params.get("to");
79  }

◆ getTo() [2/2]

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

Definition at line 66 of file elephant/src/main/java/org/turro/plugin/command/CalendarEventPlugin.java.

66  {
67  return (Date) params.get("to");
68  }
Here is the caller graph for this function:

◆ setParams()

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

Implements org.turro.plugin.command.IPlugin.

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

57  {
58  this.params = (Map<String, Object>) params;
59  }

◆ stopPropagating()

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

Reimplemented from org.turro.action.DefaultPlugin.

Definition at line 46 of file elephant/src/main/java/org/turro/plugin/command/CalendarEventPlugin.java.

46  {
47  return false;
48  }

◆ stopsPropagating()

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

Implements org.turro.plugin.command.IPlugin.

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

52  {
53  return false;
54  }

Member Data Documentation

◆ controls

Collection org.turro.plugin.command.CalendarEventPlugin.controls
protected

◆ CREATE

static final int org.turro.plugin.command.CalendarEventPlugin.CREATE = 1
static

◆ params

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

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