Package org.opends.server.schema
Class CoreSchemaProvider
java.lang.Object
org.opends.server.schema.CoreSchemaProvider
- All Implemented Interfaces:
ConfigurationChangeListener<CoreSchemaCfg>,SchemaProvider<CoreSchemaCfg>
public final class CoreSchemaProvider
extends Object
implements SchemaProvider<CoreSchemaCfg>, ConfigurationChangeListener<CoreSchemaCfg>
Provides the core schema, which includes core matching rules and syntaxes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyConfigurationChange(CoreSchemaCfg configuration) Applies the configuration changes to this change listener.voidFinalize the provider.voidinitialize(ServerContext serverContext, CoreSchemaCfg configuration, SchemaBuilder initialSchemaBuilder) Initialize the schema provider from provided configuration and schema builder.booleanisConfigurationAcceptable(CoreSchemaCfg config, List<LocalizableMessage> unacceptableReasons) Indicates whether the provided configuration is acceptable for this provider.booleanisConfigurationChangeAcceptable(CoreSchemaCfg config, List<LocalizableMessage> unacceptableReasons) Indicates whether the proposed change to the configuration is acceptable to this change listener.
-
Constructor Details
-
CoreSchemaProvider
public CoreSchemaProvider()
-
-
Method Details
-
initialize
public void initialize(ServerContext serverContext, CoreSchemaCfg configuration, SchemaBuilder initialSchemaBuilder) Description copied from interface:SchemaProviderInitialize the schema provider from provided configuration and schema builder.- Specified by:
initializein interfaceSchemaProvider<CoreSchemaCfg>- Parameters:
serverContext- The server context.configuration- Configuration of the provider.initialSchemaBuilder- Schema builder to update during initialization phase.
-
finalizeProvider
public void finalizeProvider()Description copied from interface:SchemaProviderFinalize the provider.- Specified by:
finalizeProviderin interfaceSchemaProvider<CoreSchemaCfg>
-
isConfigurationAcceptable
public boolean isConfigurationAcceptable(CoreSchemaCfg config, List<LocalizableMessage> unacceptableReasons) Description copied from interface:SchemaProviderIndicates whether the provided configuration is acceptable for this provider.- Specified by:
isConfigurationAcceptablein interfaceSchemaProvider<CoreSchemaCfg>- Parameters:
config- The provider configuration for which to make the determination.unacceptableReasons- A list that may be used to hold the reasons that the provided configuration is not acceptable.- Returns:
trueif the provided configuration is acceptable for this provider, orfalseif not.
-
isConfigurationChangeAcceptable
public boolean isConfigurationChangeAcceptable(CoreSchemaCfg config, List<LocalizableMessage> unacceptableReasons) Description copied from interface:ConfigurationChangeListenerIndicates whether the proposed change to the configuration is acceptable to this change listener.- Specified by:
isConfigurationChangeAcceptablein interfaceConfigurationChangeListener<CoreSchemaCfg>- Parameters:
config- 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
trueif the proposed change is acceptable, orfalseif it is not.
-
applyConfigurationChange
Description copied from interface:ConfigurationChangeListenerApplies the configuration changes to this change listener.- Specified by:
applyConfigurationChangein interfaceConfigurationChangeListener<CoreSchemaCfg>- Parameters:
configuration- The new configuration containing the changes.- Returns:
- Returns information about the result of changing the configuration.
-