public class CoreSchemaProvider extends Object implements SchemaProvider<CoreSchemaCfg>, ConfigurationChangeListener<CoreSchemaCfg>
Constructor and Description |
---|
CoreSchemaProvider() |
Modifier and Type | Method and Description |
---|---|
ConfigChangeResult |
applyConfigurationChange(CoreSchemaCfg configuration)
Applies the configuration changes to this change listener.
|
void |
finalizeProvider()
Finalize the provider.
|
void |
initialize(ServerContext serverContext,
CoreSchemaCfg configuration,
SchemaBuilder initialSchemaBuilder)
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)
Indicates whether the proposed change to the configuration is acceptable
to this change listener.
|
public CoreSchemaProvider()
public void initialize(ServerContext serverContext, CoreSchemaCfg configuration, SchemaBuilder initialSchemaBuilder) throws ConfigException, InitializationException
SchemaProvider
initialize
in interface SchemaProvider<CoreSchemaCfg>
serverContext
- The server context.configuration
- Configuration of the provider.initialSchemaBuilder
- Schema builder to update during initialization phase.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<CoreSchemaCfg>
public boolean isConfigurationAcceptable(CoreSchemaCfg configuration, List<LocalizableMessage> unacceptableReasons)
SchemaProvider
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 boolean isConfigurationChangeAcceptable(CoreSchemaCfg configuration, List<LocalizableMessage> unacceptableReasons)
ConfigurationChangeListener
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<CoreSchemaCfg>
configuration
- The new configuration containing the changes.unacceptableReasons
- A list that can be used to hold messages about why the
provided configuration is not acceptable.true
if the proposed change is acceptable,
or false
if it is not.public ConfigChangeResult applyConfigurationChange(CoreSchemaCfg configuration)
ConfigurationChangeListener
applyConfigurationChange
in interface ConfigurationChangeListener<CoreSchemaCfg>
configuration
- The new configuration containing the changes.Copyright 2010-2017 ForgeRock AS.