public interface ICalendarSystem
CalendarSystemFactory
factory class. Before calling about ICalendarSystem APIs you need to initialize
MWSLibrary
MWS library component with connection to MWS databaseModifier and Type | Method and Description |
---|---|
ICalendarBuilder |
getCalendarBuilder()
Returns instance of
ICalendarBuilder which is used to create calendar instance objects |
ICalendarEvaluator |
getCalendarEvaluator(Date baseDate,
IWorkdayCalendar businessCalendar)
Creates and returns instance of
ICalendarEvaluator which is used to perform calendar calculations |
ICalendarEvaluator |
getCalendarEvaluator(Date baseDate,
IWorkdayCalendar businessCalendar,
IWorkdayCalendar userCalendar)
Creates and returns instance of
ICalendarEvaluator which is used to perform calendar calculations |
ICalendarManager |
getCalendarManager()
Returns instance of
ICalendarManager used to manage persisted calendar instances. |
ICalendarManager |
getCalendarManager(String userID)
Returns instance of
ICalendarManager used to manage persisted calendar instances. |
ICalendarManager getCalendarManager() throws CalendarException
ICalendarManager
used to manage persisted calendar instances.CalendarException
ICalendarManager getCalendarManager(String userID) throws CalendarException
ICalendarManager
used to manage persisted calendar instances. Returned calendar manager
will be active on behalf of specified user thus honoring all user assigned permissionsuserID
- ID of the userCalendarException
ICalendarBuilder getCalendarBuilder()
ICalendarBuilder
which is used to create calendar instance objectsICalendarEvaluator getCalendarEvaluator(Date baseDate, IWorkdayCalendar businessCalendar)
ICalendarEvaluator
which is used to perform calendar calculationsbaseDate
- this is the base date for all calendar calculations. Calendar evaluator may perform calculations
only in the future ranges off the baseDatebusinessCalendar
- instance of IWorkdayCalendar
calendar to useICalendarEvaluator
ICalendarEvaluator getCalendarEvaluator(Date baseDate, IWorkdayCalendar businessCalendar, IWorkdayCalendar userCalendar)
ICalendarEvaluator
which is used to perform calendar calculationsbaseDate
- this is the base date for all calendar calculations. Calendar evaluator may perform calculations
only in the future ranges off the baseDatebusinessCalendar
- instance of IWorkdayCalendar
calendar to useuserCalendar
- instance of user personal IWorkdayCalendar
. Each user has two attributes "userCorporateCalendar"
and "userPersonalCalendar" which values are calendar IDs for business and user calendar objects respectively assigned to the
given user object (IDirectoryUser
). Knowing an ID of the business calendar the one may obtain calendar instance
from ICalendarManager
ICalendarEvaluator
this evaluator instance will perform calendar calculations based on
the specified business calendar which defined holidays and workhours and user personal calendar which defined time off
for the given user