ICalendar¶
Definition¶
Extends¶
Extended By¶
None
Description¶
The ICalendar file format (.ics) for creating calendar invites
Method Summary¶
Owner | Name | Return Type | Description |
---|---|---|---|
ICalendar | constructor() | ICalendar | Creates an ICalendar |
ICalendar | addAttendee(eventIndex, mailTo, role, cn) | ICalendar | Adds an attendee to the specified event |
ICalendar | addEvent(summary, timezone, start, end, location, description, language, transparency, visibility) | Integer | Adds an event to the calendar and returns the event's index |
ICalendar | addOrganizer(eventIndex, mailTo, organizer, sentBy, language, ldap) | ICalendar | Sets the organizer information for the calendar invite |
ICalendar | build() | String | Creates the .ics file content as a string |
Object | getClassName() | String | Returns the string name of this object's class type. |
Object | toJson() | String | Returns a json representation of this object. |
Method Definitions¶
constructor()¶
ICalendar icalendar = new ICalendar()
Description¶
Creates an ICalendar
addAttendee(eventIndex,mailTo,role,cn)¶
ICalendar ICalendar::addAttendee(Integer eventIndex, String mailTo, String role, String cn)
Description¶
Adds an attendee to the specified event
Parameter Definition¶
Name | Type | Description |
---|---|---|
eventIndex | Integer | Index of the event to be used |
mailTo | String | Email address of the attendee |
role | String | Role of the attendee, default is REQ-PARTICIPANT, valid options are: REQ-PARTICIPANT, OPT-PARTICIPANT, NON-PARTICIPANT, CHAIR |
cn | String | Common or displayable name of the attendee |
addEvent(summary,timezone,start,end,location,description,language,transparency,visibility)¶
Integer ICalendar::addEvent(String summary, String timezone, Long start, Long end, String location, String description, String language, String transparency, String visibility)
Description¶
Adds an event to the calendar and returns the event's index
Parameter Definition¶
Name | Type | Description |
---|---|---|
summary | String | Summary of the event |
timezone | String | Timezone of the event |
start | Long | Start Timestamp of the event |
end | Long | End timestamp of the event |
location | String | Location of the event |
description | String | Description of the event |
language | String | Language of the event |
transparency | String | Transparency of the event. Valid values are: OPAQUE,TRANSPARENT |
visibility | String | Visibility of the event. Valid values are: PUBLIC,PRIVATE,CONFIDENTIAL |
addOrganizer(eventIndex,mailTo,organizer,sentBy,language,ldap)¶
ICalendar ICalendar::addOrganizer(Integer eventIndex, String mailTo, String organizer, String sentBy, String language, String ldap)
Description¶
Sets the organizer information for the calendar invite
Parameter Definition¶
Name | Type | Description |
---|---|---|
eventIndex | Integer | Index of the event to be used |
mailTo | String | Required mail to address of the organizer |
organizer | String | Optional - Name of the organizer |
sentBy | String | Optional - Sent by email aliase |
language | String | Optional - Language |
ldap | String | Optional - LDAP directory of the organizer |
build()¶
Description¶
Creates the .ics file content as a string