Package davmail.exchange.ews
Class EwsExchangeSession.Event
java.lang.Object
java.util.AbstractMap<String,String>
java.util.HashMap<String,String>
davmail.exchange.ExchangeSession.Item
davmail.exchange.ExchangeSession.Event
davmail.exchange.ews.EwsExchangeSession.Event
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,String>
- Enclosing class:
EwsExchangeSession
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields inherited from class davmail.exchange.ExchangeSession.Event
APPLICATION_ICS, contentClass, startTimeZone, subject, TEXT_CALENDAR, vCalendarFields inherited from class davmail.exchange.ExchangeSession.Item
displayName, etag, folderPath, itemName, noneMatch, permanentUrl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<FieldUpdate> buildFieldUpdates(VCalendar vCalendar, VObject vEvent, boolean isMozDismiss) Create or update itemprotected voidfixAttendees(GetItemMethod getItemMethod, VObject vEvent) protected voidfixModifiedOccurrence(VObject modifiedOccurrence, GetItemMethod getOccurrenceMethod, EWSMethod.Occurrence occurrence, String masterUid, VProperty organizerProperty) protected VPropertyfixOrganizer(GetItemMethod getItemMethod, VObject vEvent) byte[]Retrieve item body from Exchangeprotected GetItemMethodgetOccurrence(EWSMethod.Occurrence occurrence, boolean includeMimeContent) protected voidhandleExcludedDates(ItemId currentItemId, VCalendar vCalendar) Handle excluded dates (deleted occurrences).protected voidhandleModifiedOccurrences(ItemId currentItemId, VCalendar vCalendar, SendMeetingInvitationsOrCancellations sendMeetingInvitationsOrCancellations) Handle modified occurrences.Methods inherited from class davmail.exchange.ExchangeSession.Event
buildHttpNotFoundException, createMimeContent, dumpICS, fixICS, getBody, getCalendarMimePart, getContentType, getICS, isCalendarContentTypeMethods inherited from class davmail.exchange.ExchangeSession.Item
getEtag, getHref, getName, setHref, setItemNameMethods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
Event
-
Event
protected Event(String folderPath, String itemName, String contentClass, String itemBody, String etag, String noneMatch) throws IOException - Throws:
IOException
-
-
Method Details
-
handleExcludedDates
protected void handleExcludedDates(ItemId currentItemId, VCalendar vCalendar) throws DavMailException Handle excluded dates (deleted occurrences).- Parameters:
currentItemId- the current item id to iterate over occurrencesvCalendar- vCalendar object- Throws:
DavMailException- on error
-
handleModifiedOccurrences
protected void handleModifiedOccurrences(ItemId currentItemId, VCalendar vCalendar, SendMeetingInvitationsOrCancellations sendMeetingInvitationsOrCancellations) throws DavMailException Handle modified occurrences.- Parameters:
currentItemId- the current item id to iterate over occurrencesvCalendar- vCalendar object- Throws:
DavMailException- on error
-
buildFieldUpdates
protected List<FieldUpdate> buildFieldUpdates(VCalendar vCalendar, VObject vEvent, boolean isMozDismiss) throws DavMailException - Throws:
DavMailException
-
createOrUpdate
Description copied from class:ExchangeSession.EventCreate or update item- Specified by:
createOrUpdatein classExchangeSession.Event- Returns:
- action result
- Throws:
IOException- on error
-
getEventContent
Description copied from class:ExchangeSession.EventRetrieve item body from Exchange- Specified by:
getEventContentin classExchangeSession.Event- Returns:
- item content
- Throws:
IOException- on error
-
fixOrganizer
- Throws:
IOException
-
getOccurrence
protected GetItemMethod getOccurrence(EWSMethod.Occurrence occurrence, boolean includeMimeContent) throws IOException - Throws:
IOException
-
fixModifiedOccurrence
protected void fixModifiedOccurrence(VObject modifiedOccurrence, GetItemMethod getOccurrenceMethod, EWSMethod.Occurrence occurrence, String masterUid, VProperty organizerProperty) throws IOException - Throws:
IOException
-
fixAttendees
- Throws:
IOException
-