public class EditEventFunction extends AddEventFunction
Modifier and Type | Field and Description |
---|---|
protected WorkflowProvider |
_workflowProvider
Workflow provider
|
_currentUserProvider, _observationManager, _resolver
EXPLORERNODE_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, _setEventData
getExplorerNode
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser
protected WorkflowProvider _workflowProvider
public EditEventFunction()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class AddEventFunction
ServiceException
public void execute(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException
execute
in interface com.opensymphony.workflow.FunctionProvider
execute
in class AddEventFunction
com.opensymphony.workflow.WorkflowException
protected 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 AddEventFunction
event
- The updated event