org.opends.server.core
Class PluginConfigManager

java.lang.Object
  extended by org.opends.server.core.PluginConfigManager
All Implemented Interfaces:
ConfigurationAddListener<PluginCfg>, ConfigurationChangeListener<PluginCfg>, ConfigurationDeleteListener<PluginCfg>

public class PluginConfigManager
extends java.lang.Object
implements ConfigurationAddListener<PluginCfg>, ConfigurationDeleteListener<PluginCfg>, ConfigurationChangeListener<PluginCfg>

This class defines a utility that will be used to manage the configuration for the set of plugins defined in the Directory Server. It will perform the necessary initialization of those plugins when the server is first started, and then will manage any changes to them while the server is running. It also provides methods for invoking all the plugins of a given type.


Constructor Summary
PluginConfigManager()
          Creates a new instance of this plugin config manager.
 
Method Summary
 ConfigChangeResult applyConfigurationAdd(PluginCfg configuration)
          Adds a new configuration to this add listener.
 ConfigChangeResult applyConfigurationChange(PluginCfg configuration)
          Applies the configuration changes to this change listener.
 ConfigChangeResult applyConfigurationDelete(PluginCfg configuration)
          Deletes an existing configuration from this delete listener.
 void finalizePlugins()
          Finalizes all plugins that are registered with the Directory Server.
 DirectoryServerPlugin getRegisteredPlugin(DN pluginDN)
          Retrieves the plugin with the specified configuration entry DN.
 java.util.concurrent.ConcurrentHashMap<DN,DirectoryServerPlugin<? extends PluginCfg>> getRegisteredPlugins()
          Retrieves the set of plugins that have been registered with the Directory Server.
 void initializePluginConfig(java.util.Set<PluginType> pluginTypes)
          Initializes the configuration associated with the Directory Server plugins.
 PluginResult.IntermediateResponse invokeIntermediateResponsePlugins(IntermediateResponse intermediateResponse)
          Invokes the set of intermediate response plugins that have been configured in the Directory Server.
 PluginResult.ImportLDIF invokeLDIFExportPlugins(LDIFExportConfig exportConfig, Entry entry)
          Invokes the set of LDIF export plugins that have been configured in the Directory Server.
 PluginResult.ImportLDIF invokeLDIFImportPlugins(LDIFImportConfig importConfig, Entry entry)
          Invokes the set of LDIF import plugins that have been configured in the Directory Server.
 PluginResult.PostConnect invokePostConnectPlugins(ClientConnection clientConnection)
          Invokes the set of post-connect plugins that have been configured in the Directory Server.
 PluginResult.PostDisconnect invokePostDisconnectPlugins(ClientConnection clientConnection, DisconnectReason disconnectReason, Message message)
          Invokes the set of post-disconnect plugins that have been configured in the Directory Server.
 PluginResult.PostOperation invokePostOperationAbandonPlugins(PostOperationAbandonOperation abandonOperation)
          Invokes the set of post-operation abandon plugins that have been configured in the Directory Server.
 PluginResult.PostOperation invokePostOperationAddPlugins(PostOperationAddOperation addOperation)
          Invokes the set of post-operation add plugins that have been configured in the Directory Server.
 PluginResult.PostOperation invokePostOperationBindPlugins(PostOperationBindOperation bindOperation)
          Invokes the set of post-operation bind plugins that have been configured in the Directory Server.
 PluginResult.PostOperation invokePostOperationComparePlugins(PostOperationCompareOperation compareOperation)
          Invokes the set of post-operation compare plugins that have been configured in the Directory Server.
 PluginResult.PostOperation invokePostOperationDeletePlugins(PostOperationDeleteOperation deleteOperation)
          Invokes the set of post-operation delete plugins that have been configured in the Directory Server.
 PluginResult.PostOperation invokePostOperationExtendedPlugins(PostOperationExtendedOperation extendedOperation)
          Invokes the set of post-operation extended plugins that have been configured in the Directory Server.
 PluginResult.PostOperation invokePostOperationModifyDNPlugins(PostOperationModifyDNOperation modifyDNOperation)
          Invokes the set of post-operation modify DN plugins that have been configured in the Directory Server.
 PluginResult.PostOperation invokePostOperationModifyPlugins(PostOperationModifyOperation modifyOperation)
          Invokes the set of post-operation modify plugins that have been configured in the Directory Server.
 PluginResult.PostOperation invokePostOperationSearchPlugins(PostOperationSearchOperation searchOperation)
          Invokes the set of post-operation search plugins that have been configured in the Directory Server.
 PluginResult.PostOperation invokePostOperationUnbindPlugins(PostOperationUnbindOperation unbindOperation)
          Invokes the set of post-operation unbind plugins that have been configured in the Directory Server.
 PluginResult.PostResponse invokePostResponseAddPlugins(PostResponseAddOperation addOperation)
          Invokes the set of post-response add plugins that have been configured in the Directory Server.
 PluginResult.PostResponse invokePostResponseBindPlugins(PostResponseBindOperation bindOperation)
          Invokes the set of post-response bind plugins that have been configured in the Directory Server.
 PluginResult.PostResponse invokePostResponseComparePlugins(PostResponseCompareOperation compareOperation)
          Invokes the set of post-response compare plugins that have been configured in the Directory Server.
 PluginResult.PostResponse invokePostResponseDeletePlugins(PostResponseDeleteOperation deleteOperation)
          Invokes the set of post-response delete plugins that have been configured in the Directory Server.
 PluginResult.PostResponse invokePostResponseExtendedPlugins(PostResponseExtendedOperation extendedOperation)
          Invokes the set of post-response extended plugins that have been configured in the Directory Server.
 PluginResult.PostResponse invokePostResponseModifyDNPlugins(PostResponseModifyDNOperation modifyDNOperation)
          Invokes the set of post-response modify DN plugins that have been configured in the Directory Server.
 PluginResult.PostResponse invokePostResponseModifyPlugins(PostResponseModifyOperation modifyOperation)
          Invokes the set of post-response modify plugins that have been configured in the Directory Server.
 PluginResult.PostResponse invokePostResponseSearchPlugins(PostResponseSearchOperation searchOperation)
          Invokes the set of post-response search plugins that have been configured in the Directory Server.
 void invokePostSynchronizationAddPlugins(PostSynchronizationAddOperation addOperation)
          Invokes the set of post-synchronization add plugins that have been configured in the Directory Server.
 void invokePostSynchronizationDeletePlugins(PostSynchronizationDeleteOperation deleteOperation)
          Invokes the set of post-synchronization delete plugins that have been configured in the Directory Server.
 void invokePostSynchronizationModifyDNPlugins(PostSynchronizationModifyDNOperation modifyDNOperation)
          Invokes the set of post-synchronization modify DN plugins that have been configured in the Directory Server.
 void invokePostSynchronizationModifyPlugins(PostSynchronizationModifyOperation modifyOperation)
          Invokes the set of post-synchronization modify plugins that have been configured in the Directory Server.
 PluginResult.PreOperation invokePreOperationAddPlugins(PreOperationAddOperation addOperation)
          Invokes the set of pre-operation add plugins that have been configured in the Directory Server.
 PluginResult.PreOperation invokePreOperationBindPlugins(PreOperationBindOperation bindOperation)
          Invokes the set of pre-operation bind plugins that have been configured in the Directory Server.
 PluginResult.PreOperation invokePreOperationComparePlugins(PreOperationCompareOperation compareOperation)
          Invokes the set of pre-operation compare plugins that have been configured in the Directory Server.
 PluginResult.PreOperation invokePreOperationDeletePlugins(PreOperationDeleteOperation deleteOperation)
          Invokes the set of pre-operation delete plugins that have been configured in the Directory Server.
 PluginResult.PreOperation invokePreOperationExtendedPlugins(PreOperationExtendedOperation extendedOperation)
          Invokes the set of pre-operation extended plugins that have been configured in the Directory Server.
 PluginResult.PreOperation invokePreOperationModifyDNPlugins(PreOperationModifyDNOperation modifyDNOperation)
          Invokes the set of pre-operation modify DN plugins that have been configured in the Directory Server.
 PluginResult.PreOperation invokePreOperationModifyPlugins(PreOperationModifyOperation modifyOperation)
          Invokes the set of pre-operation modify plugins that have been configured in the Directory Server.
 PluginResult.PreOperation invokePreOperationSearchPlugins(PreOperationSearchOperation searchOperation)
          Invokes the set of pre-operation search plugins that have been configured in the Directory Server.
 PluginResult.PreParse invokePreParseAbandonPlugins(PreParseAbandonOperation abandonOperation)
          Invokes the set of pre-parse abandon plugins that have been configured in the Directory Server.
 PluginResult.PreParse invokePreParseAddPlugins(PreParseAddOperation addOperation)
          Invokes the set of pre-parse add plugins that have been configured in the Directory Server.
 PluginResult.PreParse invokePreParseBindPlugins(PreParseBindOperation bindOperation)
          Invokes the set of pre-parse bind plugins that have been configured in the Directory Server.
 PluginResult.PreParse invokePreParseComparePlugins(PreParseCompareOperation compareOperation)
          Invokes the set of pre-parse compare plugins that have been configured in the Directory Server.
 PluginResult.PreParse invokePreParseDeletePlugins(PreParseDeleteOperation deleteOperation)
          Invokes the set of pre-parse delete plugins that have been configured in the Directory Server.
 PluginResult.PreParse invokePreParseExtendedPlugins(PreParseExtendedOperation extendedOperation)
          Invokes the set of pre-parse extended plugins that have been configured in the Directory Server.
 PluginResult.PreParse invokePreParseModifyDNPlugins(PreParseModifyDNOperation modifyDNOperation)
          Invokes the set of pre-parse modify DN plugins that have been configured in the Directory Server.
 PluginResult.PreParse invokePreParseModifyPlugins(PreParseModifyOperation modifyOperation)
          Invokes the set of pre-parse modify plugins that have been configured in the Directory Server.
 PluginResult.PreParse invokePreParseSearchPlugins(PreParseSearchOperation searchOperation)
          Invokes the set of pre-parse search plugins that have been configured in the Directory Server.
 PluginResult.PreParse invokePreParseUnbindPlugins(PreParseUnbindOperation unbindOperation)
          Invokes the set of pre-parse unbind plugins that have been configured in the Directory Server.
 PluginResult.IntermediateResponse invokeSearchResultEntryPlugins(LocalBackendSearchOperation searchOperation, SearchResultEntry searchEntry)
          Invokes the set of search result entry plugins that have been configured in the Directory Server.
 PluginResult.IntermediateResponse invokeSearchResultEntryPlugins(SearchEntrySearchOperation searchOperation, SearchResultEntry searchEntry)
          Invokes the set of search result entry plugins that have been configured in the Directory Server.
 PluginResult.IntermediateResponse invokeSearchResultReferencePlugins(LocalBackendSearchOperation searchOperation, SearchResultReference searchReference)
          Invokes the set of search result reference plugins that have been configured in the Directory Server.
 PluginResult.IntermediateResponse invokeSearchResultReferencePlugins(SearchReferenceSearchOperation searchOperation, SearchResultReference searchReference)
          Invokes the set of search result reference plugins that have been configured in the Directory Server.
 void invokeShutdownPlugins(Message reason)
          Invokes the set of shutdown plugins that have been configured in the Directory Server.
 PluginResult.Startup invokeStartupPlugins()
          Invokes the set of startup plugins that have been registered with the Directory Server.
 PluginResult.SubordinateModifyDN invokeSubordinateModifyDNPlugins(SubordinateModifyDNOperation modifyDNOperation, Entry oldEntry, Entry newEntry, java.util.List<Modification> modifications)
          Invokes the set of subordinate modify DN plugins that have been configured in the Directory Server.
 boolean isConfigurationAddAcceptable(PluginCfg configuration, java.util.List<Message> unacceptableReasons)
          Indicates whether the proposed addition of a new configuration is acceptable to this add listener.
 boolean isConfigurationChangeAcceptable(PluginCfg configuration, java.util.List<Message> unacceptableReasons)
          Indicates whether the proposed change to the configuration is acceptable to this change listener.
 boolean isConfigurationDeleteAcceptable(PluginCfg configuration, java.util.List<Message> unacceptableReasons)
          Indicates whether the proposed deletion of an existing configuration is acceptable to this delete listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginConfigManager

