public interface RulesService
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.
|
void applyRules(String artifactId, ArtifactType artifactType, ContentHandle artifactContent, RuleApplicationType ruleApplicationType) throws RuleViolationException
artifactId
- artifactType
- artifactContent
- ruleApplicationType
- RuleViolationException
void applyRule(String artifactId, ArtifactType artifactType, ContentHandle artifactContent, RuleType ruleType, String ruleConfiguration, RuleApplicationType ruleApplicationType) throws RuleViolationException
artifactId
- artifactType
- artifactContent
- ruleType
- ruleConfiguration
- ruleApplicationType
- RuleViolationException
void applyRules(String artifactId, long artifactVersion, ArtifactType artifactType, ContentHandle updatedContent) throws RuleViolationException
artifactId
- artifactVersion
- artifactType
- updatedContent
- RuleViolationException
Copyright © 2020 Red Hat. All rights reserved.