Package org.opends.server.schema
Class JsonEqualityMatchingRuleProvider
- java.lang.Object
-
- org.opends.server.schema.JsonEqualityMatchingRuleProvider
-
- All Implemented Interfaces:
ConfigurationChangeListener<JsonEqualityMatchingRuleCfg>,SchemaProvider<JsonEqualityMatchingRuleCfg>
public final class JsonEqualityMatchingRuleProvider extends Object implements SchemaProvider<JsonEqualityMatchingRuleCfg>, ConfigurationChangeListener<JsonEqualityMatchingRuleCfg>
Allows users to configure JSON matching rules.
-
-
Constructor Summary
Constructors Constructor Description JsonEqualityMatchingRuleProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigChangeResultapplyConfigurationChange(JsonEqualityMatchingRuleCfg configuration)Applies the configuration changes to this change listener.voidfinalizeProvider()Finalize the provider.voidinitialize(ServerContext serverContext, JsonEqualityMatchingRuleCfg configuration, SchemaBuilder initialSchemaBuilder)Initialize the schema provider from provided configuration and schema builder.booleanisConfigurationAcceptable(JsonEqualityMatchingRuleCfg config, List<LocalizableMessage> unacceptableReasons)Indicates whether the provided configuration is acceptable for this provider.booleanisConfigurationChangeAcceptable(JsonEqualityMatchingRuleCfg config, List<LocalizableMessage> unacceptableReasons)Indicates whether the proposed change to the configuration is acceptable to this change listener.
-
-
-
Method Detail
-
initialize
public void initialize(ServerContext serverContext, JsonEqualityMatchingRuleCfg configuration, SchemaBuilder initialSchemaBuilder) throws ConfigException
Description copied from interface:SchemaProviderInitialize the schema provider from provided configuration and schema builder.- Specified by:
initializein interfaceSchemaProvider<JsonEqualityMatchingRuleCfg>- 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.
-
finalizeProvider
public void finalizeProvider()
Description copied from interface:SchemaProviderFinalize the provider.- Specified by:
finalizeProviderin interfaceSchemaProvider<JsonEqualityMatchingRuleCfg>
-
isConfigurationAcceptable
public boolean isConfigurationAcceptable(JsonEqualityMatchingRuleCfg config, List<LocalizableMessage> unacceptableReasons)
Description copied from interface:SchemaProviderIndicates whether the provided configuration is acceptable for this provider.- Specified by:
isConfigurationAcceptablein interfaceSchemaProvider<JsonEqualityMatchingRuleCfg>- 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:
trueif the provided configuration is acceptable for this provider, orfalseif not.
-
isConfigurationChangeAcceptable
public boolean isConfigurationChangeAcceptable(JsonEqualityMatchingRuleCfg config, 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<JsonEqualityMatchingRuleCfg>- 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
trueif the proposed change is acceptable, orfalseif it is not.
-
applyConfigurationChange
public ConfigChangeResult applyConfigurationChange(JsonEqualityMatchingRuleCfg configuration)
Description copied from interface:ConfigurationChangeListenerApplies the configuration changes to this change listener.- Specified by:
applyConfigurationChangein interfaceConfigurationChangeListener<JsonEqualityMatchingRuleCfg>- Parameters:
configuration- The new configuration containing the changes.- Returns:
- Returns information about the result of changing the configuration.
-
-