public PluginConfigManager()
Creates a new instance of this plugin config manager.

Method Detail

initializePluginConfig

public void initializePluginConfig(java.util.Set<PluginType> pluginTypes)
                            throws ConfigException,
                                   InitializationException
Initializes the configuration associated with the Directory Server plugins. This should only be called at Directory Server startup.

Parameters:
pluginTypes - The set of plugin types for the plugins to initialize, or null to initialize all types of plugins defined in the server configuration. In general, this should only be non-null for cases in which the server is running in a special mode that only uses a minimal set of plugins (e.g., LDIF import or export).
Throws:
ConfigException - If a critical configuration problem prevents the plugin initialization from succeeding.
InitializationException - If a problem occurs while initializing the plugins that is not related to the server configuration.

finalizePlugins

public void finalizePlugins()
Finalizes all plugins that are registered with the Directory Server.


getRegisteredPlugins

public java.util.concurrent.ConcurrentHashMap<DN,DirectoryServerPlugin<? extends PluginCfg>> getRegisteredPlugins()
Retrieves the set of plugins that have been registered with the Directory Server.

Returns:
The set of plugins that have been registered with the Directory Server.

getRegisteredPlugin

public DirectoryServerPlugin getRegisteredPlugin(DN pluginDN)
Retrieves the plugin with the specified configuration entry DN.

