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

Protected Member Functions

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

Additional Inherited Members

- Public Member Functions inherited from org.turro.plugin.command.CalendarPlugin
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 inherited from org.turro.plugin.command.CalendarPlugin
static Collection< Object > getCalendarFor (IContact contact, Date from, Date to)
 
static Collection< ICalendarEventgetCalendarFor (Application app, IContact contact, Date from, Date to)
 
- Protected Attributes inherited from org.turro.plugin.command.CalendarPlugin
Map< String, Object > params
 
Collection< ICalendarEventresult
 
- 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 54 of file IssueCalendar.java.

Member Function Documentation

◆ executePlugin()

void org.turro.dossier.command.IssueCalendar.executePlugin ( )
protected

Reimplemented from org.turro.plugin.command.CalendarPlugin.

Definition at line 61 of file IssueCalendar.java.

61  {
62  //range = new RangeDate(getFrom(), getTo(), new Date());
63  pendingIssues();
64  int pending = map.get(IssueStage.ISSUE_STAGE_TO_DO) != null ?
65  map.get(IssueStage.ISSUE_STAGE_TO_DO) : 0;
66  pending += map.get(IssueStage.ISSUE_STAGE_DATE_SURPASSED) != null ?
67  map.get(IssueStage.ISSUE_STAGE_DATE_SURPASSED) : 0;
68  if(pending > 0) {
69  DefaultCalendarEvent calendarEvent = new DefaultCalendarEvent();
70  calendarEvent.setLocked(true);
71  calendarEvent.setDone(false);
72  calendarEvent.setHeaderColor(CalendarColor.RED.getHeader());
73  calendarEvent.setContentColor(CalendarColor.RED.getContent());
74  calendarEvent.setBeginDate(new CheckDate(new Date()).setHour(8).setMinute(0).getDate());
75  calendarEvent.setEndDate(calendarEvent.getBeginDate());
76  calendarEvent.setPath("/myissues");
77  calendarEvent.setTitle(I_.get("My issues") + ": " + pending);
78  calendarEvent.setContent(getMyIssuesContent());
79  calendarEvent.setEventId("myissues");
80  addResult(calendarEvent.getEventId(), calendarEvent);
81  }
82  // cal afegir temes amb data
83  }
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: