Package org.opends.server.schema
Class NameAndJsonQueryEqualityMatchingRuleProvider
java.lang.Object
org.opends.server.schema.NameAndJsonQueryEqualityMatchingRuleProvider
- All Implemented Interfaces:
ConfigurationChangeListener<NameAndJsonQueryEqualityMatchingRuleCfg>,SchemaProvider<NameAndJsonQueryEqualityMatchingRuleCfg>
public final class NameAndJsonQueryEqualityMatchingRuleProvider
extends Object
implements SchemaProvider<NameAndJsonQueryEqualityMatchingRuleCfg>, ConfigurationChangeListener<NameAndJsonQueryEqualityMatchingRuleCfg>
Allows users to configure custom a Name and JSON matching rule by declaring custom indexes for the JSON fields
of a Name and JSON attribute.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyConfigurationChange(NameAndJsonQueryEqualityMatchingRuleCfg configuration) Applies the configuration changes to this change listener.voidFinalize the provider.voidinitialize(ServerContext serverContext, NameAndJsonQueryEqualityMatchingRuleCfg configuration, SchemaBuilder initialSchemaBuilder) Initialize the schema provider from provided configuration and schema builder.booleanisConfigurationAcceptable(NameAndJsonQueryEqualityMatchingRuleCfg configuration, List<LocalizableMessage> unacceptableReasons) Indicates whether the provided configuration is acceptable for this provider.booleanisConfigurationChangeAcceptable(NameAndJsonQueryEqualityMatchingRuleCfg configuration, List<LocalizableMessage> unacceptableReasons) Indicates whether the proposed change to the configuration is acceptable to this change listener.
-
Constructor Details
-
NameAndJsonQueryEqualityMatchingRuleProvider
public NameAndJsonQueryEqualityMatchingRuleProvider()
-
-
Method Details
-
initialize
public void initialize(ServerContext serverContext, NameAndJsonQueryEqualityMatchingRuleCfg configuration, SchemaBuilder initialSchemaBuilder) throws ConfigException, InitializationException Description copied from interface:SchemaProviderInitialize the schema provider from provided configuration and schema builder.- Specified by:
initializein interfaceSchemaProvider<NameAndJsonQueryEqualityMatchingRuleCfg>- Parameters:
serverContext- The server context.configuration- Configuration of the provider.initialSchemaBuilder- Schema builder to update during initialization phase.- Throws:
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.
-
finalizeProvider
public void finalizeProvider()Description copied from interface:SchemaProviderFinalize the provider.- Specified by:
finalizeProviderin interfaceSchemaProvider<NameAndJsonQueryEqualityMatchingRuleCfg>
-
isConfigurationAcceptable
public boolean isConfigurationAcceptable(NameAndJsonQueryEqualityMatchingRuleCfg configuration, List<LocalizableMessage> unacceptableReasons) Description copied from interface:SchemaProviderIndicates whether the provided configuration is acceptable for this provider.- Specified by:
isConfigurationAcceptablein interfaceSchemaProvider<NameAndJsonQueryEqualityMatchingRuleCfg>- Parameters:
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.- Returns:
trueif the provided configuration is acceptable for this provider, orfalseif not.
-
isConfigurationChangeAcceptable
public boolean isConfigurationChangeAcceptable(NameAndJsonQueryEqualityMatchingRuleCfg configuration, List<LocalizableMessage> unacceptableReasons) Description copied from interface:ConfigurationChangeListenerIndicates whether the proposed change to the configuration is acceptable to this change listener.- Specified by:
isConfigurationChangeAcceptablein interfaceConfigurationChangeListener<NameAndJsonQueryEqualityMatchingRuleCfg>- Parameters:
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.- Returns:
- Returns
trueif the proposed change is acceptable, orfalseif it is not.
-
applyConfigurationChange
public ConfigChangeResult applyConfigurationChange(NameAndJsonQueryEqualityMatchingRuleCfg configuration) Description copied from interface:ConfigurationChangeListenerApplies the configuration changes to this change listener.- Specified by:
applyConfigurationChangein interfaceConfigurationChangeListener<NameAndJsonQueryEqualityMatchingRuleCfg>- Parameters:
configuration- The new configuration containing the changes.- Returns:
- Returns information about the result of changing the configuration.
-