Package io.apicurio.registry.rules
Class RulesServiceImpl
- java.lang.Object
-
- io.apicurio.registry.rules.RulesServiceImpl
-
- All Implemented Interfaces:
RulesService
@ApplicationScoped public class RulesServiceImpl extends Object implements RulesService
Implements theRulesServiceinterface.- Author:
- Ales Justin, Jakub Senko 'jsenko@redhat.com'
-
-
Constructor Summary
Constructors Constructor Description RulesServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyRule(String groupId, String artifactId, ArtifactType artifactType, ContentHandle artifactContent, RuleType ruleType, String ruleConfiguration, RuleApplicationType ruleApplicationType)Applies a single, specific rule to the content update for the given artifact.voidapplyRules(String groupId, String artifactId, ArtifactType artifactType, ContentHandle artifactContent, RuleApplicationType ruleApplicationType)Applies all configured rules to check whether a content update for an artifact is allowed.voidapplyRules(String groupId, String artifactId, String artifactVersion, ArtifactType artifactType, ContentHandle updatedContent)Applies configured rules to the content update, relative to ANY artifact version.
-
-
-
Method Detail
-
applyRules
public void applyRules(String groupId, String artifactId, ArtifactType artifactType, ContentHandle artifactContent, RuleApplicationType ruleApplicationType) throws RuleViolationException
Description copied from interface:RulesServiceApplies all configured rules to check whether a content update for an artifact is allowed.
-
applyRule
public void applyRule(String groupId, String artifactId, ArtifactType artifactType, ContentHandle artifactContent, RuleType ruleType, String ruleConfiguration, RuleApplicationType ruleApplicationType) throws RuleViolationException
Description copied from interface:RulesServiceApplies a single, specific rule to the content update for the given artifact.- Specified by:
applyRulein interfaceRulesService- Throws:
RuleViolationException- See Also:
RulesService.applyRule(java.lang.String, java.lang.String, io.apicurio.registry.types.ArtifactType, io.apicurio.registry.content.ContentHandle, io.apicurio.registry.types.RuleType, java.lang.String, io.apicurio.registry.rules.RuleApplicationType)
-
applyRules
public void applyRules(String groupId, String artifactId, String artifactVersion, ArtifactType artifactType, ContentHandle updatedContent) throws RuleViolationException
Description copied from interface:RulesServiceApplies configured rules to the content update, relative to ANY artifact version.- Specified by:
applyRulesin interfaceRulesService- Throws:
RuleViolationException- See Also:
io.apicurio.registry.rules.RulesService#applyRules(java.lang.String, java.lang.String, long, io.apicurio.registry.types.ArtifactType, io.apicurio.registry.content.ContentHandle)
-
-