@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.
|
void |
applyRules(String artifactId,
long artifactVersion,
ArtifactType artifactType,
ContentHandle updatedContent)
Applies configured rules to the content update, relative to ANY artifact version.
|
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
public void applyRules(String artifactId, long artifactVersion, ArtifactType artifactType, ContentHandle updatedContent) throws RuleViolationException
RulesService
applyRules
in interface RulesService
RuleViolationException
RulesService.applyRules(java.lang.String, long, io.apicurio.registry.types.ArtifactType, ContentHandle)
Copyright © 2020 Red Hat. All rights reserved.