public class CoreSchemaProvider extends Object implements SchemaProvider<org.forgerock.opendj.server.config.server.CoreSchemaCfg>, org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.CoreSchemaCfg>
Constructor and Description |
---|
CoreSchemaProvider() |
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(org.forgerock.opendj.server.config.server.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(org.forgerock.opendj.server.config.server.CoreSchemaCfg configuration,
org.forgerock.opendj.ldap.schema.SchemaBuilder initialSchemaBuilder,
SchemaUpdater schemaUpdater)
Initialize the schema provider from provided configuration and schema
builder.
|
boolean |
isConfigurationAcceptable(org.forgerock.opendj.server.config.server.CoreSchemaCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this
provider.
|
boolean |
isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.CoreSchemaCfg configuration,
List<LocalizableMessage> unacceptableReasons) |
public CoreSchemaProvider()
public void initialize(org.forgerock.opendj.server.config.server.CoreSchemaCfg configuration, org.forgerock.opendj.ldap.schema.SchemaBuilder initialSchemaBuilder, SchemaUpdater schemaUpdater) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
initialize
in interface SchemaProvider<org.forgerock.opendj.server.config.server.CoreSchemaCfg>
configuration
- Configuration of the provider.initialSchemaBuilder
- Schema builder to update during initialization phase.schemaUpdater
- The updater to call when applying a configuration change.org.forgerock.opendj.config.server.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<org.forgerock.opendj.server.config.server.CoreSchemaCfg>
public boolean isConfigurationAcceptable(org.forgerock.opendj.server.config.server.CoreSchemaCfg configuration, List<LocalizableMessage> unacceptableReasons)
isConfigurationAcceptable
in interface SchemaProvider<org.forgerock.opendj.server.config.server.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<org.forgerock.opendj.server.config.server.CoreSchemaCfg>
public boolean isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.CoreSchemaCfg configuration, List<LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.CoreSchemaCfg>
public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(org.forgerock.opendj.server.config.server.CoreSchemaCfg configuration)
applyConfigurationChange
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.CoreSchemaCfg>
Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.