public class EditEventFunction extends AddEventFunction
| Modifier and Type | Field and Description |
|---|---|
protected WorkflowProvider |
_workflowProvider
Workflow provider
|
_currentUserProvider, _observationManager, _resolverEXPLORERNODE_KEY_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_ERRORS_KEY, WORKFLOW_WARNS_KEY| Constructor and Description |
|---|
EditEventFunction() |
| Modifier and Type | Method and Description |
|---|---|
protected Date[] |
_computeEventDates(CalendarEvent event,
Map<String,Object> jsParameters)
Compute the start date and end date of the event from the edited occurrence
|
protected void |
_createEventFromOccurrence(CalendarEvent initialEvent,
Calendar parentCalendar,
Map transientVars,
Map<String,Object> jsParameters)
Create a new event from the occurrence of a event
|
protected void |
_excludeOccurrence(ModifiableCalendarEvent event,
Date occurrenceDate)
Exclude a occurrence of a event
|
protected void |
_notifyListeners(CalendarEvent event)
Notify listeners that the event has been updated
|
void |
execute(Map transientVars,
Map args,
com.opensymphony.module.propertyset.PropertySet ps) |
void |
service(ServiceManager smanager) |
_initializeWorkflow, _setEventDatagetExplorerNodeaddWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUserprotected WorkflowProvider _workflowProvider
public EditEventFunction()
public void service(ServiceManager smanager) throws ServiceException
service in interface Serviceableservice in class AddEventFunctionServiceExceptionpublic void execute(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException
execute in interface com.opensymphony.workflow.FunctionProviderexecute in class AddEventFunctioncom.opensymphony.workflow.WorkflowExceptionprotected void _createEventFromOccurrence(CalendarEvent initialEvent, Calendar parentCalendar, Map transientVars, Map<String,Object> jsParameters)
initialEvent - The initial eventparentCalendar - The parent calendartransientVars - The transient variablejsParameters - The JS parametersprotected void _excludeOccurrence(ModifiableCalendarEvent event, Date occurrenceDate)
event - The eventoccurrenceDate - The date to excludeprotected Date[] _computeEventDates(CalendarEvent event, Map<String,Object> jsParameters)
event - The eventjsParameters - The JS parametersprotected void _notifyListeners(CalendarEvent event)
_notifyListeners in class AddEventFunctionevent - The updated event