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.ExchangeService service,
String username) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFolderToSynchronization(String folderIdString) |
List<org.exoplatform.calendar.service.CalendarEvent> |
createOrUpdateOrDelete(microsoft.exchange.webservices.data.ItemEvent itemEvent)
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.FolderId folderId)
Handle Exchange Calendar Deletion by deleting associated eXo Calendar.
|
void |
deleteFolderFromSynchronization(String folderIdString) |
List<microsoft.exchange.webservices.data.FolderId> |
getAllExchangeCalendars()
Gets list of personnal Exchange Calendars.
|
microsoft.exchange.webservices.data.CalendarFolder |
getExchangeCalendar(microsoft.exchange.webservices.data.FolderId folderId) |
static IntegrationService |
getInstance(String username)
Gets user exchange instance service.
|
microsoft.exchange.webservices.data.ExchangeService |
getService() |
List<microsoft.exchange.webservices.data.FolderId> |
getSynchronizedExchangeCalendars() |
static String |
getUserArrtibute(org.exoplatform.services.organization.OrganizationService organizationService,
String username,
String name) |
String |
getUserArrtibute(String name) |
org.exoplatform.calendar.service.Calendar |
getUserCalendarByExchangeFolderId(microsoft.exchange.webservices.data.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.FolderId folderId)
Checks if eXo associated Calendar is present.
|
boolean |
isCalendarSynchronizedWithExchange(String id)
Checks if eXo associated Calendar is present.
|
boolean |
isSynchronizationStarted() |
void |
removeInstance() |
void |
setSynchronizationStarted() |
void |
setSynchronizationStopped() |
static void |
setUserArrtibute(org.exoplatform.services.organization.OrganizationService organizationService,
String username,
String name,
String value) |
void |
setUserArrtibute(String name,
String value)
set attribute in current user profile
|
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.FolderId> calendarFolderIds,
boolean synchronizeAllExchangeFolders,
boolean deleteExoCalendarOnUnsync) |
List<String> |
synchronizeFullCalendar(microsoft.exchange.webservices.data.FolderId folderId)
Synchronize Exchange Calendar identified by 'folderId' with eXo Calendar.
|
void |
synchronizeModificationsOfCalendar(microsoft.exchange.webservices.data.FolderId folderId,
Date lastSyncDate,
List<String> updatedExoEventIDs,
int diffTimeZone)
Synchronize Exchange Calendar identified by 'folderId' with eXo Calendar.
|
boolean |
updateOrCreateExchangeCalendarEvent(org.exoplatform.calendar.service.CalendarEvent event) |
boolean |
updateOrCreateExchangeCalendarEvent(org.exoplatform.calendar.service.CalendarEvent event,
List<org.exoplatform.calendar.service.CalendarEvent> eventsToUpdate) |
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.ExchangeService service,
String username)
public static IntegrationService getInstance(String username)
username - public microsoft.exchange.webservices.data.CalendarFolder getExchangeCalendar(microsoft.exchange.webservices.data.FolderId folderId)
throws Exception
folderId - Exceptionpublic List<String> synchronizeFullCalendar(microsoft.exchange.webservices.data.FolderId folderId) throws Exception
folderId - lastSyncDate - diffTimeZone - Exceptionpublic void synchronizeModificationsOfCalendar(microsoft.exchange.webservices.data.FolderId folderId,
Date lastSyncDate,
List<String> updatedExoEventIDs,
int diffTimeZone)
throws Exception
folderId - lastSyncDate - updatedExoEventIDs - diffTimeZone - Exceptionpublic List<microsoft.exchange.webservices.data.FolderId> getAllExchangeCalendars() throws Exception
Exceptionpublic boolean isCalendarSynchronizedWithExchange(String id) throws Exception
usename - Exceptionpublic boolean isCalendarPresentInExo(microsoft.exchange.webservices.data.FolderId folderId)
throws Exception
usename - Exceptionpublic List<org.exoplatform.calendar.service.CalendarEvent> createOrUpdateOrDelete(microsoft.exchange.webservices.data.ItemEvent itemEvent) throws Exception
itemEvent - Exceptionpublic org.exoplatform.calendar.service.Calendar getUserCalendarByExchangeFolderId(microsoft.exchange.webservices.data.FolderId folderId)
throws Exception
folderId - Exceptionpublic void updateOrCreateExchangeCalendarEvent(javax.jcr.Node eventNode)
throws Exception
eventId - Exceptionpublic boolean updateOrCreateExchangeCalendarEvent(String eventId) throws Exception
eventId - Exceptionpublic boolean updateOrCreateExchangeCalendarEvent(org.exoplatform.calendar.service.CalendarEvent event,
List<org.exoplatform.calendar.service.CalendarEvent> eventsToUpdate)
throws Exception
event - Exceptionpublic boolean updateOrCreateExchangeCalendarEvent(org.exoplatform.calendar.service.CalendarEvent event)
throws Exception
event - Exceptionpublic void deleteExchangeCalendarEvent(String eventId, String calendarId) throws Exception
eventId - Exceptionpublic boolean deleteExoCalendar(microsoft.exchange.webservices.data.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.FolderId> calendarFolderIds, boolean synchronizeAllExchangeFolders, boolean deleteExoCalendarOnUnsync) throws Exception
Exceptionpublic List<microsoft.exchange.webservices.data.FolderId> getSynchronizedExchangeCalendars() throws Exception
Exceptionpublic void addFolderToSynchronization(String folderIdString) throws Exception
Exceptionpublic void deleteFolderFromSynchronization(String folderIdString) throws Exception
Exceptionpublic void setSynchronizationStarted()
public void setSynchronizationStopped()
public boolean isSynchronizationStarted()
public void setUserLastCheckDate(long time)
throws Exception
username - time - Exceptionpublic Date getUserLastCheckDate() throws Exception
Exceptionpublic void setUserExoLastCheckDate(long time)
throws Exception
username - time - Exceptionpublic Date getUserExoLastCheckDate() throws Exception
Exceptionpublic void setUserArrtibute(String name, String value) throws Exception
name - value - Exceptionpublic String getUserArrtibute(String name) throws Exception
name - 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.ExchangeService getService()
Copyright © 2003-2014 eXo Platform SAS. All Rights Reserved.