Parameters:
pluginDN - The DN of the configuration entry for the plugin to retrieve.
Returns:
The requested plugin, or null if there is no such plugin.

invokeStartupPlugins

public PluginResult.Startup invokeStartupPlugins()
Invokes the set of startup plugins that have been registered with the Directory Server.

Returns:
The result of processing the startup plugins.

invokeShutdownPlugins

public void invokeShutdownPlugins(Message reason)
Invokes the set of shutdown plugins that have been configured in the Directory Server.

Parameters:
reason - The human-readable reason for the shutdown.

invokePostConnectPlugins

public PluginResult.PostConnect invokePostConnectPlugins(ClientConnection clientConnection)
Invokes the set of post-connect plugins that have been configured in the Directory Server.

Parameters:
clientConnection - The client connection that has been established.
Returns:
The result of processing the post-connect plugins.

invokePostDisconnectPlugins

public PluginResult.PostDisconnect invokePostDisconnectPlugins(ClientConnection clientConnection,
                                                               DisconnectReason disconnectReason,
                                                               Message message)
Invokes the set of post-disconnect plugins that have been configured in the Directory Server.

Parameters:
clientConnection - The client connection that has been closed.
disconnectReason - The general reason that the connection was closed.
message - A human-readable message that may provide additional information about the closure.
Returns:
The result of processing the post-connect plugins.

