Package com.webmethods.sc.calendar
Interface ICalendarBuilder
public interface ICalendarBuilder
CalendarBuilder is used to create calendar instances
-
Method Summary
Modifier and TypeMethodDescriptioncreateWorkdayCalendar
(String alias, String name, String timeZone) Creates an instance ofIWorkdayCalendar
createWorkdayCalendar
(String id, String alias, String name, String timeZone, List<Event> holidays, List<Workday> workdays) Creates an instance ofIWorkdayCalendar
-
Method Details
-
createWorkdayCalendar
IWorkdayCalendar createWorkdayCalendar(String alias, String name, String timeZone) throws CalendarException Creates an instance ofIWorkdayCalendar
- Parameters:
alias
- unique alias name to be assigned to the calendarname
- display name of the calendartimeZone
- timeZone ID for this calendar- Returns:
- calendar instance with ID == null
- Throws:
CalendarException
-
createWorkdayCalendar
IWorkdayCalendar createWorkdayCalendar(String id, String alias, String name, String timeZone, List<Event> holidays, List<Workday> workdays) Creates an instance ofIWorkdayCalendar
- Parameters:
id
- the calendarIDalias
- unique alias name to be assigned to the calendarname
- display name of the calendartimeZone
- timeZone ID for this calendarholidays
- list of holidaysworkdays
- list of workdays- Returns:
- calendar instance with ID == null
- Throws:
CalendarException
-