Package co.ecg.alpaca.toolkit.generated
Class BWSystem.SystemScheduleAddEventRequest
java.lang.Object
co.ecg.alpaca.toolkit.messaging.request.Request<DefaultResponse>
co.ecg.alpaca.toolkit.generated.BWSystem.SystemScheduleAddEventRequest
- Enclosing class:
- BWSystem
@ChoiceGroup("allDayEvent") @ChoiceGroup({"startTime","endTime"})
public static class BWSystem.SystemScheduleAddEventRequest
extends Request<DefaultResponse>
Add an event to system schedule. The response is either a SuccessResponse or an ErrorResponse. The startDate element is adjusted to the first occurrence of the recurrent schedule that comes at or after the startDate. The endDate element is set to the sum of the adjusted starDate element value and the event duration.
- Author:
- AlpacaGenerator
-
Nested Class Summary
Nested classes/interfaces inherited from class co.ecg.alpaca.toolkit.messaging.request.Request
Request.Protocol
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @AssertTrue Boolean
protected @NotNull LocalDate
protected @Valid HourMinute
protected @NotNull @Size(min=1,max=40) String
protected @Valid Recurrence
protected @NotNull @Valid ScheduleKey
protected @NotNull LocalDate
protected @Valid HourMinute
-
Constructor Summary
ConstructorsConstructorDescriptionSystemScheduleAddEventRequest
(BroadWorksServer broadWorksServer, HourMinute startTime, HourMinute endTime, ScheduleKey scheduleKey, String eventName, LocalDate startDate, LocalDate endDate) SystemScheduleAddEventRequest
(BroadWorksServer broadWorksServer, ScheduleKey scheduleKey, String eventName, LocalDate startDate, LocalDate endDate) SystemScheduleAddEventRequest
(BroadWorksServer broadWorksServer, Boolean allDayEvent, ScheduleKey scheduleKey, String eventName, LocalDate startDate, LocalDate endDate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
Forms the XML Document for this Request Object.getEmptyObject
(BroadWorksServer broadWorksServer) Retrieves this object with minimal setup.setEndDate
(LocalDate endDate) setEndTime
(HourMinute endTime) setEventName
(String eventName) setRecurrence
(Recurrence recurrence) setScheduleKey
(ScheduleKey scheduleKey) setStartDate
(LocalDate startDate) setStartTime
(HourMinute startTime) Methods inherited from class co.ecg.alpaca.toolkit.messaging.request.Request
appendChild, appendChild, appendChild, asyncFire, createElement, createNilElement, createNilElement, createTextElement, equals, fire, fire, getBroadWorksServer, getCacheString, getCommandElement, getCommandType, getDomDocument, getId, getOCSProtocol, getRequestTimeoutMillis, getResponseClass, getRetries, getRetryCodes, getRootElement, getValidationErrorsAsString, hashCode, isIgnoreCache, isMemberOfBundle, isValid, setBroadWorksServer, setCommandElement, setCommandType, setDomDocument, setEcho, setIgnoreCache, setMemberOfBundle, setRequestId, setRequestTimeoutMillis, setResponseClass, setRetries, setRetryCodes, setRootElement, toString, validate
-
Field Details
-
scheduleKey
-
eventName
-
startDate
-
allDayEvent
-
startTime
-
endTime
-
endDate
-
recurrence
-
-
Constructor Details
-
SystemScheduleAddEventRequest
public SystemScheduleAddEventRequest() -
SystemScheduleAddEventRequest
public SystemScheduleAddEventRequest(BroadWorksServer broadWorksServer, ScheduleKey scheduleKey, String eventName, LocalDate startDate, LocalDate endDate) -
SystemScheduleAddEventRequest
public SystemScheduleAddEventRequest(BroadWorksServer broadWorksServer, Boolean allDayEvent, ScheduleKey scheduleKey, String eventName, LocalDate startDate, LocalDate endDate) -
SystemScheduleAddEventRequest
public SystemScheduleAddEventRequest(BroadWorksServer broadWorksServer, HourMinute startTime, HourMinute endTime, ScheduleKey scheduleKey, String eventName, LocalDate startDate, LocalDate endDate)
-
-
Method Details
-
setScheduleKey
-
getScheduleKey
-
setEventName
-
getEventName
-
setStartDate
-
getStartDate
-
setFlagAllDayEvent
-
allDayEventFlagExist
public boolean allDayEventFlagExist() -
getAllDayEvent
-
setStartTime
-
getStartTime
-
setEndTime
-
getEndTime
-
setEndDate
-
getEndDate
-
setRecurrence
-
getRecurrence
-
getEmptyObject
public static BWSystem.SystemScheduleAddEventRequest getEmptyObject(BroadWorksServer broadWorksServer) Retrieves this object with minimal setup.- Parameters:
broadWorksServer
- The BroadWorksServer
-
formRequest
public void formRequest()Forms the XML Document for this Request Object. Called by the Request upon fire().- Overrides:
formRequest
in classRequest<DefaultResponse>
-