public class JsonSchemaProvider extends Object implements SchemaProvider<org.forgerock.opendj.server.config.server.JsonSchemaCfg>, org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.JsonSchemaCfg>
Constructor and Description |
---|
JsonSchemaProvider() |
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(org.forgerock.opendj.server.config.server.JsonSchemaCfg configuration) |
void |
finalizeProvider()
Finalize the provider.
|
void |
initialize(ServerContext serverContext,
org.forgerock.opendj.server.config.server.JsonSchemaCfg configuration,
org.forgerock.opendj.ldap.schema.SchemaBuilder initialSchemaBuilder)
Initialize the schema provider from provided configuration and schema builder.
|
boolean |
isConfigurationAcceptable(org.forgerock.opendj.server.config.server.JsonSchemaCfg config,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this provider.
|
boolean |
isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.JsonSchemaCfg config,
List<LocalizableMessage> unacceptableReasons) |
public void initialize(ServerContext serverContext, org.forgerock.opendj.server.config.server.JsonSchemaCfg configuration, org.forgerock.opendj.ldap.schema.SchemaBuilder initialSchemaBuilder) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
SchemaProvider
initialize
in interface SchemaProvider<org.forgerock.opendj.server.config.server.JsonSchemaCfg>
serverContext
- The server context.configuration
- Configuration of the provider.initialSchemaBuilder
- Schema builder to update during initialization phase.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()
SchemaProvider
finalizeProvider
in interface SchemaProvider<org.forgerock.opendj.server.config.server.JsonSchemaCfg>
public boolean isConfigurationAcceptable(org.forgerock.opendj.server.config.server.JsonSchemaCfg config, List<LocalizableMessage> unacceptableReasons)
SchemaProvider
isConfigurationAcceptable
in interface SchemaProvider<org.forgerock.opendj.server.config.server.JsonSchemaCfg>
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.true
if the provided configuration is acceptable for this provider, or false
if not.public boolean isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.JsonSchemaCfg config, List<LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.JsonSchemaCfg>
public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(org.forgerock.opendj.server.config.server.JsonSchemaCfg configuration)
applyConfigurationChange
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.JsonSchemaCfg>
Copyright © 2010–2017 ForgeRock AS. All rights reserved.