invokeLDIFImportPlugins

public PluginResult.ImportLDIF invokeLDIFImportPlugins(LDIFImportConfig importConfig,
                                                       Entry entry)
Invokes the set of LDIF import plugins that have been configured in the Directory Server.

Parameters:
importConfig - The LDIF import configuration used to read the associated entry.
entry - The entry that has been read from LDIF.
Returns:
The result of processing the LDIF import plugins.

invokeLDIFExportPlugins

public PluginResult.ImportLDIF invokeLDIFExportPlugins(LDIFExportConfig exportConfig,
                                                       Entry entry)
Invokes the set of LDIF export plugins that have been configured in the Directory Server.

Parameters:
exportConfig - The LDIF export configuration used to read the associated entry.
entry - The entry that has been read from LDIF.
Returns:
The result of processing the LDIF export plugins.

invokePreParseAbandonPlugins

public PluginResult.PreParse invokePreParseAbandonPlugins(PreParseAbandonOperation abandonOperation)
Invokes the set of pre-parse abandon plugins that have been configured in the Directory Server.

Parameters:
abandonOperation - The abandon operation for which to invoke the pre-parse plugins.
Returns:
The result of processing the pre-parse abandon plugins.

invokePreParseAddPlugins

public PluginResult.PreParse invokePreParseAddPlugins(PreParseAddOperation addOperation)
                                               throws CanceledOperationException
Invokes the set of pre-parse add plugins that have been configured in the Directory Server.

Parameters:
addOperation - The add operation for which to invoke the pre-parse plugins.
Returns:
The result of processing the pre-parse add plugins.
Throws:
CanceledOperationException - if the operation should be canceled.

invokePreParseBindPlugins

public PluginResult.PreParse invokePreParseBindPlugins(PreParseBindOperation bindOperation)
Invokes the set of pre-parse bind plugins that have been configured in the Directory Server.

Parameters:
bindOperation - The bind operation for which to invoke the pre-parse plugins.
Returns:
The result of processing the pre-parse bind plugins.

invokePreParseComparePlugins

public PluginResult.PreParse invokePreParseComparePlugins(PreParseCompareOperation compareOperation)
                                                   throws CanceledOperationException
Invokes the set of pre-parse compare plugins that have been configured in the Directory Server.

Parameters:
compareOperation - The compare operation for which to invoke the pre-parse plugins.
Returns:
The result of processing the pre-parse compare plugins.
Throws:
CanceledOperationException - if the operation should be canceled.

invokePreParseDeletePlugins

public PluginResult.PreParse invokePreParseDeletePlugins(PreParseDeleteOperation deleteOperation)
                                                  throws CanceledOperationException
Invokes the set of pre-parse delete plugins that have been configured in the Directory Server.

Parameters:
deleteOperation - The delete operation for which to invoke the pre-parse plugins.
Returns:
The result of processing the pre-parse delete plugins.
Throws:
CanceledOperationException - if the operation should be canceled.

invokePreParseExtendedPlugins

public PluginResult.PreParse invokePreParseExtendedPlugins(PreParseExtendedOperation extendedOperation)
                                                    throws CanceledOperationException
Invokes the set of pre-parse extended plugins that have been configured in the Directory Server.

Parameters:
extendedOperation - The extended operation for which to invoke the pre-parse plugins.
Returns:
The result of processing the pre-parse extended plugins.
Throws:
CanceledOperationException - if the operation should be canceled.

invokePreParseModifyPlugins

public PluginResult.PreParse invokePreParseModifyPlugins(PreParseModifyOperation modifyOperation)
                                                  throws CanceledOperationException
Invokes the set of pre-parse modify plugins that have been configured in the Directory Server.

