T
- The type of provider configuration.public interface SchemaProvider<T extends org.forgerock.opendj.server.config.server.SchemaProviderCfg>
A schema provider must be able to update the provided SchemaBuilder
at initialization and to use the provided SchemaUpdater
to update the
schema on further configuration changes.
Modifier and Type | Method and Description |
---|---|
void |
finalizeProvider()
Finalize the provider.
|
org.forgerock.opendj.ldap.schema.SchemaBuilder |
getSchema()
Returns the schema builder, as updated by this provider.
|
void |
initialize(T configuration,
org.forgerock.opendj.ldap.schema.SchemaBuilder initialSchemaBuilder,
SchemaUpdater schemaUpdater)
Initialize the schema provider from provided configuration and schema
builder.
|
boolean |
isConfigurationAcceptable(T configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this
provider.
|
void initialize(T configuration, org.forgerock.opendj.ldap.schema.SchemaBuilder initialSchemaBuilder, SchemaUpdater schemaUpdater) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
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.void finalizeProvider()
boolean isConfigurationAcceptable(T configuration, List<LocalizableMessage> unacceptableReasons)
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.org.forgerock.opendj.ldap.schema.SchemaBuilder getSchema()
Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.