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

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    org.exoplatform.agenda.model.AgendaUserSettings
    getAgendaUserSettings(long userIdentityId)
     
    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.
    List<org.exoplatform.agenda.model.EventReminderParameter>
     
     
    void
     
    void
    removeUserConnector(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.
    void
    saveAgendaUserSettings(long userIdentityId, org.exoplatform.agenda.model.AgendaUserSettings agendaUserSettings)
     
    void
    saveAvailabilitySharing(long userIdentityId, org.exoplatform.agenda.constant.AvailabilitySharing availabilitySharing)
    void
     
    void
    saveUserConnector(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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      saveAgendaUserSettings in interface org.exoplatform.agenda.service.AgendaUserSettingsService
    • getAgendaUserSettings

      public org.exoplatform.agenda.model.AgendaUserSettings getAgendaUserSettings(long userIdentityId)
      Specified by:
      getAgendaUserSettings in interface org.exoplatform.agenda.service.AgendaUserSettingsService
    • saveUserConnector

      public void saveUserConnector(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. Google beside CalDAV) no longer evicts the first.
      Specified by:
      saveUserConnector in interface org.exoplatform.agenda.service.AgendaUserSettingsService
    • removeUserConnector

      public void removeUserConnector(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.
      Specified by:
      removeUserConnector in interface org.exoplatform.agenda.service.AgendaUserSettingsService
    • getDefaultReminders

      public List<org.exoplatform.agenda.model.EventReminderParameter> getDefaultReminders()
      Specified by:
      getDefaultReminders in interface org.exoplatform.agenda.service.AgendaUserSettingsService
    • getEmbedMapProvider

      public String getEmbedMapProvider()
      Specified by:
      getEmbedMapProvider in interface org.exoplatform.agenda.service.AgendaUserSettingsService
    • saveEmbedMapProvider

      public void saveEmbedMapProvider(String providerId)
      Specified by:
      saveEmbedMapProvider in interface org.exoplatform.agenda.service.AgendaUserSettingsService
    • removeEmbedMapProvider

      public void removeEmbedMapProvider()
      Specified by:
      removeEmbedMapProvider in interface org.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:
      getAvailabilitySharing in interface org.exoplatform.agenda.service.AgendaUserSettingsService
    • saveAvailabilitySharing

      public void saveAvailabilitySharing(long userIdentityId, org.exoplatform.agenda.constant.AvailabilitySharing availabilitySharing)
      Specified by:
      saveAvailabilitySharing in interface org.exoplatform.agenda.service.AgendaUserSettingsService