Parameters:
modifyOperation - The modify operation for which to invoke the pre-parse plugins.
Returns:
The result of processing the pre-parse modify plugins.
Throws:
CanceledOperationException - if the operation should be canceled.

invokePreParseModifyDNPlugins

public PluginResult.PreParse invokePreParseModifyDNPlugins(PreParseModifyDNOperation modifyDNOperation)
                                                    throws CanceledOperationException
Invokes the set of pre-parse modify DN plugins that have been configured in the Directory Server.

Parameters:
modifyDNOperation - The modify DN operation for which to invoke the pre-parse plugins.
Returns:
The result of processing the pre-parse modify DN plugins.
Throws:
CanceledOperationException - if the operation should be canceled.

invokePreParseSearchPlugins

public PluginResult.PreParse invokePreParseSearchPlugins(PreParseSearchOperation searchOperation)
                                                  throws CanceledOperationException
Invokes the set of pre-parse search plugins that have been configured in the Directory Server.

Parameters:
searchOperation - The search operation for which to invoke the pre-parse plugins.
Returns:
The result of processing the pre-parse search plugins.
Throws:
CanceledOperationException - if the operation should be canceled.

invokePreParseUnbindPlugins

public PluginResult.PreParse invokePreParseUnbindPlugins(PreParseUnbindOperation unbindOperation)
Invokes the set of pre-parse unbind plugins that have been configured in the Directory Server.

Parameters:
unbindOperation - The unbind operation for which to invoke the pre-parse plugins.
Returns:
The result of processing the pre-parse unbind plugins.

invokePreOperationAddPlugins

public PluginResult.PreOperation invokePreOperationAddPlugins(PreOperationAddOperation addOperation)
                                                       throws CanceledOperationException
Invokes the set of pre-operation add plugins that have been configured in the Directory Server.

Parameters:
addOperation - The add operation for which to invoke the pre-operation plugins.
Returns:
The result of processing the pre-operation add plugins.
Throws:
CanceledOperationException - if the operation should be canceled.

invokePreOperationBindPlugins

public PluginResult.PreOperation invokePreOperationBindPlugins(PreOperationBindOperation bindOperation)
Invokes the set of pre-operation bind plugins that have been configured in the Directory Server.

Parameters:
bindOperation - The bind operation for which to invoke the pre-operation plugins.
Returns:
The result of processing the pre-operation bind plugins.

invokePreOperationComparePlugins

public PluginResult.PreOperation invokePreOperationComparePlugins(PreOperationCompareOperation compareOperation)
                                                           throws CanceledOperationException
Invokes the set of pre-operation compare plugins that have been configured in the Directory Server.

Parameters:
compareOperation - The compare operation for which to invoke the pre-operation plugins.
Returns:
The result of processing the pre-operation compare plugins.
Throws:
CanceledOperationException - if the operation should be canceled.

invokePreOperationDeletePlugins

public PluginResult.PreOperation invokePreOperationDeletePlugins(PreOperationDeleteOperation deleteOperation)
                                                          throws CanceledOperationException
Invokes the set of pre-operation delete plugins that have been configured in the Directory Server.

Parameters:
deleteOperation - The delete operation for which to invoke the pre-operation plugins.
Returns:
The result of processing the pre-operation delete plugins.
Throws:
CanceledOperationException - if the operation should be canceled.

invokePreOperationExtendedPlugins

public PluginResult.PreOperation invokePreOperationExtendedPlugins(PreOperationExtendedOperation extendedOperation)
                                                            throws CanceledOperationException
Invokes the set of pre-operation extended plugins that have been configured in the Directory Server.

Parameters:
extendedOperation - The extended operation for which to invoke the pre-operation plugins.
Returns:
The result of processing the pre-operation extended plugins.
Throws:
CanceledOperationException - if the operation should be canceled.

invokePreOperationModifyPlugins

public PluginResult.PreOperation invokePreOperationModifyPlugins(PreOperationModifyOperation modifyOperation)
                                                          throws CanceledOperationException
Invokes the set of pre-operation modify plugins that have been configured in the Directory Server.

Parameters:
modifyOperation - The modify operation for which to invoke the pre-operation plugins.
Returns:
The result of processing the pre-operation modify plugins.
Throws:
CanceledOperationException - if the operation should be canceled.

invokePreOperationModifyDNPlugins

public PluginResult.PreOperation invokePreOperationModifyDNPlugins(PreOperationModifyDNOperation modifyDNOperation)
                                                            throws CanceledOperationException
Invokes the set of pre-operation modify DN plugins that have been configured in the Directory Server.

Parameters:
modifyDNOperation - The modify DN operation for which to invoke the pre-operation plugins.
Returns:
The result of processing the pre-operation modify DN plugins.
Throws:
CanceledOperationException - if the operation should be canceled.

