protected class EwsExchangeSession.Event extends ExchangeSession.Event
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
APPLICATION_ICS, contentClass, subject, TEXT_CALENDAR, vCalendar
displayName, etag, folderPath, itemName, noneMatch, permanentUrl
Modifier | Constructor and Description |
---|---|
protected |
Event(String folderPath,
EWSMethod.Item response) |
protected |
Event(String folderPath,
String itemName,
String contentClass,
String itemBody,
String etag,
String noneMatch) |
Modifier and Type | Method and Description |
---|---|
protected List<FieldUpdate> |
buildFieldUpdates(VCalendar vCalendar,
VObject vEvent,
boolean isMozDismiss) |
ExchangeSession.ItemResult |
createOrUpdate()
Create or update item
|
protected void |
fixAttendees(GetItemMethod getItemMethod,
VObject vEvent) |
byte[] |
getEventContent()
Retrieve item body from Exchange
|
protected void |
handleExcludedDates(ItemId currentItemId,
VCalendar vCalendar)
Handle excluded dates (deleted occurrences).
|
protected void |
handleModifiedOccurrences(ItemId currentItemId,
VCalendar vCalendar)
Handle modified occurrences.
|
buildHttpNotFoundException, createMimeContent, dumpICS, fixICS, getBody, getCalendarMimePart, getContentType, getICS, isCalendarContentType
getEtag, getHref, getName, setHref, setItemName
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
protected Event(String folderPath, EWSMethod.Item response)
protected Event(String folderPath, String itemName, String contentClass, String itemBody, String etag, String noneMatch) throws IOException
IOException
protected void handleExcludedDates(ItemId currentItemId, VCalendar vCalendar) throws DavMailException
currentItemId
- current item id to iterate over occurrencesvCalendar
- vCalendar objectDavMailException
- on errorprotected void handleModifiedOccurrences(ItemId currentItemId, VCalendar vCalendar) throws DavMailException
currentItemId
- current item id to iterate over occurrencesvCalendar
- vCalendar objectDavMailException
- on errorprotected List<FieldUpdate> buildFieldUpdates(VCalendar vCalendar, VObject vEvent, boolean isMozDismiss) throws DavMailException
DavMailException
public ExchangeSession.ItemResult createOrUpdate() throws IOException
ExchangeSession.Event
createOrUpdate
in class ExchangeSession.Event
IOException
- on errorpublic byte[] getEventContent() throws IOException
ExchangeSession.Event
getEventContent
in class ExchangeSession.Event
IOException
- on errorprotected void fixAttendees(GetItemMethod getItemMethod, VObject vEvent) throws EWSException
EWSException
Copyright © 2001–2024 MickaĆ«l Guessant. All rights reserved.