public class VCalendar extends VObject
Modifier and Type | Class and Description |
---|---|
static class |
VCalendar.Recipients
VCalendar recipients for notifications
|
Modifier and Type | Field and Description |
---|---|
protected String |
email |
protected VObject |
firstVevent |
protected static org.apache.log4j.Logger |
LOGGER |
protected VObject |
vTimezone |
Constructor and Description |
---|
VCalendar()
Empty constructor
|
VCalendar(BufferedReader reader,
String email,
VObject vTimezone)
Create VCalendar object from reader;
|
VCalendar(byte[] vCalendarContent,
String email,
VObject vTimezone)
Create VCalendar object from string;
|
VCalendar(String vCalendarBody,
String email,
VObject vTimezone)
Create VCalendar object from string;
|
Modifier and Type | Method and Description |
---|---|
void |
addFirstVeventProperty(VProperty vProperty)
Add property on first VEVENT.
|
void |
addVObject(VObject vObject)
Add vObject.
|
String |
convertCalendarDateToExchangeZulu(String vcalendarDateValue,
String tzid) |
protected void |
fixAlarm(VObject vObject,
boolean fromServer) |
protected void |
fixVCalendar(boolean fromServer) |
String |
getAttendeeStatus() |
protected String |
getCalendarServerAccess()
Convert CLASS to X-CALENDARSERVER-ACCESS.
|
String |
getEmailValue(VProperty property)
Get email from property value.
|
protected String |
getEventClass(String calendarServerAccess)
Convert X-CALENDARSERVER-ACCESS to CLASS.
|
VObject |
getFirstVevent()
Get first VEvent
|
List<VProperty> |
getFirstVeventProperties(String name)
Get properties by name from first VEVENT.
|
protected VProperty |
getFirstVeventProperty(String name) |
String |
getFirstVeventPropertyValue(String name)
Get property value from first VEVENT in VCALENDAR.
|
protected String |
getMethod() |
List<VObject> |
getModifiedOccurrences()
Get recurring VCalendar occurence exceptions.
|
VCalendar.Recipients |
getRecipients(boolean isNotification)
Build recipients value for VCalendar.
|
String |
getReminderMinutesBeforeStart() |
TimeZone |
getStandardTimezoneId(String tzid) |
VObject |
getVTimezone()
Return VTimezone object
|
boolean |
hasVAlarm()
Check if VCalendar has a VALARM item.
|
protected boolean |
isAllDay(VObject vObject) |
boolean |
isCdoAllDay()
Check if vCalendar is CDO allday.
|
protected boolean |
isCdoAllDay(VObject vObject) |
boolean |
isMeeting()
Check if this VCalendar is a meeting.
|
boolean |
isMeetingOrganizer()
Check if current user is meeting organizer.
|
boolean |
isTodo()
Check if this item is a VTODO item
|
void |
removeVAlarm()
Remove VAlarm from VCalendar.
|
protected String |
replaceIcal4Principal(String value)
Replace iCal4 (Snow Leopard) principal paths with mailto expression
|
protected void |
setClientAllday(VProperty property) |
void |
setFirstVeventPropertyValue(String propertyName,
String propertyValue)
Set property value on first VEVENT.
|
protected void |
setServerAllday(VProperty property) |
void |
setTimezone(VObject vTimezone)
Set timezone on vObject
|
protected void |
splitExDate(VObject vObject) |
protected void |
updateTzid(String tzid,
String newTzid) |
addProperty, addPropertyValue, getProperties, getProperties, getProperty, getPropertyValue, handleLine, isVAlarm, isVEvent, isVTimezone, removeProperty, removeProperty, setPropertyValue, setType, toString, writeTo
protected static final org.apache.log4j.Logger LOGGER
protected VObject firstVevent
protected VObject vTimezone
protected String email
public VCalendar(BufferedReader reader, String email, VObject vTimezone) throws IOException
reader
- stream readeremail
- current user emailvTimezone
- user OWA timezoneIOException
- on errorpublic VCalendar(String vCalendarBody, String email, VObject vTimezone) throws IOException
vCalendarBody
- item bodyemail
- current user emailvTimezone
- user OWA timezoneIOException
- on errorpublic VCalendar(byte[] vCalendarContent, String email, VObject vTimezone) throws IOException
vCalendarContent
- item contentemail
- current user emailvTimezone
- user OWA timezoneIOException
- on errorpublic VCalendar()
public void setTimezone(VObject vTimezone)
vTimezone
- timezone objectpublic void addVObject(VObject vObject)
VObject
addVObject
in class VObject
vObject
- inner objectprotected boolean isAllDay(VObject vObject)
protected boolean isCdoAllDay(VObject vObject)
public boolean isCdoAllDay()
public String getEmailValue(VProperty property)
property
- propertyprotected String getMethod()
protected void fixVCalendar(boolean fromServer)
protected void splitExDate(VObject vObject)
protected void setServerAllday(VProperty property)
protected void setClientAllday(VProperty property)
protected void fixAlarm(VObject vObject, boolean fromServer)
protected String replaceIcal4Principal(String value)
value
- attendee value or ics linepublic VObject getVTimezone()
protected String getEventClass(String calendarServerAccess)
calendarServerAccess
- X-CALENDARSERVER-ACCESS valueprotected String getCalendarServerAccess()
public String getFirstVeventPropertyValue(String name)
name
- property namepublic List<VProperty> getFirstVeventProperties(String name)
name
- property namepublic void removeVAlarm()
public boolean hasVAlarm()
public String getReminderMinutesBeforeStart()
public boolean isMeeting()
public boolean isMeetingOrganizer()
public void setFirstVeventPropertyValue(String propertyName, String propertyValue)
propertyName
- property namepropertyValue
- property valuepublic void addFirstVeventProperty(VProperty vProperty)
vProperty
- property objectpublic boolean isTodo()
public VCalendar.Recipients getRecipients(boolean isNotification)
isNotification
- if true, filter recipients that should receive meeting notificationspublic String getAttendeeStatus()
public VObject getFirstVevent()
public List<VObject> getModifiedOccurrences()
public String convertCalendarDateToExchangeZulu(String vcalendarDateValue, String tzid) throws IOException
IOException
Copyright © 2001–2024 MickaĆ«l Guessant. All rights reserved.