@ApplicationScoped public class RulesServiceImpl extends Object implements RulesService
RulesService
interface.Constructor and Description |
---|
RulesServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
applyRule(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 artifactId,
ArtifactType artifactType,
ContentHandle artifactContent,
RuleApplicationType ruleApplicationType)
Applies all configured rules to check whether a content update for an artifact is allowed.
|
public void applyRules(String artifactId, ArtifactType artifactType, ContentHandle artifactContent, RuleApplicationType ruleApplicationType) throws RuleViolationException
RulesService
applyRules
in interface RulesService
RuleViolationException
RulesService.applyRules(java.lang.String, io.apicurio.registry.types.ArtifactType, ContentHandle, io.apicurio.registry.rules.RuleApplicationType)
public void applyRule(String artifactId, ArtifactType artifactType, ContentHandle artifactContent, RuleType ruleType, String ruleConfiguration, RuleApplicationType ruleApplicationType) throws RuleViolationException
RulesService
Copyright © 2020 Red Hat. All rights reserved.