BrightSide Workbench Full Report + Source Code
org.turro.crm.command.CrmCalendarEvent Class Reference
Inheritance diagram for org.turro.crm.command.CrmCalendarEvent:
Collaboration diagram for org.turro.crm.command.CrmCalendarEvent:

Protected Member Functions

void executePlugin ()
 
- Protected Member Functions inherited from org.turro.plugin.command.CalendarEventPlugin
void addToResult (Object data)
 
abstract void executePlugin (Context context) throws Exception
 

Additional Inherited Members

- Public Member Functions inherited from org.turro.plugin.command.CalendarEventPlugin
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 inherited from org.turro.plugin.command.CalendarEventPlugin
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 inherited from org.turro.plugin.command.CalendarEventPlugin
static final int CREATE = 1
 
- Protected Attributes inherited from org.turro.plugin.command.CalendarEventPlugin
Map< String, Object > params
 
Collection controls
 
- Protected Attributes inherited from org.turro.action.DefaultPlugin
Map< String, Object > params
 
Map< String, Object > results
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 33 of file CrmCalendarEvent.java.

Member Function Documentation

◆ executePlugin()

void org.turro.crm.command.CrmCalendarEvent.executePlugin ( )
protected

Reimplemented from org.turro.plugin.command.CalendarEventPlugin.

Definition at line 36 of file CrmCalendarEvent.java.

36  {
37  if(getPath() != null && getPath().startsWith("/sale-action/")) {
38  SaleAction entity = (SaleAction) Entities.getController(getPath()).getEntity();
39  if(entity != null) {
40  if(getMode() == CalendarEventPlugin.UPDATE) {
41  entity.setActionDate(getFrom());
42  entity.setFinalDate(getTo());
43  new CrmPU().saveObject(entity);
44  }
45  }
46  } else if(getMode() == CalendarEventPlugin.CREATE && getFrom() != null && getTo() != null) {
47  addResult("sa-new", new SaleActionCreator(getFrom(), getTo()));
48  }
49  }
Object addResult(String key, Object value)
Here is the call graph for this function:

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