public class PluginConfigManager extends Object implements ConfigurationAddListener<PluginCfg>, ConfigurationDeleteListener<PluginCfg>, ConfigurationChangeListener<PluginCfg>
Constructor and Description |
---|
PluginConfigManager(ServerContext serverContext)
Creates a new instance of this plugin config manager.
|
Modifier and Type | Method and Description |
---|---|
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.
|
ConcurrentHashMap<DN,DirectoryServerPlugin<? extends PluginCfg>> |
getRegisteredPlugins()
Retrieves the set of plugins that have been registered with the Directory
Server.
|
void |
initializePluginConfigManager()
Initializes this plugin configuration manager.
|
void |
initializeUserPlugins(Set<PluginType> pluginTypes)
Initializes any plugins defined in the directory server
configuration.
|
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.
|
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.
|
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,
LocalizableMessage 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(SearchEntrySearchOperation searchOperation,
SearchResultEntry searchEntry)
Invokes the set of search result entry 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(LocalizableMessage 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.SubordinateDelete |
invokeSubordinateDeletePlugins(DeleteOperation deleteOperation,
Entry entry)
Invokes the set of subordinate delete plugins that have been configured
in the Directory Server.
|
PluginResult.SubordinateModifyDN |
invokeSubordinateModifyDNPlugins(SubordinateModifyDNOperation modifyDNOperation,
Entry oldEntry,
Entry newEntry,
List<Modification> modifications)
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.
|
public PluginConfigManager(ServerContext serverContext)
serverContext
- The server context.public void initializePluginConfigManager() throws ConfigException
ConfigException
- If a critical configuration problem prevents the plugin
initialization from succeeding.public void initializeUserPlugins(Set<PluginType> pluginTypes) throws ConfigException, InitializationException
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).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.public void finalizePlugins()
public ConcurrentHashMap<DN,DirectoryServerPlugin<? extends PluginCfg>> getRegisteredPlugins()
public DirectoryServerPlugin getRegisteredPlugin(DN pluginDN)
pluginDN
- The DN of the configuration entry for the plugin to
retrieve.null
if there is no such
plugin.public PluginResult.Startup invokeStartupPlugins()
public void invokeShutdownPlugins(LocalizableMessage reason)
reason
- The human-readable reason for the shutdown.public PluginResult.PostConnect invokePostConnectPlugins(ClientConnection clientConnection)
clientConnection
- The client connection that has been established.public PluginResult.PostDisconnect invokePostDisconnectPlugins(ClientConnection clientConnection, DisconnectReason disconnectReason, LocalizableMessage message)
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.public PluginResult.ImportLDIF invokeLDIFImportPlugins(LDIFImportConfig importConfig, Entry entry)
importConfig
- The LDIF import configuration used to read the
associated entry.entry
- The entry that has been read from LDIF.public void invokeLDIFImportEndPlugins(LDIFImportConfig importConfig)
importConfig
- The LDIF import configuration used for the LDIF
import session.public void invokeLDIFImportBeginPlugins(LDIFImportConfig importConfig)
importConfig
- The LDIF import configuration used for the LDIF
import session.public PluginResult.ImportLDIF invokeLDIFExportPlugins(LDIFExportConfig exportConfig, Entry entry)
exportConfig
- The LDIF export configuration used to read the
associated entry.entry
- The entry that has been read from LDIF.public PluginResult.PreParse invokePreParseAbandonPlugins(PreParseAbandonOperation abandonOperation)
abandonOperation
- The abandon operation for which to invoke the
pre-parse plugins.public PluginResult.PreParse invokePreParseAddPlugins(PreParseAddOperation addOperation) throws CanceledOperationException
addOperation
- The add operation for which to invoke the pre-parse
plugins.CanceledOperationException
- if the operation should be canceled.public PluginResult.PreParse invokePreParseBindPlugins(PreParseBindOperation bindOperation)
bindOperation
- The bind operation for which to invoke the pre-parse
plugins.public PluginResult.PreParse invokePreParseComparePlugins(PreParseCompareOperation compareOperation) throws CanceledOperationException
compareOperation
- The compare operation for which to invoke the
pre-parse plugins.CanceledOperationException
- if the operation should be canceled.public PluginResult.PreParse invokePreParseDeletePlugins(PreParseDeleteOperation deleteOperation) throws CanceledOperationException
deleteOperation
- The delete operation for which to invoke the
pre-parse plugins.CanceledOperationException
- if the operation should be canceled.public PluginResult.PreParse invokePreParseExtendedPlugins(PreParseExtendedOperation extendedOperation) throws CanceledOperationException
extendedOperation
- The extended operation for which to invoke the
pre-parse plugins.CanceledOperationException
- if the operation should be canceled.public PluginResult.PreParse invokePreParseModifyPlugins(PreParseModifyOperation modifyOperation) throws CanceledOperationException
modifyOperation
- The modify operation for which to invoke the
pre-parse plugins.CanceledOperationException
- if the operation should be canceled.public PluginResult.PreParse invokePreParseModifyDNPlugins(PreParseModifyDNOperation modifyDNOperation) throws CanceledOperationException
modifyDNOperation
- The modify DN operation for which to invoke the
pre-parse plugins.CanceledOperationException
- if the operation should be canceled.public PluginResult.PreParse invokePreParseSearchPlugins(PreParseSearchOperation searchOperation) throws CanceledOperationException
searchOperation
- The search operation for which to invoke the
pre-parse plugins.CanceledOperationException
- if the operation should be canceled.public PluginResult.PreParse invokePreParseUnbindPlugins(PreParseUnbindOperation unbindOperation)
unbindOperation
- The unbind operation for which to invoke the
pre-parse plugins.public PluginResult.PreOperation invokePreOperationAddPlugins(PreOperationAddOperation addOperation) throws CanceledOperationException
addOperation
- The add operation for which to invoke the
pre-operation plugins.CanceledOperationException
- if the operation should be canceled.public PluginResult.PreOperation invokePreOperationBindPlugins(PreOperationBindOperation bindOperation)
bindOperation
- The bind operation for which to invoke the
pre-operation plugins.public PluginResult.PreOperation invokePreOperationComparePlugins(PreOperationCompareOperation compareOperation) throws CanceledOperationException
compareOperation
- The compare operation for which to invoke the
pre-operation plugins.CanceledOperationException
- if the operation should be canceled.public PluginResult.PreOperation invokePreOperationDeletePlugins(PreOperationDeleteOperation deleteOperation) throws CanceledOperationException
deleteOperation
- The delete operation for which to invoke the
pre-operation plugins.CanceledOperationException
- if the operation should be canceled.public PluginResult.PreOperation invokePreOperationExtendedPlugins(PreOperationExtendedOperation extendedOperation) throws CanceledOperationException
extendedOperation
- The extended operation for which to invoke the
pre-operation plugins.CanceledOperationException
- if the operation should be canceled.public PluginResult.PreOperation invokePreOperationModifyPlugins(PreOperationModifyOperation modifyOperation) throws CanceledOperationException
modifyOperation
- The modify operation for which to invoke the
pre-operation plugins.CanceledOperationException
- if the operation should be canceled.public PluginResult.PreOperation invokePreOperationModifyDNPlugins(PreOperationModifyDNOperation modifyDNOperation) throws CanceledOperationException
modifyDNOperation
- The modify DN operation for which to invoke the
pre-operation plugins.CanceledOperationException
- if the operation should be canceled.public PluginResult.PreOperation invokePreOperationSearchPlugins(PreOperationSearchOperation searchOperation) throws CanceledOperationException
searchOperation
- The search operation for which to invoke the
pre-operation plugins.CanceledOperationException
- if the operation should be canceled.public PluginResult.PostOperation invokePostOperationAbandonPlugins(PostOperationAbandonOperation abandonOperation)
abandonOperation
- The abandon operation for which to invoke the
post-operation plugins.public PluginResult.PostOperation invokePostOperationAddPlugins(PostOperationAddOperation addOperation)
addOperation
- The add operation for which to invoke the
post-operation plugins.public PluginResult.PostOperation invokePostOperationBindPlugins(PostOperationBindOperation bindOperation)
bindOperation
- The bind operation for which to invoke the
post-operation plugins.public PluginResult.PostOperation invokePostOperationComparePlugins(PostOperationCompareOperation compareOperation)
compareOperation
- The compare operation for which to invoke the
post-operation plugins.public PluginResult.PostOperation invokePostOperationDeletePlugins(PostOperationDeleteOperation deleteOperation)
deleteOperation
- The delete operation for which to invoke the
post-operation plugins.public PluginResult.PostOperation invokePostOperationExtendedPlugins(PostOperationExtendedOperation extendedOperation)
extendedOperation
- The extended operation for which to invoke the
post-operation plugins.public PluginResult.PostOperation invokePostOperationModifyPlugins(PostOperationModifyOperation modifyOperation)
modifyOperation
- The modify operation for which to invoke the
post-operation plugins.public PluginResult.PostOperation invokePostOperationModifyDNPlugins(PostOperationModifyDNOperation modifyDNOperation)
modifyDNOperation
- The modify DN operation for which to invoke the
post-operation plugins.public PluginResult.PostOperation invokePostOperationSearchPlugins(PostOperationSearchOperation searchOperation)
searchOperation
- The search operation for which to invoke the
post-operation plugins.public PluginResult.PostOperation invokePostOperationUnbindPlugins(PostOperationUnbindOperation unbindOperation)
unbindOperation
- The unbind operation for which to invoke the
post-operation plugins.public PluginResult.PostResponse invokePostResponseAddPlugins(PostResponseAddOperation addOperation)
addOperation
- The add operation for which to invoke the
post-response plugins.public PluginResult.PostResponse invokePostResponseBindPlugins(PostResponseBindOperation bindOperation)
bindOperation
- The bind operation for which to invoke the
post-response plugins.public PluginResult.PostResponse invokePostResponseComparePlugins(PostResponseCompareOperation compareOperation)
compareOperation
- The compare operation for which to invoke the
post-response plugins.public PluginResult.PostResponse invokePostResponseDeletePlugins(PostResponseDeleteOperation deleteOperation)
deleteOperation
- The delete operation for which to invoke the
post-response plugins.public PluginResult.PostResponse invokePostResponseExtendedPlugins(PostResponseExtendedOperation extendedOperation)
extendedOperation
- The extended operation for which to invoke the
post-response plugins.public PluginResult.PostResponse invokePostResponseModifyPlugins(PostResponseModifyOperation modifyOperation)
modifyOperation
- The modify operation for which to invoke the
post-response plugins.public PluginResult.PostResponse invokePostResponseModifyDNPlugins(PostResponseModifyDNOperation modifyDNOperation)
modifyDNOperation
- The modify DN operation for which to invoke the
post-response plugins.public PluginResult.PostResponse invokePostResponseSearchPlugins(PostResponseSearchOperation searchOperation)
searchOperation
- The search operation for which to invoke the
post-response plugins.public void invokePostSynchronizationAddPlugins(PostSynchronizationAddOperation addOperation)
addOperation
- The add operation for which to invoke the
post-synchronization plugins.public void invokePostSynchronizationDeletePlugins(PostSynchronizationDeleteOperation deleteOperation)
deleteOperation
- The delete operation for which to invoke the
post-synchronization plugins.public void invokePostSynchronizationModifyPlugins(PostSynchronizationModifyOperation modifyOperation)
modifyOperation
- The modify operation for which to invoke the
post-synchronization plugins.public void invokePostSynchronizationModifyDNPlugins(PostSynchronizationModifyDNOperation modifyDNOperation)
modifyDNOperation
- The modify DN operation for which to invoke the
post-synchronization plugins.public PluginResult.IntermediateResponse invokeSearchResultEntryPlugins(SearchEntrySearchOperation searchOperation, SearchResultEntry searchEntry)
searchOperation
- The search operation for which to invoke the
search result entry plugins.searchEntry
- The search result entry to be processed.public PluginResult.IntermediateResponse invokeSearchResultReferencePlugins(SearchReferenceSearchOperation searchOperation, SearchResultReference searchReference)
searchOperation
- The search operation for which to invoke the
search result reference plugins.searchReference
- The search result reference to be processed.public PluginResult.SubordinateModifyDN invokeSubordinateModifyDNPlugins(SubordinateModifyDNOperation modifyDNOperation, Entry oldEntry, Entry newEntry, List<Modification> modifications)
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.public PluginResult.SubordinateDelete invokeSubordinateDeletePlugins(DeleteOperation deleteOperation, Entry entry)
deleteOperation
- The delete operation with which the
subordinate entry is associated.entry
- The subordinate entry being deleted.public PluginResult.IntermediateResponse invokeIntermediateResponsePlugins(IntermediateResponse intermediateResponse)
intermediateResponse
- The intermediate response for which to invoke
the intermediate response plugins.public boolean isConfigurationAddAcceptable(PluginCfg configuration, List<LocalizableMessage> unacceptableReasons)
ConfigurationAddListener
isConfigurationAddAcceptable
in interface ConfigurationAddListener<PluginCfg>
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.true
if the proposed addition is acceptable,
or false
if it is not.public ConfigChangeResult applyConfigurationAdd(PluginCfg configuration)
ConfigurationAddListener
applyConfigurationAdd
in interface ConfigurationAddListener<PluginCfg>
configuration
- The configuration that will be added.public boolean isConfigurationDeleteAcceptable(PluginCfg configuration, List<LocalizableMessage> unacceptableReasons)
ConfigurationDeleteListener
isConfigurationDeleteAcceptable
in interface ConfigurationDeleteListener<PluginCfg>
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.true
if the proposed deletion is acceptable,
or false
if it is not.public ConfigChangeResult applyConfigurationDelete(PluginCfg configuration)
ConfigurationDeleteListener
applyConfigurationDelete
in interface ConfigurationDeleteListener<PluginCfg>
configuration
- The existing configuration that will be deleted.public boolean isConfigurationChangeAcceptable(PluginCfg configuration, List<LocalizableMessage> unacceptableReasons)
ConfigurationChangeListener
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<PluginCfg>
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.true
if the proposed change is acceptable,
or false
if it is not.public ConfigChangeResult applyConfigurationChange(PluginCfg configuration)
ConfigurationChangeListener
applyConfigurationChange
in interface ConfigurationChangeListener<PluginCfg>
configuration
- The new configuration containing the changes.Copyright 2010-2017 ForgeRock AS.