|
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) |
| |
| 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< ICalendarEvent > | getCalendarEventFor (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 |
| |
| Map< String, Object > | params |
| |
| Map< String, Object > | results |
| |
◆ executePlugin()
| void org.turro.dossier.command.IssueCalendarEvent.executePlugin |
( |
| ) |
|
|
protected |
Reimplemented from org.turro.plugin.command.CalendarEventPlugin.
Definition at line 36 of file IssueCalendarEvent.java.
38 Issue entity = (Issue) Entities.getController(
getPath()).getEntity();
40 if(
getMode() == CalendarEventPlugin.UPDATE) {
41 boolean modified =
false, deliveryDone =
false;
42 if(entity.getStartDate() !=
null && entity.getStartDate().equals(
getOldFrom())) {
44 if(
new CheckDate(entity.getStartDate()).sameDay(entity.getDelivery())) {
45 entity.setDelivery(
getTo());
50 if(entity.getControlDate() !=
null && entity.getControlDate().equals(
getOldFrom())) {
51 entity.setControlDate(
getFrom());
54 if(!deliveryDone && entity.getDelivery() !=
null && entity.getDelivery().equals(
getOldFrom())) {
59 new DossierPU().saveObject(entity);
The documentation for this class was generated from the following file: