public class CalendarConverterUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static SimpleDateFormat |
RECURRENCE_ID_FORMAT |
| Modifier and Type | Method and Description |
|---|---|
static void |
convertExchangeToExoEvent(org.exoplatform.calendar.service.CalendarEvent event,
microsoft.exchange.webservices.data.core.service.item.Appointment appointment,
String username,
org.exoplatform.calendar.service.impl.JCRDataStorage storage,
org.exoplatform.services.organization.UserHandler userHandler)
Converts from Exchange Calendar Event to eXo Calendar Event.
|
static void |
convertExchangeToExoMasterRecurringCalendarEvent(org.exoplatform.calendar.service.CalendarEvent event,
microsoft.exchange.webservices.data.core.service.item.Appointment appointment,
String username,
org.exoplatform.calendar.service.impl.JCRDataStorage storage,
org.exoplatform.services.organization.UserHandler userHandler)
Converts from Exchange Calendar Recurring Master Event to eXo Calendar
Event.
|
static List<org.exoplatform.calendar.service.CalendarEvent> |
convertExchangeToExoOccurenceEvent(org.exoplatform.calendar.service.CalendarEvent masterEvent,
List<org.exoplatform.calendar.service.CalendarEvent> updatedEvents,
List<microsoft.exchange.webservices.data.core.service.item.Appointment> occurenceAppointments,
microsoft.exchange.webservices.data.core.service.item.Appointment masterAppointment,
String username,
org.exoplatform.calendar.service.impl.JCRDataStorage storage,
org.exoplatform.services.organization.UserHandler userHandler,
CorrespondenceService correspondenceService)
Converts from Exchange Calendar Exceptional Occurence Event to eXo Calendar
Event and return the list of deleted and updated elements.
|
static void |
convertExoToExchangeEvent(microsoft.exchange.webservices.data.core.service.item.Appointment appointment,
org.exoplatform.calendar.service.CalendarEvent calendarEvent,
String username,
org.exoplatform.services.organization.UserHandler userHandler)
Converts from Exchange Calendar Event to eXo Calendar Event.
|
static List<microsoft.exchange.webservices.data.core.service.item.Appointment> |
convertExoToExchangeMasterRecurringCalendarEvent(microsoft.exchange.webservices.data.core.service.item.Appointment appointment,
org.exoplatform.calendar.service.CalendarEvent event,
String username,
org.exoplatform.services.organization.UserHandler userHandler)
Converts from Exchange Calendar Recurring Master Event to eXo Calendar
Event.
|
static void |
convertExoToExchangeOccurenceEvent(microsoft.exchange.webservices.data.core.service.item.Appointment occAppointment,
org.exoplatform.calendar.service.CalendarEvent occEvent,
String username,
org.exoplatform.services.organization.UserHandler userHandler)
Converts from Exchange Calendar Exceptional Occurence Event to eXo Calendar
Event.
|
static microsoft.exchange.webservices.data.core.service.item.Appointment |
getAppointmentOccurence(microsoft.exchange.webservices.data.core.service.item.Appointment masterAppointment,
String recurrenceId) |
static String |
getCalendarId(String folderId)
Converts Exchange Calendar Name to eXo Calendar Id by adding a prefix and
hash coding the original Id.
|
static Calendar |
getCalendarInstance(Date date) |
static String |
getCalendarName(String calendarName)
Converts Exchange Calendar Name to eXo Calendar Name by adding a prefix.
|
static String |
getEventId(String appointmentId)
Converts Exchange Calendar Event Id to eXo Calendar Event Id
|
static org.exoplatform.calendar.service.CalendarEvent |
getOccurenceOfDate(String username,
org.exoplatform.calendar.service.impl.JCRDataStorage storage,
org.exoplatform.calendar.service.CalendarEvent masterEvent,
Date originalStart) |
static boolean |
isAllDayEvent(org.exoplatform.calendar.service.CalendarEvent eventCalendar) |
static boolean |
isExchangeCalendarId(String calendarId)
Checks if Passed eXo Calendar Id becomes from the synchronization with
exchange, by testing if the prefix exists or not.
|
static boolean |
isExchangeEventId(String eventId)
Checks if Passed eXo Calendar Id becomes from the synchronization with
exchange, by testing if the prefix exists or not.
|
static boolean |
isSameDate(Date value1,
Date value2)
Compares two dates.
|
static boolean |
verifyModifiedDatesConflict(org.exoplatform.calendar.service.CalendarEvent event,
microsoft.exchange.webservices.data.core.service.item.Appointment appointment) |
public static final SimpleDateFormat RECURRENCE_ID_FORMAT
public static void convertExchangeToExoEvent(org.exoplatform.calendar.service.CalendarEvent event,
microsoft.exchange.webservices.data.core.service.item.Appointment appointment,
String username,
org.exoplatform.calendar.service.impl.JCRDataStorage storage,
org.exoplatform.services.organization.UserHandler userHandler)
throws Exception
event - appointment - username - storage - userHandler - Exceptionpublic static void convertExchangeToExoMasterRecurringCalendarEvent(org.exoplatform.calendar.service.CalendarEvent event,
microsoft.exchange.webservices.data.core.service.item.Appointment appointment,
String username,
org.exoplatform.calendar.service.impl.JCRDataStorage storage,
org.exoplatform.services.organization.UserHandler userHandler)
throws Exception
event - appointment - username - storage - userHandler - Exceptionpublic static List<org.exoplatform.calendar.service.CalendarEvent> convertExchangeToExoOccurenceEvent(org.exoplatform.calendar.service.CalendarEvent masterEvent, List<org.exoplatform.calendar.service.CalendarEvent> updatedEvents, List<microsoft.exchange.webservices.data.core.service.item.Appointment> occurenceAppointments, microsoft.exchange.webservices.data.core.service.item.Appointment masterAppointment, String username, org.exoplatform.calendar.service.impl.JCRDataStorage storage, org.exoplatform.services.organization.UserHandler userHandler, CorrespondenceService correspondenceService) throws Exception
masterEvent - updatedEvents - empty list that will be updated by modified occurencesoccurenceAppointments - masterAppointment - username - storage - userHandler - Exceptionpublic static boolean verifyModifiedDatesConflict(org.exoplatform.calendar.service.CalendarEvent event,
microsoft.exchange.webservices.data.core.service.item.Appointment appointment)
throws Exception
event - eXo Calendar eventappointment - Exchange itemExceptionpublic static void convertExoToExchangeEvent(microsoft.exchange.webservices.data.core.service.item.Appointment appointment,
org.exoplatform.calendar.service.CalendarEvent calendarEvent,
String username,
org.exoplatform.services.organization.UserHandler userHandler)
throws Exception
appointment - calendarEvent - username - userHandler - Exceptionpublic static List<microsoft.exchange.webservices.data.core.service.item.Appointment> convertExoToExchangeMasterRecurringCalendarEvent(microsoft.exchange.webservices.data.core.service.item.Appointment appointment, org.exoplatform.calendar.service.CalendarEvent event, String username, org.exoplatform.services.organization.UserHandler userHandler) throws Exception
appointment - event - username - userHandler - Exceptionpublic static void convertExoToExchangeOccurenceEvent(microsoft.exchange.webservices.data.core.service.item.Appointment occAppointment,
org.exoplatform.calendar.service.CalendarEvent occEvent,
String username,
org.exoplatform.services.organization.UserHandler userHandler)
throws Exception
occAppointment - occEvent - username - userHandler - Exceptionpublic static String getCalendarName(String calendarName)
calendarName - public static String getCalendarId(String folderId)
folderId - public static boolean isExchangeCalendarId(String calendarId)
calendarId - public static boolean isExchangeEventId(String eventId)
eventId - public static String getEventId(String appointmentId)
appointmentId - public static boolean isSameDate(Date value1, Date value2)
value1 - value2 - public static boolean isAllDayEvent(org.exoplatform.calendar.service.CalendarEvent eventCalendar)
public static microsoft.exchange.webservices.data.core.service.item.Appointment getAppointmentOccurence(microsoft.exchange.webservices.data.core.service.item.Appointment masterAppointment,
String recurrenceId)
throws Exception
Exceptionpublic static org.exoplatform.calendar.service.CalendarEvent getOccurenceOfDate(String username, org.exoplatform.calendar.service.impl.JCRDataStorage storage, org.exoplatform.calendar.service.CalendarEvent masterEvent, Date originalStart) throws Exception
ExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.