Package org.opends.server.core
Class PluginConfigManager
java.lang.Object
org.opends.server.core.PluginConfigManager
- All Implemented Interfaces:
ConfigurationAddListener<PluginCfg>
,ConfigurationChangeListener<PluginCfg>
,ConfigurationDeleteListener<PluginCfg>
public final class PluginConfigManager
extends 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
ConstructorsConstructorDescriptionPluginConfigManager
(ServerContext serverContext) Creates a new instance of this plugin config manager. -
Method Summary
Modifier and TypeMethodDescriptionapplyConfigurationAdd
(PluginCfg configuration) Adds a new configuration to this add listener.applyConfigurationChange
(PluginCfg configuration) Applies the configuration changes to this change listener.applyConfigurationDelete
(PluginCfg configuration) Deletes an existing configuration from this delete listener.void
Finalizes all plugins that are registered with the Directory Server.getRegisteredPlugin
(Dn pluginDN) Retrieves the plugin with the specified configuration entry DN.void
Initializes this plugin configuration manager.void
initializeUserPlugins
(Set<PluginType> pluginTypes) Initializes any plugins defined in the directory server configuration.void
invokeLDIFImportBeginPlugins
(LDIFImportConfig importConfig) Invokes the LDIF import session initialization of LDIF import plugins that have been configured in the Directory Server.void
invokeLDIFImportEndPlugins
(LDIFImportConfig importConfig) Invokes the LDIF import session finalization of LDIF import plugins that have been configured in the Directory Server.void
invokeLDIFImportPlugins
(LDIFImportConfig importConfig, Entry entry) Invokes the set of LDIF import plugins that have been configured in the Directory Server.void
invokePostCommitAddPlugins
(PostCommitAddOperation addOperation) Invokes the set of post-commit add plugins that have been configured in the Directory Server.void
invokePostCommitDeletePlugins
(PostCommitDeleteOperation deleteOperation) Invokes the set of post-commit delete plugins that have been configured in the Directory Server.void
invokePostCommitModifyDNPlugins
(PostCommitModifyDNOperation modifyDNOperation) Invokes the set of post-commit modify DN plugins that have been configured in the Directory Server.void
invokePostCommitModifyPlugins
(PostCommitModifyOperation modifyOperation) Invokes the set of post-commit modify plugins that have been configured in the Directory Server.void
invokePostConnectPlugins
(ClientConnection clientConnection) Invokes the set of post-connect plugins that have been configured in the Directory Server.void
invokePostDisconnectPlugins
(ClientConnection clientConnection, DisconnectReason disconnectReason, LocalizableMessage message) Invokes the set of post-disconnect plugins that have been configured in the Directory Server.void
invokePostOperationAbandonPlugins
(PostOperationAbandonOperation abandonOperation) Invokes the set of post-operation abandon plugins that have been configured in the Directory Server.void
invokePostOperationAddPlugins
(PostOperationAddOperation addOperation) Invokes the set of post-operation add plugins that have been configured in the Directory Server.void
invokePostOperationBindPlugins
(PostOperationBindOperation bindOperation) Invokes the set of post-operation bind plugins that have been configured in the Directory Server.void
invokePostOperationComparePlugins
(PostOperationCompareOperation compareOperation) Invokes the set of post-operation compare plugins that have been configured in the Directory Server.void
invokePostOperationDeletePlugins
(PostOperationDeleteOperation deleteOperation) Invokes the set of post-operation delete plugins that have been configured in the Directory Server.void
invokePostOperationExtendedPlugins
(PostOperationExtendedOperation extendedOperation) Invokes the set of post-operation extended plugins that have been configured in the Directory Server.void
invokePostOperationModifyDNPlugins
(PostOperationModifyDNOperation modifyDNOperation) Invokes the set of post-operation modify DN plugins that have been configured in the Directory Server.void
invokePostOperationModifyPlugins
(ModifyOperation modifyOperation) Invokes the set of post-operation modify plugins that have been configured in the Directory Server.void
invokePostOperationSearchPlugins
(PostOperationSearchOperation searchOperation) Invokes the set of post-operation search plugins that have been configured in the Directory Server.void
invokePostOperationUnbindPlugins
(PostOperationUnbindOperation unbindOperation) Invokes the set of post-operation unbind plugins that have been configured in the Directory Server.void
invokePostResponseAddPlugins
(PostResponseAddOperation addOperation) Invokes the set of post-response add plugins that have been configured in the Directory Server.void
invokePostResponseBindPlugins
(PostResponseBindOperation bindOperation) Invokes the set of post-response bind plugins that have been configured in the Directory Server.void
invokePostResponseComparePlugins
(PostResponseCompareOperation compareOperation) Invokes the set of post-response compare plugins that have been configured in the Directory Server.void
invokePostResponseDeletePlugins
(PostResponseDeleteOperation deleteOperation) Invokes the set of post-response delete plugins that have been configured in the Directory Server.void
invokePostResponseExtendedPlugins
(PostResponseExtendedOperation extendedOperation) Invokes the set of post-response extended plugins that have been configured in the Directory Server.void
invokePostResponseModifyDNPlugins
(PostResponseModifyDNOperation modifyDNOperation) Invokes the set of post-response modify DN plugins that have been configured in the Directory Server.void
invokePostResponseModifyPlugins
(PostResponseModifyOperation modifyOperation) Invokes the set of post-response modify plugins that have been configured in the Directory Server.void
invokePostResponseSearchPlugins
(PostResponseSearchOperation searchOperation) Invokes the set of post-response search plugins that have been configured in the Directory Server.void
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.void
invokePreOperationAddPlugins
(PreOperationAddOperation addOperation) Invokes the set of pre-operation add plugins that have been configured in the Directory Server.void
invokePreOperationBindPlugins
(PreOperationBindOperation bindOperation) Invokes the set of pre-operation bind plugins that have been configured in the Directory Server.void
invokePreOperationComparePlugins
(PreOperationCompareOperation compareOperation) Invokes the set of pre-operation compare plugins that have been configured in the Directory Server.void
invokePreOperationDeletePlugins
(PreOperationDeleteOperation deleteOperation) Invokes the set of pre-operation delete plugins that have been configured in the Directory Server.void
invokePreOperationExtendedPlugins
(PreOperationExtendedOperation extendedOperation) Invokes the set of pre-operation extended plugins that have been configured in the Directory Server.void
invokePreOperationModifyDNPlugins
(PreOperationModifyDNOperation modifyDNOperation) Invokes the set of pre-operation modify DN plugins that have been configured in the Directory Server.void
invokePreOperationModifyPlugins
(PreOperationModifyOperation modifyOperation) Invokes the set of pre-operation modify plugins that have been configured in the Directory Server.void
invokePreOperationSearchPlugins
(PreOperationSearchOperation searchOperation) Invokes the set of pre-operation search plugins that have been configured in the Directory Server.void
invokePreParseAbandonPlugins
(PreParseAbandonOperation abandonOperation) Invokes the set of pre-parse abandon plugins that have been configured in the Directory Server.void
invokePreParseAddPlugins
(PreParseAddOperation addOperation) Invokes the set of pre-parse add plugins that have been configured in the Directory Server.void
invokePreParseBindPlugins
(PreParseBindOperation bindOperation) Invokes the set of pre-parse bind plugins that have been configured in the Directory Server.void
invokePreParseComparePlugins
(PreParseCompareOperation compareOperation) Invokes the set of pre-parse compare plugins that have been configured in the Directory Server.void
invokePreParseDeletePlugins
(PreParseDeleteOperation deleteOperation) Invokes the set of pre-parse delete plugins that have been configured in the Directory Server.void
invokePreParseExtendedPlugins
(PreParseExtendedOperation extendedOperation) Invokes the set of pre-parse extended plugins that have been configured in the Directory Server.void
invokePreParseModifyDNPlugins
(PreParseModifyDNOperation modifyDNOperation) Invokes the set of pre-parse modify DN plugins that have been configured in the Directory Server.void
invokePreParseModifyPlugins
(PreParseModifyOperation modifyOperation) Invokes the set of pre-parse modify plugins that have been configured in the Directory Server.void
invokePreParseSearchPlugins
(PreParseSearchOperation searchOperation) Invokes the set of pre-parse search plugins that have been configured in the Directory Server.void
invokePreParseUnbindPlugins
(PreParseUnbindOperation unbindOperation) Invokes the set of pre-parse unbind plugins that have been configured in the Directory Server.boolean
invokeSearchResultEntryPlugins
(InProgressSearchOperation searchOperation, SearchResultEntry searchEntry) Invokes the set of search result entry plugins that have been configured in the Directory Server.boolean
invokeSearchResultReferencePlugins
(InProgressSearchOperation searchOperation, SearchResultReference searchReference) Invokes the set of search result reference plugins that have been configured in the Directory Server.void
Invokes the set of shutdown plugins that have been configured in the Directory Server.void
Invokes the set of startup plugins that have been registered with the Directory Server.void
invokeSubordinateDeletePlugins
(DeleteOperation deleteOperation, Dn entryDn, boolean isCommitted) Invokes the set of subordinate delete plugins that have been configured in the Directory Server.void
invokeSubordinateModifyDNPlugins
(SubordinateModifyDNOperation modifyDNOperation, Dn oldEntryDn, Dn newEntryDn) Invokes the set of subordinate modify DN plugins that have been configured in the Directory Server.boolean
isConfigurationAddAcceptable
(PluginCfg configuration, List<LocalizableMessage> unacceptableReasons) Indicates whether the proposed addition of a new configuration is acceptable to this add listener.boolean
isConfigurationChangeAcceptable
(PluginCfg configuration, List<LocalizableMessage> unacceptableReasons) Indicates whether the proposed change to the configuration is acceptable to this change listener.boolean
isConfigurationDeleteAcceptable
(PluginCfg configuration, List<LocalizableMessage> unacceptableReasons) Indicates whether the proposed deletion of an existing configuration is acceptable to this delete listener.
-
Constructor Details
-
PluginConfigManager
Creates a new instance of this plugin config manager.- Parameters:
serverContext
- The server context.
-
-
Method Details
-
initializePluginConfigManager
Initializes this plugin configuration manager. This should only be called at Directory Server startup and before user plugins are loaded.- Throws:
ConfigException
- If a critical configuration problem prevents the plugin initialization from succeeding.
-
initializeUserPlugins
Initializes any plugins defined in the directory server configuration. This should only be called at Directory Server startup and after this plugin configuration manager has been initialized.- Parameters:
pluginTypes
- The set of plugin types for the plugins to initialize, ornull
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.
-
finalizePlugins
public void finalizePlugins()Finalizes all plugins that are registered with the Directory Server. -
getRegisteredPlugin
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
Invokes the set of startup plugins that have been registered with the Directory Server.- Throws:
InitializationException
- If a startup plugin fails to start.
-
invokeShutdownPlugins
Invokes the set of shutdown plugins that have been configured in the Directory Server.- Parameters:
reason
- The human-readable reason for the shutdown.
-
invokePostConnectPlugins
Invokes the set of post-connect plugins that have been configured in the Directory Server.- Parameters:
clientConnection
- The client connection that has been established.- Throws:
DisconnectException
- if the connection should be rejected.
-
invokePostDisconnectPlugins
public void invokePostDisconnectPlugins(ClientConnection clientConnection, DisconnectReason disconnectReason, LocalizableMessage 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.
-
invokeLDIFImportPlugins
public void invokeLDIFImportPlugins(LDIFImportConfig importConfig, Entry entry) throws LdapException 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.- Throws:
LdapException
-
invokeLDIFImportEndPlugins
Invokes the LDIF import session finalization of LDIF import plugins that have been configured in the Directory Server.- Parameters:
importConfig
- The LDIF import configuration used for the LDIF import session.
-
invokeLDIFImportBeginPlugins
Invokes the LDIF import session initialization of LDIF import plugins that have been configured in the Directory Server.- Parameters:
importConfig
- The LDIF import configuration used for the LDIF import session.
-
invokePreParseAbandonPlugins
public void invokePreParseAbandonPlugins(PreParseAbandonOperation abandonOperation) throws LdapException 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.- Throws:
LdapException
- if the operation should be canceled.
-
invokePreParseAddPlugins
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.- Throws:
LdapException
- if the operation should be canceled.
-
invokePreParseBindPlugins
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.- Throws:
LdapException
- if the operation should be canceled.
-
invokePreParseComparePlugins
public void invokePreParseComparePlugins(PreParseCompareOperation compareOperation) throws LdapException 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.- Throws:
LdapException
- if the operation should be canceled.
-
invokePreParseDeletePlugins
public void invokePreParseDeletePlugins(PreParseDeleteOperation deleteOperation) throws LdapException 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.- Throws:
LdapException
- if the operation should be canceled.
-
invokePreParseExtendedPlugins
public void invokePreParseExtendedPlugins(PreParseExtendedOperation extendedOperation) throws LdapException 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.- Throws:
LdapException
- if the operation should be canceled.
-
invokePreParseModifyPlugins
public void invokePreParseModifyPlugins(PreParseModifyOperation modifyOperation) throws LdapException 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.- Throws:
LdapException
- if the operation should be canceled.
-
invokePreParseModifyDNPlugins
public void invokePreParseModifyDNPlugins(PreParseModifyDNOperation modifyDNOperation) throws LdapException 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.- Throws:
LdapException
- if the operation should be canceled.
-
invokePreParseSearchPlugins
public void invokePreParseSearchPlugins(PreParseSearchOperation searchOperation) throws LdapException 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.- Throws:
LdapException
- if the operation should be canceled.
-
invokePreParseUnbindPlugins
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.
-
invokePreOperationAddPlugins
public void invokePreOperationAddPlugins(PreOperationAddOperation addOperation) throws LdapException 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.- Throws:
LdapException
- if the operation should be canceled.
-
invokePreOperationBindPlugins
public void invokePreOperationBindPlugins(PreOperationBindOperation bindOperation) throws LdapException 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.- Throws:
LdapException
-
invokePreOperationComparePlugins
public void invokePreOperationComparePlugins(PreOperationCompareOperation compareOperation) throws LdapException 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.- Throws:
LdapException
- if the pre operation failed.
-
invokePreOperationDeletePlugins
public void invokePreOperationDeletePlugins(PreOperationDeleteOperation deleteOperation) throws LdapException 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.- Throws:
LdapException
- if the pre operation failed.
-
invokePreOperationExtendedPlugins
public void invokePreOperationExtendedPlugins(PreOperationExtendedOperation extendedOperation) throws LdapException 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.- Throws:
LdapException
- if the pre operation failed.
-
invokePreOperationModifyPlugins
public void invokePreOperationModifyPlugins(PreOperationModifyOperation modifyOperation) throws LdapException 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.- Throws:
LdapException
- if the pre operation failed.
-
invokePreOperationModifyDNPlugins
public void invokePreOperationModifyDNPlugins(PreOperationModifyDNOperation modifyDNOperation) throws LdapException 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.- Throws:
LdapException
- if the pre operation failed.
-
invokePreOperationSearchPlugins
public void invokePreOperationSearchPlugins(PreOperationSearchOperation searchOperation) throws LdapException 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.- Throws:
LdapException
- if the pre operation failed.
-
invokePostOperationAbandonPlugins
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.
-
invokePostOperationAddPlugins
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.
-
invokePostOperationBindPlugins
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.
-
invokePostOperationComparePlugins
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.
-
invokePostOperationDeletePlugins
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.
-
invokePostOperationExtendedPlugins
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.
-
invokePostOperationModifyPlugins
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.
-
invokePostOperationModifyDNPlugins
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.
-
invokePostOperationSearchPlugins
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.
-
invokePostOperationUnbindPlugins
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.
-
invokePostResponseAddPlugins
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.
-
invokePostResponseBindPlugins
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.
-
invokePostResponseComparePlugins
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.
-
invokePostResponseDeletePlugins
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.
-
invokePostResponseExtendedPlugins
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.
-
invokePostResponseModifyPlugins
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.
-
invokePostResponseModifyDNPlugins
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.
-
invokePostResponseSearchPlugins
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.
-
invokePostCommitAddPlugins
Invokes the set of post-commit add plugins that have been configured in the Directory Server.- Parameters:
addOperation
- The add operation for which to invoke the post-commit plugins.
-
invokePostCommitDeletePlugins
Invokes the set of post-commit delete plugins that have been configured in the Directory Server.- Parameters:
deleteOperation
- The delete operation for which to invoke the post-commit plugins.
-
invokePostCommitModifyPlugins
Invokes the set of post-commit modify plugins that have been configured in the Directory Server.- Parameters:
modifyOperation
- The modify operation for which to invoke the post-commit plugins.
-
invokePostCommitModifyDNPlugins
Invokes the set of post-commit modify DN plugins that have been configured in the Directory Server.- Parameters:
modifyDNOperation
- The modify DN operation for which to invoke the post-commit plugins.
-
invokePostSynchronizationAddPlugins
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 boolean invokeSearchResultEntryPlugins(InProgressSearchOperation searchOperation, SearchResultEntry searchEntry) throws LdapException 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.
- Throws:
LdapException
-
invokeSearchResultReferencePlugins
public boolean invokeSearchResultReferencePlugins(InProgressSearchOperation searchOperation, SearchResultReference searchReference) throws LdapException 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:
- whether the search reference can be sent to the client
- Throws:
LdapException
-
invokeSubordinateModifyDNPlugins
public void invokeSubordinateModifyDNPlugins(SubordinateModifyDNOperation modifyDNOperation, Dn oldEntryDn, Dn newEntryDn) throws LdapException 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.oldEntryDn
- The name of the subordinate entry prior to the move/rename operation.newEntryDn
- The name of the subordinate entry after the move/rename operation.- Throws:
LdapException
- if processing should stop.
-
invokeSubordinateDeletePlugins
public void invokeSubordinateDeletePlugins(DeleteOperation deleteOperation, Dn entryDn, boolean isCommitted) throws LdapException Invokes the set of subordinate delete plugins that have been configured in the Directory Server.- Parameters:
deleteOperation
- The delete operation with which the subordinate entry is associated.entryDn
- The name of the subordinate entry being deleted.isCommitted
-true
when a subtree delete cannot be done in a single isolated transaction. Each subordinate has already been deleted at the time this method is invoked.false
when a subtree delete can be done in a single isolated transaction. All the subordinate entries will effectively be deleted at once during the transaction commit. At which point, the deletion become effective only at the time of theDirectoryServerPlugin.doPostOperation(PostOperationDeleteOperation)
invocation.- Throws:
LdapException
- if processing should stop.
-
isConfigurationAddAcceptable
public boolean isConfigurationAddAcceptable(PluginCfg configuration, List<LocalizableMessage> unacceptableReasons) Description copied from interface:ConfigurationAddListener
Indicates whether the proposed addition of a new configuration is acceptable to this add listener.- Specified by:
isConfigurationAddAcceptable
in interfaceConfigurationAddListener<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, orfalse
if it is not.
-
applyConfigurationAdd
Description copied from interface:ConfigurationAddListener
Adds a new configuration to this add listener.- Specified by:
applyConfigurationAdd
in interfaceConfigurationAddListener<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, List<LocalizableMessage> unacceptableReasons) Description copied from interface:ConfigurationDeleteListener
Indicates whether the proposed deletion of an existing configuration is acceptable to this delete listener.- Specified by:
isConfigurationDeleteAcceptable
in interfaceConfigurationDeleteListener<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, orfalse
if it is not.
-
applyConfigurationDelete
Description copied from interface:ConfigurationDeleteListener
Deletes an existing configuration from this delete listener.- Specified by:
applyConfigurationDelete
in interfaceConfigurationDeleteListener<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, List<LocalizableMessage> unacceptableReasons) Description copied from interface:ConfigurationChangeListener
Indicates whether the proposed change to the configuration is acceptable to this change listener.- Specified by:
isConfigurationChangeAcceptable
in interfaceConfigurationChangeListener<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, orfalse
if it is not.
-
applyConfigurationChange
Description copied from interface:ConfigurationChangeListener
Applies the configuration changes to this change listener.- Specified by:
applyConfigurationChange
in interfaceConfigurationChangeListener<PluginCfg>
- Parameters:
configuration
- The new configuration containing the changes.- Returns:
- Returns information about the result of changing the configuration.
-