public class UserIntegrationFacade extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.exoplatform.commons.api.settings.data.Context |
USER_EXCHANGE_CONTEXT |
static String |
USER_EXCHANGE_PASSWORD_ATTRIBUTE |
static org.exoplatform.commons.api.settings.data.Scope |
USER_EXCHANGE_SCOPE |
static String |
USER_EXCHANGE_SERVER_DOMAIN_ATTRIBUTE |
static String |
USER_EXCHANGE_SERVER_URL_ATTRIBUTE |
static String |
USER_EXCHANGE_SYNC_STATE_KEY |
static String |
USER_EXCHANGE_USERNAME_ATTRIBUTE |
| Constructor and Description |
|---|
UserIntegrationFacade(org.exoplatform.calendar.service.CalendarService calendarService,
ExoDataStorageService exoStorageService,
ExchangeDataStorageService exchangeStorageService,
CorrespondenceService correspondenceService,
microsoft.exchange.webservices.data.core.ExchangeService service,
String username,
int maxFirstSynchronizationDays) |
| 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
|
void |
checkAndDeleteExoEvent(String itemId) |
List<org.exoplatform.calendar.service.CalendarEvent> |
createOrUpdateOrDelete(microsoft.exchange.webservices.data.notification.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.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 UserIntegrationFacade |
getInstance(String username)
Gets user exchange instance service.
|
microsoft.exchange.webservices.data.core.ExchangeService |
getService() |
org.exoplatform.commons.api.settings.SettingService |
getSettingService() |
List<microsoft.exchange.webservices.data.property.complex.FolderId> |
getSynchronizedExchangeCalendars() |
String |
getSynchState(microsoft.exchange.webservices.data.property.complex.FolderId folderId) |
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
|
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.
|
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 exoLastSyncDate,
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 static final org.exoplatform.commons.api.settings.data.Context USER_EXCHANGE_CONTEXT
public static final org.exoplatform.commons.api.settings.data.Scope USER_EXCHANGE_SCOPE
public static final String USER_EXCHANGE_SYNC_STATE_KEY
public UserIntegrationFacade(org.exoplatform.calendar.service.CalendarService calendarService,
ExoDataStorageService exoStorageService,
ExchangeDataStorageService exchangeStorageService,
CorrespondenceService correspondenceService,
microsoft.exchange.webservices.data.core.ExchangeService service,
String username,
int maxFirstSynchronizationDays)
public static UserIntegrationFacade 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 checkAndDeleteExoEvent(String itemId) throws Exception
Exceptionpublic String getSynchState(microsoft.exchange.webservices.data.property.complex.FolderId folderId)
public org.exoplatform.commons.api.settings.SettingService getSettingService()
public void synchronizeModificationsOfCalendar(microsoft.exchange.webservices.data.property.complex.FolderId folderId,
Date exoLastSyncDate,
List<String> updatedExoEventIDs)
throws Exception
folderId - exoLastSyncDate - 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) throws Exception
itemEvent - 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 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–2019 eXo Platform SAS. All rights reserved.