public class CoreSchemaProvider extends Object implements SchemaProvider<CoreSchemaCfg>, ConfigurationChangeListener<CoreSchemaCfg>
| Constructor and Description |
|---|
CoreSchemaProvider() |
| Modifier and Type | Method and Description |
|---|---|
ConfigChangeResult |
applyConfigurationChange(CoreSchemaCfg configuration) |
void |
finalizeProvider()
Finalize the provider.
|
org.forgerock.opendj.ldap.schema.SchemaBuilder |
getSchema()
Returns the schema builder, as updated by this provider.
|
void |
initialize(CoreSchemaCfg configuration,
org.forgerock.opendj.ldap.schema.SchemaBuilder initialSchemaBuilder,
SchemaUpdater schemaUpdater)
Initialize the schema provider from provided configuration and schema
builder.
|
boolean |
isConfigurationAcceptable(CoreSchemaCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this
provider.
|
boolean |
isConfigurationChangeAcceptable(CoreSchemaCfg configuration,
List<LocalizableMessage> unacceptableReasons) |
public CoreSchemaProvider()
public void initialize(CoreSchemaCfg configuration, org.forgerock.opendj.ldap.schema.SchemaBuilder initialSchemaBuilder, SchemaUpdater schemaUpdater) throws ConfigException, InitializationException
initialize in interface SchemaProvider<CoreSchemaCfg>configuration - Configuration of the provider.initialSchemaBuilder - Schema builder to update during initialization phase.schemaUpdater - The updater to call when applying a configuration change.ConfigException - If a configuration problem arises in the process of performing
the initialization.InitializationException - If a problem that is not configuration-related occurs during
initialization.public void finalizeProvider()
finalizeProvider in interface SchemaProvider<CoreSchemaCfg>public boolean isConfigurationAcceptable(CoreSchemaCfg configuration, List<LocalizableMessage> unacceptableReasons)
isConfigurationAcceptable in interface SchemaProvider<CoreSchemaCfg>configuration - 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.true if the provided configuration is acceptable for this
provider, or false if not.public org.forgerock.opendj.ldap.schema.SchemaBuilder getSchema()
getSchema in interface SchemaProvider<CoreSchemaCfg>public boolean isConfigurationChangeAcceptable(CoreSchemaCfg configuration, List<LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable in interface ConfigurationChangeListener<CoreSchemaCfg>public ConfigChangeResult applyConfigurationChange(CoreSchemaCfg configuration)
applyConfigurationChange in interface ConfigurationChangeListener<CoreSchemaCfg>Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.