Package org.opends.server.schema
Class JsonQueryEqualityMatchingRuleProvider
java.lang.Object
org.opends.server.schema.JsonQueryEqualityMatchingRuleProvider
- All Implemented Interfaces:
ConfigurationChangeListener<JsonQueryEqualityMatchingRuleCfg>
,SchemaProvider<JsonQueryEqualityMatchingRuleCfg>
public final class JsonQueryEqualityMatchingRuleProvider
extends Object
implements SchemaProvider<JsonQueryEqualityMatchingRuleCfg>, ConfigurationChangeListener<JsonQueryEqualityMatchingRuleCfg>
Allows users to configure custom JSON matching rules and indexing.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplyConfigurationChange
(JsonQueryEqualityMatchingRuleCfg configuration) Applies the configuration changes to this change listener.void
Finalize the provider.void
initialize
(ServerContext serverContext, JsonQueryEqualityMatchingRuleCfg configuration, SchemaBuilder initialSchemaBuilder) Initialize the schema provider from provided configuration and schema builder.boolean
isConfigurationAcceptable
(JsonQueryEqualityMatchingRuleCfg config, List<LocalizableMessage> unacceptableReasons) Indicates whether the provided configuration is acceptable for this provider.boolean
isConfigurationChangeAcceptable
(JsonQueryEqualityMatchingRuleCfg config, List<LocalizableMessage> unacceptableReasons) Indicates whether the proposed change to the configuration is acceptable to this change listener.
-
Constructor Details
-
JsonQueryEqualityMatchingRuleProvider
public JsonQueryEqualityMatchingRuleProvider()
-
-
Method Details
-
initialize
public void initialize(ServerContext serverContext, JsonQueryEqualityMatchingRuleCfg configuration, SchemaBuilder initialSchemaBuilder) Description copied from interface:SchemaProvider
Initialize the schema provider from provided configuration and schema builder.- Specified by:
initialize
in interfaceSchemaProvider<JsonQueryEqualityMatchingRuleCfg>
- Parameters:
serverContext
- The server context.configuration
- Configuration of the provider.initialSchemaBuilder
- Schema builder to update during initialization phase.
-
finalizeProvider
public void finalizeProvider()Description copied from interface:SchemaProvider
Finalize the provider.- Specified by:
finalizeProvider
in interfaceSchemaProvider<JsonQueryEqualityMatchingRuleCfg>
-
isConfigurationAcceptable
public boolean isConfigurationAcceptable(JsonQueryEqualityMatchingRuleCfg config, List<LocalizableMessage> unacceptableReasons) Description copied from interface:SchemaProvider
Indicates whether the provided configuration is acceptable for this provider.- Specified by:
isConfigurationAcceptable
in interfaceSchemaProvider<JsonQueryEqualityMatchingRuleCfg>
- Parameters:
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.- Returns:
true
if the provided configuration is acceptable for this provider, orfalse
if not.
-
isConfigurationChangeAcceptable
public boolean isConfigurationChangeAcceptable(JsonQueryEqualityMatchingRuleCfg config, List<LocalizableMessage> unacceptableReasons) Description copied from interface:ConfigurationChangeListener
Indicates whether the proposed change to the configuration is acceptable to this change listener.- Specified by:
isConfigurationChangeAcceptable
in interfaceConfigurationChangeListener<JsonQueryEqualityMatchingRuleCfg>
- Parameters:
config
- The new configuration containing the changes.unacceptableReasons
- A list that can be used to hold messages about why the provided configuration is not acceptable.- Returns:
- Returns
true
if the proposed change is acceptable, orfalse
if it is not.
-
applyConfigurationChange
Description copied from interface:ConfigurationChangeListener
Applies the configuration changes to this change listener.- Specified by:
applyConfigurationChange
in interfaceConfigurationChangeListener<JsonQueryEqualityMatchingRuleCfg>
- Parameters:
configuration
- The new configuration containing the changes.- Returns:
- Returns information about the result of changing the configuration.
-