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.Gets 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 notvoidregisterGroupConfig(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.
-
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.
-
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.
-
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.
-