Package org.eclnt.jsfserver.calendar
Class ExtCalendarMgr
java.lang.Object
org.eclnt.jsfserver.calendar.ExtCalendarMgr
- All Implemented Interfaces:
IExtCalendarMgr
Default implementation if IExctCalendarMgr: per calendar id a corresponding
XML file is kept within the stream store.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclnt.jsfserver.calendar.IExtCalendarMgr
IExtCalendarMgr.ExtCalendarInfo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Optional implementation: in case the calendar management buffers calendar infos: release all buffered information.Optional implementation: all available calendars.getCalendarInfoForDay
(String calendarId, Date d, String timeZone) Mandatory implementation: check the calendar info for one day.getCalendarInfoForMonth
(String calendarId, Date d, String timeZone) Mandatory implementation: check the calendar info for all days of one month.static IExtCalendarMgr
Factory method for passing back an instance ofIExtCalendarMgr
.
-
Constructor Details
-
ExtCalendarMgr
public ExtCalendarMgr()
-
-
Method Details
-
getInstance
Factory method for passing back an instance ofIExtCalendarMgr
. The method is checking the system.xml configuration file. In case of not finding a specific definition an instance ofExtCalendarMgr
is passed back. -
clearBuffer
public void clearBuffer()Description copied from interface:IExtCalendarMgr
Optional implementation: in case the calendar management buffers calendar infos: release all buffered information.- Specified by:
clearBuffer
in interfaceIExtCalendarMgr
-
getAvailableCalendarIds
Description copied from interface:IExtCalendarMgr
Optional implementation: all available calendars.- Specified by:
getAvailableCalendarIds
in interfaceIExtCalendarMgr
-
getCalendarInfoForDay
public IExtCalendarMgr.ExtCalendarInfo getCalendarInfoForDay(String calendarId, Date d, String timeZone) Description copied from interface:IExtCalendarMgr
Mandatory implementation: check the calendar info for one day.- Specified by:
getCalendarInfoForDay
in interfaceIExtCalendarMgr
-
getCalendarInfoForMonth
public List<IExtCalendarMgr.ExtCalendarInfo> getCalendarInfoForMonth(String calendarId, Date d, String timeZone) Description copied from interface:IExtCalendarMgr
Mandatory implementation: check the calendar info for all days of one month. This method is called by the client side calendar component when navigating between months.- Specified by:
getCalendarInfoForMonth
in interfaceIExtCalendarMgr
-