Package org.exoplatform.agenda.service
Class AgendaUserSettingsServiceImpl
java.lang.Object
org.exoplatform.agenda.service.AgendaUserSettingsServiceImpl
- All Implemented Interfaces:
org.exoplatform.agenda.service.AgendaUserSettingsService
public class AgendaUserSettingsServiceImpl
extends Object
implements org.exoplatform.agenda.service.AgendaUserSettingsService
-
Constructor Summary
ConstructorsConstructorDescriptionAgendaUserSettingsServiceImpl(org.exoplatform.agenda.service.AgendaEventConferenceService agendaEventConferenceService, org.exoplatform.agenda.service.AgendaRemoteEventService agendaRemoteEventService, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.container.xml.InitParams initParams) -
Method Summary
Modifier and TypeMethodDescriptionorg.exoplatform.agenda.model.AgendaUserSettingsgetAgendaUserSettings(long userIdentityId) org.exoplatform.agenda.constant.AvailabilitySharinggetAvailabilitySharing(long userIdentityId) Stored under its own key in the user's settings context, in the same scope as the settings blob but beside it, so that a settings save that does not know about this field cannot silently reset it.List<org.exoplatform.agenda.model.EventReminderParameter> voidvoidremoveUserConnector(String connectorName, long userIdentityId) Removes only the given provider's account: disconnecting a Google account must not take the CalDAV account backing "My Calendars" with it, and vice versa.voidsaveAgendaUserSettings(long userIdentityId, org.exoplatform.agenda.model.AgendaUserSettings agendaUserSettings) voidsaveAvailabilitySharing(long userIdentityId, org.exoplatform.agenda.constant.AvailabilitySharing availabilitySharing) voidsaveEmbedMapProvider(String providerId) voidsaveUserConnector(String connectorName, String connectorUserId, long userIdentityId) The account is upserted into the user's connected-accounts list rather than overwriting a single pair of fields, so connecting a second provider (e.g.
-
Constructor Details
-
AgendaUserSettingsServiceImpl
public AgendaUserSettingsServiceImpl(org.exoplatform.agenda.service.AgendaEventConferenceService agendaEventConferenceService, org.exoplatform.agenda.service.AgendaRemoteEventService agendaRemoteEventService, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.container.xml.InitParams initParams)
-
-
Method Details
-
saveAgendaUserSettings
public void saveAgendaUserSettings(long userIdentityId, org.exoplatform.agenda.model.AgendaUserSettings agendaUserSettings) - Specified by:
saveAgendaUserSettingsin interfaceorg.exoplatform.agenda.service.AgendaUserSettingsService
-
getAgendaUserSettings
public org.exoplatform.agenda.model.AgendaUserSettings getAgendaUserSettings(long userIdentityId) - Specified by:
getAgendaUserSettingsin interfaceorg.exoplatform.agenda.service.AgendaUserSettingsService
-
saveUserConnector
The account is upserted into the user's connected-accounts list rather than overwriting a single pair of fields, so connecting a second provider (e.g. Google beside CalDAV) no longer evicts the first.- Specified by:
saveUserConnectorin interfaceorg.exoplatform.agenda.service.AgendaUserSettingsService
-
removeUserConnector
Removes only the given provider's account: disconnecting a Google account must not take the CalDAV account backing "My Calendars" with it, and vice versa.- Specified by:
removeUserConnectorin interfaceorg.exoplatform.agenda.service.AgendaUserSettingsService
-
getDefaultReminders
- Specified by:
getDefaultRemindersin interfaceorg.exoplatform.agenda.service.AgendaUserSettingsService
-
getEmbedMapProvider
- Specified by:
getEmbedMapProviderin interfaceorg.exoplatform.agenda.service.AgendaUserSettingsService
-
saveEmbedMapProvider
- Specified by:
saveEmbedMapProviderin interfaceorg.exoplatform.agenda.service.AgendaUserSettingsService
-
removeEmbedMapProvider
public void removeEmbedMapProvider()- Specified by:
removeEmbedMapProviderin interfaceorg.exoplatform.agenda.service.AgendaUserSettingsService
-
getAvailabilitySharing
public org.exoplatform.agenda.constant.AvailabilitySharing getAvailabilitySharing(long userIdentityId) Stored under its own key in the user's settings context, in the same scope as the settings blob but beside it, so that a settings save that does not know about this field cannot silently reset it.- Specified by:
getAvailabilitySharingin interfaceorg.exoplatform.agenda.service.AgendaUserSettingsService
-
saveAvailabilitySharing
public void saveAvailabilitySharing(long userIdentityId, org.exoplatform.agenda.constant.AvailabilitySharing availabilitySharing) - Specified by:
saveAvailabilitySharingin interfaceorg.exoplatform.agenda.service.AgendaUserSettingsService
-