|
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) |
| |
| 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< ICalendarEvent > | getCalendarFor (Application app, IContact contact, Date from, Date to) |
| |
Protected Attributes inherited from org.turro.plugin.command.CalendarPlugin |
| Map< String, Object > | params |
| |
| Collection< ICalendarEvent > | result |
| |
| Map< String, Object > | params |
| |
| Map< String, Object > | results |
| |
◆ executePlugin()
| void org.turro.dossier.command.IssueCalendar.executePlugin |
( |
| ) |
|
|
protected |
Reimplemented from org.turro.plugin.command.CalendarPlugin.
Definition at line 61 of file IssueCalendar.java.
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;
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);
Object addResult(String key, Object value)
The documentation for this class was generated from the following file: