public class ERPublishCalendarPage extends WOComponent
The response created by ERPublishCalendarPage is an iCalendar
document (.ics) containing the events added to ERPublishCalendarPage
by the application (see addEvent).
An iCalendar-aware application, such as Apple's iCal, can
subscribe to such a calendar, provided that the page has a fixed
URL (either is the "Main" page, or a direct action serves the page).
Events added to a ERPublishCalendarPage is objects of any class that
implements the ERCalendarEvent interface.
Existing classes (for example EOCustomObject subclasses), that
correspond to calendar events, can easily be modified to
implement ERCalendarEvent and thus be added
directly to ERPublishCalendarPage. If existing classes does not
directly correspond to calendar events, create events from business
data (or some algorithm) using either the included
ERSimpleEvent class, a subclass of
ERSimpleEvent, or any other class implementing
the ERCalendarEvent interface.
WOComponent._EventLoggingEnabler, WOComponent.EventNSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.UtilityNSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessorNSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
calendarName |
protected java.lang.String |
calendarTimeZone |
protected NSTimestampFormatter |
dateFormatter |
protected NSTimestampFormatter |
dateTimeFormatter |
ERCalendarEvent |
event |
protected NSMutableArray |
events |
protected NSTimestamp |
eventTimestamp |
protected int |
maxLineLength |
static java.lang.String |
newline |
protected NSTimestampFormatter |
timeZoneFormatter |
protected NSTimestampFormatter |
utcDateTimeFormatter |
_Extension, _IsEventLoggingEnabled, _keyAssociations_CLASS_CLASS, _KeyPathSeparatorChar, KeyPathSeparatorNullValue_CLASS| Constructor and Description |
|---|
ERPublishCalendarPage(WOContext context)
Standard constructor for WOComponent subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(ERCalendarEvent event)
Adds an event to the calendar.
|
void |
addEventsFromArray(NSArray eventsArray)
Adds an array of events to the calendar.
|
void |
appendToResponse(WOResponse aResponse,
WOContext aContext)
Modifies content encoding to UTF8, and content type to text/calendar.
|
java.lang.String |
calendarName() |
java.lang.String |
calendarTimeZone() |
NSTimestampFormatter |
dateFormatter() |
NSTimestampFormatter |
dateTimeFormatter() |
java.lang.String |
escapedCalendarName() |
java.lang.String |
escapedCalendarTimeZone() |
java.lang.String |
escapedEventStatus() |
java.lang.String |
escapedEventSummary() |
java.lang.String |
escapedEventUniqueId() |
protected java.lang.String |
escapedString(java.lang.String string) |
java.lang.String |
eventRepeatDayOfWeekString() |
java.lang.String |
eventRepeatDaysOfMonthString() |
java.lang.String |
eventRepeatFrequency() |
java.lang.Number |
eventRepeatMonth() |
NSMutableArray |
events() |
NSTimestamp |
eventTimestamp() |
protected java.lang.String |
foldLongLinesInString(java.lang.String content)
Folds lines that are longer than the maximum allowed 75 characters.
|
void |
removeEvent(ERCalendarEvent event)
Removes a previously added event from the calendar.
|
void |
removeEventsInArray(NSArray eventsArray)
Removes an array of previously added events from the calendar.
|
void |
setCalendarName(java.lang.String value)
Sets the name of the calendar.
|
void |
setCalendarTimeZone(java.lang.String value)
Sets the name of the time zone for the calendar.
|
NSTimestampFormatter |
timeZoneFormatter() |
NSTimestampFormatter |
utcDateTimeFormatter() |
__valueForBinding, _associationWithName, _awakeInContext, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, invokeAction, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithNameprotected java.lang.String calendarName
protected java.lang.String calendarTimeZone
protected final int maxLineLength
public static java.lang.String newline
protected NSMutableArray events
public ERCalendarEvent event
protected NSTimestamp eventTimestamp
protected NSTimestampFormatter dateTimeFormatter
protected NSTimestampFormatter dateFormatter
protected NSTimestampFormatter utcDateTimeFormatter
protected NSTimestampFormatter timeZoneFormatter
public ERPublishCalendarPage(WOContext context)
context - context of a transactionWOComponent.pageWithName(String),
WOApplication.pageWithName(String, WOContext)public void appendToResponse(WOResponse aResponse, WOContext aContext)
appendToResponse in class WOComponentaResponse - the HTTP response that an application returns to a Web server to complete a cycle of the request-response loopaContext - context of a transactionpublic void addEvent(ERCalendarEvent event)
event - the event to be included in the calendarERCalendarEvent,
addEventsFromArray(NSArray)public void addEventsFromArray(NSArray eventsArray)
eventsArray - the events to be included in the calendarERCalendarEvent,
addEvent(ERCalendarEvent)public void removeEvent(ERCalendarEvent event)
event - the event to be removed from the calendarERCalendarEvent,
removeEventsInArray(NSArray)public void removeEventsInArray(NSArray eventsArray)
eventsArray - the events to be removed from the calendarERCalendarEvent,
removeEvent(ERCalendarEvent)public NSMutableArray events()
public java.lang.String calendarName()
setCalendarName(String)public java.lang.String escapedCalendarName()
calendarNamepublic void setCalendarName(java.lang.String value)
value - name of the calendarcalendarNamepublic java.lang.String calendarTimeZone()
setCalendarTimeZonesetCalendarTimeZone(String)public java.lang.String escapedCalendarTimeZone()
calendarTimeZonepublic void setCalendarTimeZone(java.lang.String value)
value - name of the time zonecalendarTimeZonepublic java.lang.String escapedEventStatus()
ERCalendarEvent#status()public java.lang.String escapedEventSummary()
ERCalendarEvent#summary()public java.lang.String escapedEventUniqueId()
ERCalendarEvent#uniqueIdpublic NSTimestamp eventTimestamp()
public java.lang.String eventRepeatFrequency()
repeatFrequency.ERCalendarEvent#repeatFrequency()public java.lang.Number eventRepeatMonth()
public java.lang.String eventRepeatDayOfWeekString()
public java.lang.String eventRepeatDaysOfMonthString()
public NSTimestampFormatter dateTimeFormatter()
public NSTimestampFormatter dateFormatter()
public NSTimestampFormatter utcDateTimeFormatter()
public NSTimestampFormatter timeZoneFormatter()
protected java.lang.String escapedString(java.lang.String string)
protected java.lang.String foldLongLinesInString(java.lang.String content)
content - unfolded iCalendar contentCopyright © 2002 – 2022 Project Wonder.