public class DefaultSeverityThresholdAwareCheckerImpl extends java.lang.Object implements SeverityThresholdAwareChecker
SeverityThresholdAwareChecker filter.| Constructor and Description |
|---|
DefaultSeverityThresholdAwareCheckerImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsViolationsOfSeverity(java.util.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(java.util.List<java.lang.Class<? extends Payload>> order)
provided list of the payloads defines allowed values, but also hierarchy from less to most important severity
|
void |
setThresholdLevel(java.lang.Class<? extends Payload> threshold)
TODO: apidoc
|
public DefaultSeverityThresholdAwareCheckerImpl()
public boolean containsViolationsOfSeverity(java.util.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(java.util.List<java.lang.Class<? extends Payload>> order)
public void setThresholdLevel(java.lang.Class<? extends Payload> threshold)
Copyright © 2018 SAP SE. All Rights Reserved.