invokePreOperationSearchPlugins

public PluginResult.PreOperation invokePreOperationSearchPlugins(PreOperationSearchOperation searchOperation)
                                                          throws CanceledOperationException
Invokes the set of pre-operation search plugins that have been configured in the Directory Server.

Parameters:
searchOperation - The search operation for which to invoke the pre-operation plugins.
Returns:
The result of processing the pre-operation search plugins.
Throws:
CanceledOperationException - if the operation should be canceled.

invokePostOperationAbandonPlugins

public PluginResult.PostOperation invokePostOperationAbandonPlugins(PostOperationAbandonOperation abandonOperation)
Invokes the set of post-operation abandon plugins that have been configured in the Directory Server.

Parameters:
abandonOperation - The abandon operation for which to invoke the post-operation plugins.
Returns:
The result of processing the post-operation abandon plugins.

invokePostOperationAddPlugins

public PluginResult.PostOperation invokePostOperationAddPlugins(PostOperationAddOperation addOperation)
Invokes the set of post-operation add plugins that have been configured in the Directory Server.

Parameters:
addOperation - The add operation for which to invoke the post-operation plugins.
Returns:
The result of processing the post-operation add plugins.

invokePostOperationBindPlugins

public PluginResult.PostOperation invokePostOperationBindPlugins(PostOperationBindOperation bindOperation)
Invokes the set of post-operation bind plugins that have been configured in the Directory Server.

Parameters:
bindOperation - The bind operation for which to invoke the post-operation plugins.
Returns:
The result of processing the post-operation bind plugins.

invokePostOperationComparePlugins

public PluginResult.PostOperation invokePostOperationComparePlugins(PostOperationCompareOperation compareOperation)
Invokes the set of post-operation compare plugins that have been configured in the Directory Server.

Parameters:
compareOperation - The compare operation for which to invoke the post-operation plugins.
Returns:
The result of processing the post-operation compare plugins.

invokePostOperationDeletePlugins

public PluginResult.PostOperation invokePostOperationDeletePlugins(PostOperationDeleteOperation deleteOperation)
Invokes the set of post-operation delete plugins that have been configured in the Directory Server.

Parameters:
deleteOperation - The delete operation for which to invoke the post-operation plugins.
Returns:
The result of processing the post-operation delete plugins.

invokePostOperationExtendedPlugins

public PluginResult.PostOperation invokePostOperationExtendedPlugins(PostOperationExtendedOperation extendedOperation)
Invokes the set of post-operation extended plugins that have been configured in the Directory Server.

Parameters:
extendedOperation - The extended operation for which to invoke the post-operation plugins.
Returns:
The result of processing the post-operation extended plugins.

invokePostOperationModifyPlugins

public PluginResult.PostOperation invokePostOperationModifyPlugins(PostOperationModifyOperation modifyOperation)
Invokes the set of post-operation modify plugins that have been configured in the Directory Server.

Parameters:
modifyOperation - The modify operation for which to invoke the post-operation plugins.
Returns:
The result of processing the post-operation modify plugins.

invokePostOperationModifyDNPlugins

public PluginResult.PostOperation invokePostOperationModifyDNPlugins(PostOperationModifyDNOperation modifyDNOperation)
Invokes the set of post-operation modify DN plugins that have been configured in the Directory Server.

Parameters:
modifyDNOperation - The modify DN operation for which to invoke the post-operation plugins.
Returns:
The result of processing the post-operation modify DN plugins.

invokePostOperationSearchPlugins

public PluginResult.PostOperation invokePostOperationSearchPlugins(PostOperationSearchOperation searchOperation)
Invokes the set of post-operation search plugins that have been configured in the Directory Server.

Parameters:
searchOperation - The search operation for which to invoke the post-operation plugins.
Returns:
The result of processing the post-operation search plugins.

invokePostOperationUnbindPlugins

public PluginResult.PostOperation invokePostOperationUnbindPlugins(PostOperationUnbindOperation unbindOperation)
Invokes the set of post-operation unbind plugins that have been configured in the Directory Server.

Parameters:
unbindOperation - The unbind operation for which to invoke the post-operation plugins.
Returns:
The result of processing the post-operation unbind plugins.

invokePostResponseAddPlugins

public PluginResult.PostResponse invokePostResponseAddPlugins(PostResponseAddOperation addOperation)
Invokes the set of post-response add plugins that have been configured in the Directory Server.

Parameters:
addOperation - The add operation for which to invoke the post-response plugins.
Returns:
The result of processing the post-response add plugins.

invokePostResponseBindPlugins

