| File was renamed from opends/src/server/org/opends/server/plugins/NetworkGroupPlugin.java |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.plugins; |
| | | package org.opends.server.core.networkgroups; |
| | | |
| | | |
| | | |
| | |
| | | import org.opends.server.api.ClientConnection; |
| | | import org.opends.server.api.plugin.*; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.core.networkgroups.NetworkGroup; |
| | | import org.opends.server.types.AuthenticationType; |
| | | import org.opends.server.types.ConfigChangeResult; |
| | | import org.opends.server.types.DirectoryException; |
| | |
| | | extends DirectoryServerPlugin<NetworkGroupPluginCfg> |
| | | implements ConfigurationChangeListener<NetworkGroupPluginCfg> |
| | | { |
| | | // The current configuration for this plugin. |
| | | private NetworkGroupPluginCfg currentConfig; |
| | | |
| | | |
| | | |
| | | /** |
| | | * Creates a new instance of this Directory Server plugin. Every plugin must |
| | |
| | | public NetworkGroupPlugin() |
| | | { |
| | | super(); |
| | | |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | NetworkGroupPluginCfg configuration) |
| | | throws ConfigException |
| | | { |
| | | currentConfig = configuration; |
| | | |
| | | // Make sure that the plugin has been enabled for the appropriate types. |
| | | for (PluginType t : pluginTypes) |
| | | { |
| | |
| | | boolean fullCheck, |
| | | ArrayList<Message> messages) |
| | | { |
| | | if (!connection.getNetworkGroup().checkResourceLimits( |
| | | if (!connection.getNetworkGroup().checkResourceLimitsPolicy( |
| | | connection, operation, fullCheck, messages)) { |
| | | return false; |
| | | } |
| | |
| | | public ConfigChangeResult applyConfigurationChange( |
| | | NetworkGroupPluginCfg configuration) |
| | | { |
| | | currentConfig = configuration; |
| | | return new ConfigChangeResult(ResultCode.SUCCESS, false); |
| | | } |
| | | } |