| | |
| | | |
| | | |
| | | // Get the existing plugin if it's already enabled. |
| | | DirectoryServerPlugin<? extends PluginCfg> existingPlugin = |
| | | DirectoryServerPlugin existingPlugin = |
| | | registeredPlugins.get(configuration.dn()); |
| | | |
| | | |
| | |
| | | { |
| | | adminActionRequired = true; |
| | | } |
| | | //The plugin-types might have been changed. Replace the plugin's |
| | | //plugin-types with the configuration's plugin-types and re-register the |
| | | //plugin with new types. |
| | | Set<PluginType> currPluginTypes = existingPlugin.getPluginTypes(); |
| | | currPluginTypes.clear(); |
| | | for (PluginCfgDefn.PluginType pluginType : |
| | | configuration.getPluginType()) |
| | | { |
| | | currPluginTypes.add(getPluginType(pluginType)); |
| | | } |
| | | |
| | | existingPlugin.setInvokeForInternalOperations( |
| | | configuration.isInvokeForInternalOperations()); |
| | | registerPlugin(existingPlugin, configuration.dn(), currPluginTypes); |
| | | |
| | | return new ConfigChangeResult(resultCode, adminActionRequired, messages); |
| | | } |
| | |
| | | } |
| | | catch (InitializationException ie) |
| | | { |
| | | resultCode = DirectoryServer.getServerErrorResultCode(); |
| | | if (resultCode == ResultCode.SUCCESS) |
| | | { |
| | | resultCode = DirectoryServer.getServerErrorResultCode(); |
| | | } |
| | | |
| | | messages.add(ie.getMessageObject()); |
| | | } |
| | | |