public class IntegrationService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
USER_EXCHANGE_PASSWORD_ATTRIBUTE |
static String |
USER_EXCHANGE_SERVER_DOMAIN_ATTRIBUTE |
static String |
USER_EXCHANGE_SERVER_URL_ATTRIBUTE |
static String |
USER_EXCHANGE_USERNAME_ATTRIBUTE |
| Constructor and Description |
|---|
IntegrationService(org.exoplatform.services.organization.OrganizationService organizationService,
org.exoplatform.calendar.service.CalendarService calendarService,
ExoStorageService exoStorageService,
ExchangeStorageService exchangeStorageService,
CorrespondenceService correspondenceService,
microsoft.exchange.webservices.data.core.ExchangeService service,
String username) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFolderToSynchronization(String folderIdString) |
Boolean |
appointmentUpdated(microsoft.exchange.webservices.data.core.service.item.Appointment appointment)
Make sure that eXo Event has the same modification date than Exchange event
|
List<org.exoplatform.calendar.service.CalendarEvent> |
createOrUpdateOrDelete(microsoft.exchange.webservices.data.notification.ItemEvent itemEvent,
Date lastSyncDate)
Creates or updates or deletes eXo Calendar Event associated to Item, switch
state in Exchange.
|
void |
deleteExchangeCalendar(String calendarId) |
void |
deleteExchangeCalendarEvent(String eventId,
String calendarId) |
boolean |
deleteExoCalendar(microsoft.exchange.webservices.data.property.complex.FolderId folderId)
Handle Exchange Calendar Deletion by deleting associated eXo Calendar.
|
void |
deleteFolderFromSynchronization(String folderIdString) |
List<microsoft.exchange.webservices.data.property.complex.FolderId> |
getAllExchangeCalendars()
Gets list of personnal Exchange Calendars.
|
microsoft.exchange.webservices.data.core.service.folder.CalendarFolder |
getExchangeCalendar(microsoft.exchange.webservices.data.property.complex.FolderId folderId) |
static IntegrationService |
getInstance(String username)
Gets user exchange instance service.
|
microsoft.exchange.webservices.data.core.ExchangeService |
getService() |
List<microsoft.exchange.webservices.data.property.complex.FolderId> |
getSynchronizedExchangeCalendars() |
static String |
getUserArrtibute(org.exoplatform.services.organization.OrganizationService organizationService,
String username,
String name) |
org.exoplatform.calendar.service.Calendar |
getUserCalendarByExchangeFolderId(microsoft.exchange.webservices.data.property.complex.FolderId folderId)
Get corresponding User Calenar from Exchange Folder Id
|
Date |
getUserExoLastCheckDate()
Gets exo last check operation date
|
Date |
getUserLastCheckDate()
Gets last check full synchronization operation date
|
boolean |
isCalendarPresentInExo(microsoft.exchange.webservices.data.property.complex.FolderId folderId)
Checks if eXo associated Calendar is present.
|
boolean |
isCalendarSynchronizedWithExchange(String id)
Checks if eXo associated Calendar is present.
|
void |
removeInstance() |
boolean |
setSynchronizationStarted() |
void |
setSynchronizationStopped() |
static void |
setUserArrtibute(org.exoplatform.services.organization.OrganizationService organizationService,
String username,
String name,
String value) |
void |
setUserExoLastCheckDate(long time)
Sets exo last check operation date.
|
void |
setUserLastCheckDate(long time)
Sets exo and exchange last check full synchronization operation date
|
List<String> |
synchronizeExchangeFolderState(List<microsoft.exchange.webservices.data.property.complex.FolderId> calendarFolderIds,
boolean synchronizeAllExchangeFolders,
boolean deleteExoCalendarOnUnsync) |
List<String> |
synchronizeFullCalendar(microsoft.exchange.webservices.data.property.complex.FolderId folderId)
Synchronize Exchange Calendar identified by 'folderId' with eXo Calendar.
|
void |
synchronizeModificationsOfCalendar(microsoft.exchange.webservices.data.property.complex.FolderId folderId,
Date lastSyncDate,
List<String> updatedExoEventIDs)
Synchronize Exchange Calendar identified by 'folderId' with eXo Calendar.
|
boolean |
updateOrCreateExchangeCalendarEvent(org.exoplatform.calendar.service.CalendarEvent event) |
void |
updateOrCreateExchangeCalendarEvent(javax.jcr.Node eventNode) |
boolean |
updateOrCreateExchangeCalendarEvent(String eventId) |
public static final String USER_EXCHANGE_SERVER_URL_ATTRIBUTE
public static final String USER_EXCHANGE_SERVER_DOMAIN_ATTRIBUTE
public static final String USER_EXCHANGE_USERNAME_ATTRIBUTE
public static final String USER_EXCHANGE_PASSWORD_ATTRIBUTE
public IntegrationService(org.exoplatform.services.organization.OrganizationService organizationService,
org.exoplatform.calendar.service.CalendarService calendarService,
ExoStorageService exoStorageService,
ExchangeStorageService exchangeStorageService,
CorrespondenceService correspondenceService,
microsoft.exchange.webservices.data.core.ExchangeService service,
String username)
public static IntegrationService getInstance(String username)
username - public microsoft.exchange.webservices.data.core.service.folder.CalendarFolder getExchangeCalendar(microsoft.exchange.webservices.data.property.complex.FolderId folderId)
throws Exception
folderId - Exceptionpublic List<String> synchronizeFullCalendar(microsoft.exchange.webservices.data.property.complex.FolderId folderId) throws Exception
folderId - Exceptionpublic void synchronizeModificationsOfCalendar(microsoft.exchange.webservices.data.property.complex.FolderId folderId,
Date lastSyncDate,
List<String> updatedExoEventIDs)
throws Exception
folderId - lastSyncDate - updatedExoEventIDs - Exceptionpublic List<microsoft.exchange.webservices.data.property.complex.FolderId> getAllExchangeCalendars() throws Exception
Exceptionpublic boolean isCalendarSynchronizedWithExchange(String id) throws Exception
id - Exceptionpublic boolean isCalendarPresentInExo(microsoft.exchange.webservices.data.property.complex.FolderId folderId)
throws Exception
folderId - Exceptionpublic List<org.exoplatform.calendar.service.CalendarEvent> createOrUpdateOrDelete(microsoft.exchange.webservices.data.notification.ItemEvent itemEvent, Date lastSyncDate) throws Exception
itemEvent - lastSyncDate - Exceptionpublic org.exoplatform.calendar.service.Calendar getUserCalendarByExchangeFolderId(microsoft.exchange.webservices.data.property.complex.FolderId folderId)
throws Exception
folderId - Exceptionpublic void updateOrCreateExchangeCalendarEvent(javax.jcr.Node eventNode)
throws Exception
eventNode - Exceptionpublic boolean updateOrCreateExchangeCalendarEvent(String eventId) throws Exception
eventId - Exceptionpublic boolean updateOrCreateExchangeCalendarEvent(org.exoplatform.calendar.service.CalendarEvent event)
throws Exception
event - Exceptionpublic void deleteExchangeCalendarEvent(String eventId, String calendarId) throws Exception
eventId - calendarId - Exceptionpublic boolean deleteExoCalendar(microsoft.exchange.webservices.data.property.complex.FolderId folderId)
throws Exception
folderId - Exchange Calendar folderIdExceptionpublic void deleteExchangeCalendar(String calendarId) throws Exception
calendarId - Exceptionpublic void removeInstance()
public List<String> synchronizeExchangeFolderState(List<microsoft.exchange.webservices.data.property.complex.FolderId> calendarFolderIds, boolean synchronizeAllExchangeFolders, boolean deleteExoCalendarOnUnsync) throws Exception
Exceptionpublic List<microsoft.exchange.webservices.data.property.complex.FolderId> getSynchronizedExchangeCalendars() throws Exception
Exceptionpublic void addFolderToSynchronization(String folderIdString) throws Exception
Exceptionpublic void deleteFolderFromSynchronization(String folderIdString) throws Exception
Exceptionpublic boolean setSynchronizationStarted()
public void setSynchronizationStopped()
public void setUserLastCheckDate(long time)
throws Exception
time - Exceptionpublic Date getUserLastCheckDate() throws Exception
Exceptionpublic void setUserExoLastCheckDate(long time)
throws Exception
time - Exceptionpublic Date getUserExoLastCheckDate() throws Exception
Exceptionpublic static void setUserArrtibute(org.exoplatform.services.organization.OrganizationService organizationService,
String username,
String name,
String value)
throws Exception
organizationService - username - name - value - Exceptionpublic static String getUserArrtibute(org.exoplatform.services.organization.OrganizationService organizationService, String username, String name) throws Exception
organizationService - username - name - Exceptionpublic microsoft.exchange.webservices.data.core.ExchangeService getService()
public Boolean appointmentUpdated(microsoft.exchange.webservices.data.core.service.item.Appointment appointment)
appointment - Copyright © 2003–2018 eXo Platform SAS. All rights reserved.