Class DefaultSeverityThresholdAwareCheckerImpl
- java.lang.Object
-
- de.hybris.platform.validation.services.impl.DefaultSeverityThresholdAwareCheckerImpl
-
- All Implemented Interfaces:
SeverityThresholdAwareChecker
public class DefaultSeverityThresholdAwareCheckerImpl extends java.lang.Object implements SeverityThresholdAwareChecker
Default implementation of theSeverityThresholdAwareCheckerfilter.
-
-
Constructor Summary
Constructors Constructor Description DefaultSeverityThresholdAwareCheckerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsViolationsOfSeverity(java.util.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(java.util.List<java.lang.Class<? extends javax.validation.Payload>> order)provided list of the payloads defines allowed values, but also hierarchy from less to most important severityvoidsetThresholdLevel(java.lang.Class<? extends javax.validation.Payload> threshold)TODO: apidoc
-
-
-
Method Detail
-
containsViolationsOfSeverity
public boolean containsViolationsOfSeverity(java.util.Set<HybrisConstraintViolation> orginalSet)
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
public void setSeveritiesOrder(java.util.List<java.lang.Class<? extends javax.validation.Payload>> order)
provided list of the payloads defines allowed values, but also hierarchy from less to most important severity
-
setThresholdLevel
public void setThresholdLevel(java.lang.Class<? extends javax.validation.Payload> threshold)
TODO: apidoc
-
-