Class JPAPluginSettingServiceImpl

java.lang.Object
org.exoplatform.commons.notification.impl.AbstractService
org.exoplatform.settings.jpa.JPAPluginSettingServiceImpl
All Implemented Interfaces:
org.exoplatform.commons.api.notification.service.setting.PluginSettingService

public class JPAPluginSettingServiceImpl extends AbstractService implements org.exoplatform.commons.api.notification.service.setting.PluginSettingService
  • Field Details

    • NOTIFICATION_CHANNEL_STATUS_MODIFIED

      public static final String NOTIFICATION_CHANNEL_STATUS_MODIFIED
      See Also:
    • NOTIFICATION_PLUGIN_STATUS_MODIFIED

      public static final String NOTIFICATION_PLUGIN_STATUS_MODIFIED
      See Also:
    • DEFAULT_SETTINGS_STAMP_CONTEXT

      public static final org.exoplatform.commons.api.settings.data.Context DEFAULT_SETTINGS_STAMP_CONTEXT
      Stamp of the notification defaults (channel and plugin statuses): each write of one of them stores a new value, so that a node serving a memoized default setting detects, through the cluster-invalidated settings cache, a change made on another node.
    • DEFAULT_SETTINGS_STAMP_SCOPE

      public static final org.exoplatform.commons.api.settings.data.Scope DEFAULT_SETTINGS_STAMP_SCOPE
    • DEFAULT_SETTINGS_STAMP_KEY

      public static final String DEFAULT_SETTINGS_STAMP_KEY
      See Also:
  • Constructor Details

    • JPAPluginSettingServiceImpl

      public JPAPluginSettingServiceImpl(org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.commons.api.notification.channel.ChannelManager channelManager, org.exoplatform.services.listener.ListenerService listenerService)
  • Method Details

    • registerPluginConfig

      public void registerPluginConfig(org.exoplatform.commons.api.notification.plugin.config.PluginConfig pluginConfig)
      Specified by:
      registerPluginConfig in interface org.exoplatform.commons.api.notification.service.setting.PluginSettingService
    • unregisterPluginConfig

      public void unregisterPluginConfig(org.exoplatform.commons.api.notification.plugin.config.PluginConfig pluginConfig)
    • registerGroupConfig

      public void registerGroupConfig(org.exoplatform.commons.api.notification.plugin.GroupProviderPlugin groupConfigPlg)
      Specified by:
      registerGroupConfig in interface org.exoplatform.commons.api.notification.service.setting.PluginSettingService
    • getPluginConfig

      public org.exoplatform.commons.api.notification.plugin.config.PluginConfig getPluginConfig(String pluginId)
      Specified by:
      getPluginConfig in interface org.exoplatform.commons.api.notification.service.setting.PluginSettingService
    • getGroupPlugins

      public List<org.exoplatform.commons.api.notification.model.GroupProvider> getGroupPlugins()
      Specified by:
      getGroupPlugins in interface org.exoplatform.commons.api.notification.service.setting.PluginSettingService
    • saveActivePlugin

      public void saveActivePlugin(String channelId, String pluginId, boolean isActive)
      Specified by:
      saveActivePlugin in interface org.exoplatform.commons.api.notification.service.setting.PluginSettingService
    • saveChannelStatus

      public void saveChannelStatus(String channelId, boolean enable)
      Specified by:
      saveChannelStatus in interface org.exoplatform.commons.api.notification.service.setting.PluginSettingService
    • saveChannelDefaultValue

      public void saveChannelDefaultValue(String channelId, boolean enable)
      Specified by:
      saveChannelDefaultValue in interface org.exoplatform.commons.api.notification.service.setting.PluginSettingService
    • saveEmailSender

      public void saveEmailSender(String name, String email)
      Specified by:
      saveEmailSender in interface org.exoplatform.commons.api.notification.service.setting.PluginSettingService
    • getEmailSenderName

      public String getEmailSenderName()
      Specified by:
      getEmailSenderName in interface org.exoplatform.commons.api.notification.service.setting.PluginSettingService
    • getEmailSenderEmail

      public String getEmailSenderEmail()
      Specified by:
      getEmailSenderEmail in interface org.exoplatform.commons.api.notification.service.setting.PluginSettingService
    • isChannelActive

      public boolean isChannelActive(String channelId)
      Specified by:
      isChannelActive in interface org.exoplatform.commons.api.notification.service.setting.PluginSettingService
    • getDefaultChannelValue

      public boolean getDefaultChannelValue(String channelId)
      Specified by:
      getDefaultChannelValue in interface org.exoplatform.commons.api.notification.service.setting.PluginSettingService
    • isActive

      public boolean isActive(String channelId, String pluginId)
      Specified by:
      isActive in interface org.exoplatform.commons.api.notification.service.setting.PluginSettingService
    • isAllowed

      public boolean isAllowed(String channelId, String pluginId)
      Specified by:
      isAllowed in interface org.exoplatform.commons.api.notification.service.setting.PluginSettingService
    • getPluginChannels

      public List<String> getPluginChannels(String pluginId)
      Specified by:
      getPluginChannels in interface org.exoplatform.commons.api.notification.service.setting.PluginSettingService
    • getActivePluginIds

      public List<String> getActivePluginIds(String channelId)
      Specified by:
      getActivePluginIds in interface org.exoplatform.commons.api.notification.service.setting.PluginSettingService
    • getActivePlugins

      public List<org.exoplatform.commons.api.notification.model.PluginInfo> getActivePlugins(String channelId)
      Specified by:
      getActivePlugins in interface org.exoplatform.commons.api.notification.service.setting.PluginSettingService
    • getAllPlugins

      public List<org.exoplatform.commons.api.notification.model.PluginInfo> getAllPlugins()
      Specified by:
      getAllPlugins in interface org.exoplatform.commons.api.notification.service.setting.PluginSettingService