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

  • 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