Package io.apicurio.registry.rules
Class RulesPropertiesImpl
- java.lang.Object
-
- io.apicurio.registry.rules.RulesPropertiesImpl
-
- All Implemented Interfaces:
RulesProperties
public class RulesPropertiesImpl extends Object implements RulesProperties
-
-
Constructor Summary
Constructors Constructor Description RulesPropertiesImpl(Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuleConfigurationDto
getDefaultGlobalRuleConfiguration(RuleType ruleType)
Get the default global RuleConfigurationDto for the supplied RuleType.List<RuleType>
getFilteredDefaultGlobalRules(List<RuleType> excludeRulesFilter)
Get the list of configured default global RuleType enums.boolean
isDefaultGlobalRuleConfigured(RuleType ruleType)
Whether the supplied RuleType has been configured as a global rule.
-
-
-
Constructor Detail
-
RulesPropertiesImpl
public RulesPropertiesImpl(Properties properties)
-
-
Method Detail
-
getFilteredDefaultGlobalRules
public List<RuleType> getFilteredDefaultGlobalRules(List<RuleType> excludeRulesFilter)
Description copied from interface:RulesProperties
Get the list of configured default global RuleType enums. A list of RuleType enums can be supplied that will be filtered out of the returned list.- Specified by:
getFilteredDefaultGlobalRules
in interfaceRulesProperties
- Parameters:
excludeRulesFilter
- a list of RuleType enums to filter from the returned list. If null, the entire configured list of default global RuleTypes is returned.- Returns:
- The list of configured default global RuleTypes with any matching the excludeRules list removed.
-
isDefaultGlobalRuleConfigured
public boolean isDefaultGlobalRuleConfigured(RuleType ruleType)
Description copied from interface:RulesProperties
Whether the supplied RuleType has been configured as a global rule.- Specified by:
isDefaultGlobalRuleConfigured
in interfaceRulesProperties
- Returns:
- true if the a default global rule has been configured for the supplied RuleType, false otherwise.
-
getDefaultGlobalRuleConfiguration
public RuleConfigurationDto getDefaultGlobalRuleConfiguration(RuleType ruleType)
Description copied from interface:RulesProperties
Get the default global RuleConfigurationDto for the supplied RuleType.- Specified by:
getDefaultGlobalRuleConfiguration
in interfaceRulesProperties
- Returns:
- The default global RuleConfigurationDto for the supplied RuleType or null if the RuleType has not been configured.
-
-