|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.service.cmr.calendar.CalendarTimezoneHelper
public class CalendarTimezoneHelper
This class provides helper functions for when working with Timezones for Calendar events. It provides support for generating iCal timezone information blocks, and building Java TimeZones based on iCal timezone information.
| Constructor Summary | |
|---|---|
CalendarTimezoneHelper()
|
|
| Method Summary | |
|---|---|
protected static java.util.SimpleTimeZone |
buildTimeZone(java.util.Map icalParams)
Internal version that takes the parameters from CalendarTimezoneHelper.getICalParams(String)
and builds a TimeZone from it. |
static java.util.SimpleTimeZone |
buildTimeZone(java.lang.String ical)
Builds a Java TimeZone from the VTIMEZONE info in an iCal file. |
protected static java.util.Map |
getICalParams(java.lang.String icalText)
Turns an iCal event into event + timezone parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CalendarTimezoneHelper()
| Method Detail |
|---|
public static java.util.SimpleTimeZone buildTimeZone(java.lang.String ical)
protected static java.util.SimpleTimeZone buildTimeZone(java.util.Map icalParams)
CalendarTimezoneHelper.getICalParams(String)
and builds a TimeZone from it.
This is not public as it will be refactored when CalendarTimezoneHelper.getICalParams(String)
is replaced.
Note - because it uses the icalParams, we can't handle cases where we're
given historic TZ info (eg until 2004 it was that, now it's this)
protected static java.util.Map getICalParams(java.lang.String icalText)
params - iCal params for the event, and the TZ (prefixed)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||