public PluginResult.PostResponse invokePostResponseBindPlugins(PostResponseBindOperation bindOperation)
Invokes the set of post-response bind plugins that have been configured in the Directory Server.

Parameters:
bindOperation - The bind operation for which to invoke the post-response plugins.
Returns:
The result of processing the post-response bind plugins.

invokePostResponseComparePlugins

public PluginResult.PostResponse invokePostResponseComparePlugins(PostResponseCompareOperation compareOperation)
Invokes the set of post-response compare plugins that have been configured in the Directory Server.

Parameters:
compareOperation - The compare operation for which to invoke the post-response plugins.
Returns:
The result of processing the post-response compare plugins.

invokePostResponseDeletePlugins

public PluginResult.PostResponse invokePostResponseDeletePlugins(PostResponseDeleteOperation deleteOperation)
Invokes the set of post-response delete plugins that have been configured in the Directory Server.

Parameters:
deleteOperation - The delete operation for which to invoke the post-response plugins.
Returns:
The result of processing the post-response delete plugins.

invokePostResponseExtendedPlugins

public PluginResult.PostResponse invokePostResponseExtendedPlugins(PostResponseExtendedOperation extendedOperation)
Invokes the set of post-response extended plugins that have been configured in the Directory Server.

Parameters:
extendedOperation - The extended operation for which to invoke the post-response plugins.
Returns:
The result of processing the post-response extended plugins.

invokePostResponseModifyPlugins

public PluginResult.PostResponse invokePostResponseModifyPlugins(PostResponseModifyOperation modifyOperation)
Invokes the set of post-response modify plugins that have been configured in the Directory Server.

Parameters:
modifyOperation - The modify operation for which to invoke the post-response plugins.
Returns:
The result of processing the post-response modify plugins.

invokePostResponseModifyDNPlugins

public PluginResult.PostResponse invokePostResponseModifyDNPlugins(PostResponseModifyDNOperation modifyDNOperation)
Invokes the set of post-response modify DN plugins that have been configured in the Directory Server.

Parameters:
modifyDNOperation - The modify DN operation for which to invoke the post-response plugins.
Returns:
The result of processing the post-response modify DN plugins.

invokePostResponseSearchPlugins

public PluginResult.PostResponse invokePostResponseSearchPlugins(PostResponseSearchOperation searchOperation)
Invokes the set of post-response search plugins that have been configured in the Directory Server.

Parameters:
searchOperation - The search operation for which to invoke the post-response plugins.
Returns:
The result of processing the post-response search plugins.

invokePostSynchronizationAddPlugins

public void invokePostSynchronizationAddPlugins(PostSynchronizationAddOperation addOperation)
Invokes the set of post-synchronization add plugins that have been configured in the Directory Server.

Parameters:
addOperation - The add operation for which to invoke the post-synchronization plugins.

invokePostSynchronizationDeletePlugins

public void invokePostSynchronizationDeletePlugins(PostSynchronizationDeleteOperation deleteOperation)
Invokes the set of post-synchronization delete plugins that have been configured in the Directory Server.

Parameters:
deleteOperation - The delete operation for which to invoke the post-synchronization plugins.

invokePostSynchronizationModifyPlugins

public void invokePostSynchronizationModifyPlugins(PostSynchronizationModifyOperation modifyOperation)
Invokes the set of post-synchronization modify plugins that have been configured in the Directory Server.

Parameters:
modifyOperation - The modify operation for which to invoke the post-synchronization plugins.

invokePostSynchronizationModifyDNPlugins

public void invokePostSynchronizationModifyDNPlugins(PostSynchronizationModifyDNOperation modifyDNOperation)
Invokes the set of post-synchronization modify DN plugins that have been configured in the Directory Server.

Parameters:
modifyDNOperation - The modify DN operation for which to invoke the post-synchronization plugins.

invokeSearchResultEntryPlugins

public PluginResult.IntermediateResponse invokeSearchResultEntryPlugins(LocalBackendSearchOperation searchOperation,
                                                                        SearchResultEntry searchEntry)
Invokes the set of search result entry plugins that have been configured in the Directory Server.

Parameters:
searchOperation - The search operation for which to invoke the search result entry plugins.
searchEntry - The search result entry to be processed.
Returns:
The result of processing the search result entry plugins.

invokeSearchResultEntryPlugins

public PluginResult.IntermediateResponse invokeSearchResultEntryPlugins(SearchEntrySearchOperation searchOperation,
                                                                        SearchResultEntry searchEntry)
Invokes the set of search result entry plugins that have been configured in the Directory Server.

Parameters:
searchOperation - The search operation for which to invoke the search result entry plugins.
searchEntry - The search result entry to be processed.
Returns:
The result of processing the search result entry plugins.

invokeSearchResultReferencePlugins

