public class DefaultSeverityThresholdAwareCheckerImpl extends Object implements SeverityThresholdAwareChecker
SeverityThresholdAwareChecker filter.| Constructor and Description |
|---|
DefaultSeverityThresholdAwareCheckerImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsViolationsOfSeverity(Set<HybrisConstraintViolation> orginalSet)
Returns
true if the set of HybrisConstraintViolation contains at least one violation with
threshold level equal or higher then defined
setThresholdLevel(Class) level using order as
setSeveritiesOrder(java.util.List). |
void |
setSeveritiesOrder(List<Class<? extends Payload>> order)
provided list of the payloads defines allowed values, but also hierarchy from less to most important severity
|
void |
setThresholdLevel(Class<? extends Payload> threshold)
TODO: apidoc
|
public DefaultSeverityThresholdAwareCheckerImpl()
public boolean containsViolationsOfSeverity(Set<HybrisConstraintViolation> orginalSet)
SeverityThresholdAwareCheckertrue if the set of HybrisConstraintViolation contains at least one violation with
threshold level equal or higher then defined
setThresholdLevel(Class) level using order as
setSeveritiesOrder(java.util.List).containsViolationsOfSeverity in interface SeverityThresholdAwareCheckerfalse otherwisepublic void setSeveritiesOrder(List<Class<? extends Payload>> order)
public void setThresholdLevel(Class<? extends Payload> threshold)
Copyright © 2017 SAP SE. All Rights Reserved.