WorkCalService
.public interface CalendarService
CalendarService
methods.
This service provides interfaces to allow a calendar to be configured with respect to working time.
A normal sequence of events would be:
getCalendarEntries
to get the working
time for a given entity.updateWorkingDays
to modify the working
days and times for a given entity.addWorkingDayExceptions
to add
working day exceptions for a given entity.updateWorkingDayExceptions
to
modify working day exceptions for a given entity.deleteWorkingDayExceptions
to
delete working day exceptions for a given entity.The following functionality is provided:
COPYRIGHT: (C) 2007-2012 Cloud Software Group, Inc. All Rights Reserved.
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
addWorkingDayExceptions(java.lang.String guid,
com.tibco.n2.dac.api.XmlNewWorkingDayExceptionType[] addExceptions)
Deprecated.
since AMX-BPM 2.0.0 use
WorkCalService.saveCalendar(com.tibco.n2.dac.api.basic.XmlBaseCalendar) . |
java.lang.String |
deleteWorkingDayExceptions(java.lang.String guid,
java.lang.String[] deleteExceptions)
Deprecated.
since AMX-BPM 2.0.0 use
WorkCalService.deleteCalendarEntries(int, String, String, String[]) . |
com.tibco.n2.dac.api.XmlCalendarEntriesType |
getCalendarEntries(java.lang.String guid,
java.util.Calendar startDateTime,
java.util.Calendar endDateTime,
com.tibco.n2.dac.api.XmlRequiredDetailType.Enum[] requiredDetail)
Deprecated.
since AMX-BPM 2.0.0 use
WorkCalService.getCalEntries(String, String, Calendar, Calendar) . |
java.lang.String |
updateWorkingDayExceptions(java.lang.String guid,
com.tibco.n2.dac.api.XmlExistingWorkingDayExceptionType[] updateExceptions)
Deprecated.
|
java.lang.String |
updateWorkingDays(java.lang.String guid,
com.tibco.n2.dac.api.XmlDayType[] workingDay)
Deprecated.
since AMX-BPM 2.0.0 use
WorkCalService.saveCalendar(com.tibco.n2.dac.api.basic.XmlBaseCalendar) . |
com.tibco.n2.dac.api.XmlCalendarEntriesType getCalendarEntries(java.lang.String guid, java.util.Calendar startDateTime, java.util.Calendar endDateTime, com.tibco.n2.dac.api.XmlRequiredDetailType.Enum[] requiredDetail) throws com.tibco.n2.dac.services.CalendarFault, com.tibco.n2.dac.services.SecurityFault
WorkCalService.getCalEntries(String, String, Calendar, Calendar)
.
This method should be called before calling updateWorkingDayExceptions(java.lang.String, com.tibco.n2.dac.api.XmlExistingWorkingDayExceptionType[])
or deleteWorkingDayExceptions(java.lang.String, java.lang.String[])
in order to obtain the GUID of working
day exception that is to be modified.
guid
- The GUID of the Calendar that contains the working time entries to be returned.startDateTime
- (Optional) Constraint for filtering the working day exceptions to be returned based
on their date.endDateTime
- (Optional) Constraint for filtering the working day exceptions to be returned based
on their date.requiredDetail
- (Optional) Specifies the level of detail required in the response.XmlCalendarEntriesType
.This contains the time zone information for the calendar if defined and the working week and working day exceptions as defined in the calendar.
com.tibco.n2.dac.services.CalendarFault
- In the event that the calendar can not be queried.com.tibco.n2.dac.services.SecurityFault
- In the event that incorrect security information is presented.java.lang.String updateWorkingDays(java.lang.String guid, com.tibco.n2.dac.api.XmlDayType[] workingDay) throws com.tibco.n2.dac.services.CalendarFault, com.tibco.n2.dac.services.SecurityFault
WorkCalService.saveCalendar(com.tibco.n2.dac.api.basic.XmlBaseCalendar)
.To modify or remove working days the previous entries should be overwritten.
guid
- The GUID of the Calendar that contains the working days entries to be modified.workingDay
- An array of working day information containing the working day and associated working
hours for each working day.String
confirmation code with respect to the update.com.tibco.n2.dac.services.CalendarFault
- In the event that the calendar can not be queried.com.tibco.n2.dac.services.SecurityFault
- In the event that incorrect security information is presented.java.lang.String[] addWorkingDayExceptions(java.lang.String guid, com.tibco.n2.dac.api.XmlNewWorkingDayExceptionType[] addExceptions) throws com.tibco.n2.dac.services.CalendarFault, com.tibco.n2.dac.services.SecurityFault
WorkCalService.saveCalendar(com.tibco.n2.dac.api.basic.XmlBaseCalendar)
.guid
- The GUID of the Calendar that will contain the working day exceptions to be added.addExceptions
- An array of working day exception information containing dates and times of
working day exceptions and whether they are to be marked as free or busy time.String
. Each one will contain the GUID of the
working day exception that has been added.com.tibco.n2.dac.services.CalendarFault
- In the event that the calendar can not be queried.com.tibco.n2.dac.services.SecurityFault
- In the event that incorrect security information is presented.java.lang.String updateWorkingDayExceptions(java.lang.String guid, com.tibco.n2.dac.api.XmlExistingWorkingDayExceptionType[] updateExceptions) throws com.tibco.n2.dac.services.CalendarFault, com.tibco.n2.dac.services.SecurityFault
WorkCalService.saveCalendarEntry(int, String, String, Calendar, Calendar, com.tibco.n2.dac.api.basic.XmlNewWorkingDayExclusion[], com.tibco.n2.dac.api.basic.XmlExistingWorkingDayExclusion[], com.tibco.n2.dac.api.basic.XmlNewRecurringExclusion[], com.tibco.n2.dac.api.basic.XmlExistingRecurringExclusion[])
.guid
- The GUID of the Calendar that will contain the working day exceptions to be modified.updateExceptions
- An array of working day exception information containing updated dates and times of
working day exceptions and whether they are to be marked as free or busy time. Each
modification is based on the working day exception's GUID.String
confirmation code with respect to the update.com.tibco.n2.dac.services.CalendarFault
- In the event that the calendar can not be queried.com.tibco.n2.dac.services.SecurityFault
- In the event that incorrect security information is presented.java.lang.String deleteWorkingDayExceptions(java.lang.String guid, java.lang.String[] deleteExceptions) throws com.tibco.n2.dac.services.CalendarFault, com.tibco.n2.dac.services.SecurityFault
WorkCalService.deleteCalendarEntries(int, String, String, String[])
.guid
- The GUID of the Calendar that will contain the working day exceptions to be deleted.deleteExceptions
- An array of String
containing the GUIDs of the working day exceptions
to be removed.String
confirmation code with respect to the update.com.tibco.n2.dac.services.CalendarFault
- In the event that the calendar can not be queried.com.tibco.n2.dac.services.SecurityFault
- In the event that incorrect security information is presented.Copyright © 2018 Cloud Software Group, Inc. All Rights Reserved.