Class DefaultSeverityThresholdAwareCheckerImpl
java.lang.Object
de.hybris.platform.validation.services.impl.DefaultSeverityThresholdAwareCheckerImpl
- All Implemented Interfaces:
SeverityThresholdAwareChecker
public class DefaultSeverityThresholdAwareCheckerImpl
extends Object
implements SeverityThresholdAwareChecker
Default implementation of the
SeverityThresholdAwareChecker filter.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsViolationsOfSeverity(Set<HybrisConstraintViolation> orginalSet) Returnstrueif the set ofHybrisConstraintViolationcontains at least one violation with threshold level equal or higher then definedsetThresholdLevel(Class)level using order assetSeveritiesOrder(java.util.List).voidsetSeveritiesOrder(List<Class<? extends javax.validation.Payload>> order) provided list of the payloads defines allowed values, but also hierarchy from less to most important severityvoidsetThresholdLevel(Class<? extends javax.validation.Payload> threshold) TODO: apidoc
-
Constructor Details
-
DefaultSeverityThresholdAwareCheckerImpl
public DefaultSeverityThresholdAwareCheckerImpl()
-
-
Method Details
-
containsViolationsOfSeverity
Description copied from interface:SeverityThresholdAwareCheckerReturnstrueif the set ofHybrisConstraintViolationcontains at least one violation with threshold level equal or higher then definedsetThresholdLevel(Class)level using order assetSeveritiesOrder(java.util.List).- Specified by:
containsViolationsOfSeverityin interfaceSeverityThresholdAwareChecker- Returns:
falseotherwise
-
setSeveritiesOrder
provided list of the payloads defines allowed values, but also hierarchy from less to most important severity -
setThresholdLevel
TODO: apidoc
-