org.opends.server.admin.server
Interface ConfigurationAddListener<T extends Configuration>

Type Parameters:
T - The type of configuration that this listener should be notified about.
All Known Implementing Classes:
AccessLogger, AccountStatusNotificationHandlerConfigManager, AlertHandlerConfigManager, AttributeSyntaxConfigManager, BackendConfigManager, CertificateMapperConfigManager, ConnectionHandlerConfigManager, DebugLogger, EntryCacheConfigManager, EntryContainer.AttributeJEIndexCfgManager, EntryContainer.VLVJEIndexCfgManager, ErrorLogger, ExtendedOperationConfigManager, GroupManager, IdentityMapperConfigManager, KeyManagerProviderConfigManager, LoggerConfigManager, LogRetentionPolicyConfigManager, LogRotationPolicyConfigManager, MatchingRuleConfigManager, MonitorConfigManager, MultimasterReplication, NetworkGroupConfigManager, PasswordGeneratorConfigManager, PasswordPolicyConfigManager, PasswordStorageSchemeConfigManager, PasswordValidatorConfigManager, PluginConfigManager, ReplicationServerListener, RootDNConfigManager, SASLConfigManager, SynchronizationProviderConfigManager, TextDebugLogPublisher, TrustManagerProviderConfigManager, VirtualAttributeConfigManager, WorkflowConfigManager, WorkflowElementConfigManager

public interface ConfigurationAddListener<T extends Configuration>

This interface defines the methods that a Directory Server configurable component should implement if it wishes to be able to receive notifications when a new configuration is added.


Method Summary
 ConfigChangeResult applyConfigurationAdd(T configuration)
          Adds a new configuration to this add listener.
 boolean isConfigurationAddAcceptable(T configuration, java.util.List<Message> unacceptableReasons)
          Indicates whether the proposed addition of a new configuration is acceptable to this add listener.
 

Method Detail

isConfigurationAddAcceptable

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

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

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

Parameters:
configuration - The configuration that will be added.
Returns:
Returns information about the result of adding the configuration.