Interface PluginSettingService
public interface PluginSettingService
-
Method Summary
Modifier and TypeMethodDescriptiongetActivePluginIds(String channelId) Gets all Ids of active plugins by channel.getActivePlugins(String channelId) Gets information of all active plugins by channel.Gets information of all plugins.booleangetDefaultChannelValue(String channelId) Get notification channel default valueGets a list of groups containing plugins.getPluginChannels(String pluginId) getPluginConfig(String pluginId) Gets configuration of a plugin from its Id.booleanChecks if a plugin is active or inactive.booleanChecks whether the channel is allowed on designated plugin or notbooleanisChannelActive(String channelId) Checks if a notification channel is active or inactive.voidregisterGroupConfig(GroupProviderPlugin groupConfig) Registers the plugin configuration of a group.voidregisterPluginConfig(PluginConfig pluginConfig) Registers configuration of a plugin.voidsaveActivePlugin(String channelId, String pluginId, boolean isActive) Saves a plugin.voidsaveChannelDefaultValue(String channelId, boolean enable) Saves a default value for a given ChannelvoidsaveChannelStatus(String channelId, boolean enable) Saves a status for a given ChannelvoidsaveEmailSender(String name, String email) Saves email notification sender settings
-
Method Details
-
registerPluginConfig
Registers configuration of a plugin.- Parameters:
pluginConfig- The plugin configuration.
-
registerGroupConfig
Registers the plugin configuration of a group.- Parameters:
groupConfig- The plugin configuration to be registered.
-
getPluginConfig
Gets configuration of a plugin from its Id.- Parameters:
pluginId- Id of the plugin.- Returns:
- The plugin configuration.
-
getGroupPlugins
List<GroupProvider> getGroupPlugins()Gets a list of groups containing plugins.- Returns:
- The list of groups.
-
saveActivePlugin
Saves a plugin.- Parameters:
pluginId- Id of the saved plugin.isActive- If "true", the plugin is active. If "false", the plugin is inactive.
-
saveChannelStatus
Saves a status for a given Channel- Parameters:
channelId- Channel identifierenable- status whether enabled or not
-
saveChannelDefaultValue
Saves a default value for a given Channel- Parameters:
channelId- Channel identifierenable- status whether enabled or not
-
getDefaultChannelValue
Get notification channel default value- Parameters:
channelId- Channel identifier- Returns:
- true is active by default else inactive
-
saveEmailSender
Saves email notification sender settings- Parameters:
name- Company nameemail- Company email
-
getEmailSenderName
String getEmailSenderName()- Returns:
- Mail notification sender name
-
getEmailSenderEmail
String getEmailSenderEmail()- Returns:
- Mail notification sender email
-
isActive
Checks if a plugin is active or inactive.- Parameters:
channelId-ChannelKeyidentifierpluginId- Id of the plugin.- Returns:
- The returned value is "true" if the plugin is active or "false" if the plugin is inactive.
-
isChannelActive
Checks if a notification channel is active or inactive.- Parameters:
channelId- Channel identifier- Returns:
- true is active else inactive
-
isAllowed
Checks whether the channel is allowed on designated plugin or not- Parameters:
channelId-ChannelKeyidentifierpluginId- Id of the plugin.- Returns:
- true if
AbstractChannelis default channel or if the channel is configured to be used in pluginId
-
getActivePluginIds
Gets all Ids of active plugins by channel.- Returns:
- Ids of the active plugins.
-
getPluginChannels
- Parameters:
pluginId-PluginConfigtype- Returns:
Listof active channels of Plugin
-
getActivePlugins
Gets information of all active plugins by channel.- Returns:
- Information of the active plugins.
-
getAllPlugins
List<PluginInfo> getAllPlugins()Gets information of all plugins.- Returns:
- Information of the plugins.
-