public PluginResult.IntermediateResponse invokeSearchResultReferencePlugins(LocalBackendSearchOperation searchOperation,
                                                                            SearchResultReference searchReference)
Invokes the set of search result reference plugins that have been configured in the Directory Server.

Parameters:
searchOperation - The search operation for which to invoke the search result reference plugins.
searchReference - The search result reference to be processed.
Returns:
The result of processing the search result reference plugins.

invokeSearchResultReferencePlugins

public PluginResult.IntermediateResponse invokeSearchResultReferencePlugins(SearchReferenceSearchOperation searchOperation,
                                                                            SearchResultReference searchReference)
Invokes the set of search result reference plugins that have been configured in the Directory Server.

Parameters:
searchOperation - The search operation for which to invoke the search result reference plugins.
searchReference - The search result reference to be processed.
Returns:
The result of processing the search result reference plugins.

invokeSubordinateModifyDNPlugins

public PluginResult.SubordinateModifyDN invokeSubordinateModifyDNPlugins(SubordinateModifyDNOperation modifyDNOperation,
                                                                         Entry oldEntry,
                                                                         Entry newEntry,
                                                                         java.util.List<Modification> modifications)
Invokes the set of subordinate modify DN plugins that have been configured in the Directory Server.

Parameters:
modifyDNOperation - The modify DN operation with which the subordinate entry is associated.
oldEntry - The subordinate entry prior to the move/rename operation.
newEntry - The subordinate entry after the move/rename operation.
modifications - A list into which any modifications made to the target entry should be placed.
Returns:
The result of processing the subordinate modify DN plugins.

invokeIntermediateResponsePlugins

public PluginResult.IntermediateResponse invokeIntermediateResponsePlugins(IntermediateResponse intermediateResponse)
Invokes the set of intermediate response plugins that have been configured in the Directory Server.

Parameters:
intermediateResponse - The intermediate response for which to invoke the intermediate response plugins.
Returns:
The result of processing the intermediate response plugins.

isConfigurationAddAcceptable

public boolean isConfigurationAddAcceptable(PluginCfg configuration,
                                            java.util.List<Message> unacceptableReasons)
Indicates whether the proposed addition of a new configuration is acceptable to this add listener.

Specified by:
isConfigurationAddAcceptable in interface ConfigurationAddListener<PluginCfg>
Parameters:
configuration - The configuration that will be added.
unacceptableReasons - A list that can be used to hold messages about why the provided configuration is not acceptable.
Returns:
Returns true if the proposed addition is acceptable, or false if it is not.

applyConfigurationAdd

public ConfigChangeResult applyConfigurationAdd(PluginCfg configuration)
Adds a new configuration to this add listener.

Specified by:
applyConfigurationAdd in interface ConfigurationAddListener<PluginCfg>
Parameters:
configuration - The configuration that will be added.
Returns:
Returns information about the result of adding the configuration.

isConfigurationDeleteAcceptable

public boolean isConfigurationDeleteAcceptable(PluginCfg configuration,
                                               java.util.List<Message> unacceptableReasons)
Indicates whether the proposed deletion of an existing configuration is acceptable to this delete listener.

Specified by:
isConfigurationDeleteAcceptable in interface ConfigurationDeleteListener<PluginCfg>
Parameters:
configuration - The configuration that will be deleted.
unacceptableReasons - A list that can be used to hold messages about why the provided configuration is not acceptable.
Returns:
Returns true if the proposed deletion is acceptable, or false if it is not.

applyConfigurationDelete

public ConfigChangeResult applyConfigurationDelete(PluginCfg configuration)
Deletes an existing configuration from this delete listener.

Specified by:
applyConfigurationDelete in interface ConfigurationDeleteListener<PluginCfg>
Parameters:
configuration - The existing configuration that will be deleted.
Returns:
Returns information about the result of deleting the configuration.

isConfigurationChangeAcceptable

public boolean isConfigurationChangeAcceptable(PluginCfg configuration,
                                               java.util.List<Message> unacceptableReasons)
Indicates whether the proposed change to the configuration is acceptable to this change listener.

Specified by:
isConfigurationChangeAcceptable in interface ConfigurationChangeListener<PluginCfg>
Parameters:
configuration - The new configuration containing the changes.
unacceptableReasons - A list that can be used to hold messages about why the provided configuration is not acceptable.
Returns:
Returns true if the proposed change is acceptable, or false if it is not.

applyConfigurationChange

public ConfigChangeResult applyConfigurationChange(PluginCfg configuration)
Applies the configuration changes to this change listener.

Specified by:
applyConfigurationChange in interface ConfigurationChangeListener<PluginCfg>
Parameters:
configuration - The new configuration containing the changes.
Returns:
Returns information about the result of changing the configuration.