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 theRulesService
interface.- 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 void
applyRule(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.void
applyRules(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.void
applyRules(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:RulesService
Applies 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:RulesService
Applies a single, specific rule to the content update for the given artifact.- Specified by:
applyRule
in 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:RulesService
Applies configured rules to the content update, relative to ANY artifact version.- Specified by:
applyRules
in 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)
-
-