| Modifier and Type | Method and Description |
|---|---|
Set<CockpitValidationDescriptor> |
CockpitValidationService.convertToValidationDescriptors(Set<HybrisConstraintViolation> constraintViolations)
Convert to validation descriptors.
|
| Modifier and Type | Method and Description |
|---|---|
Set<CockpitValidationDescriptor> |
DefaultCockpitValidationService.convertToValidationDescriptors(Set<HybrisConstraintViolation> constraintViolations) |
| Modifier and Type | Method and Description |
|---|---|
protected Set<HybrisConstraintViolation> |
DisableRuleValidationTest.validate(String ruleId) |
protected Set<HybrisConstraintViolation> |
PriceRuleValidationTest.validate(String ruleId) |
protected Set<HybrisConstraintViolation> |
AbstractBundleValidationTest.validate(String bundleTemplateId,
String constraintGroupId)
Validate bundle template against given validation group.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ConfigurableHybrisConstraintViolation
Extends the violation interface by allowing to configure the original constraint violation.
|
| Modifier and Type | Method and Description |
|---|---|
Set<HybrisConstraintViolation> |
ValidationViolationException.getHybrisConstraintViolations()
Gets list of the Hybris violations wrappers for original
ConstraintViolation accessible by
getConstraintViolation(). |
| Constructor and Description |
|---|
ValidationViolationException(Set<HybrisConstraintViolation> constraintViolations)
Creates a new violation exception using given original violations.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
LocalizedAttributeConstraint.matchesNonLocalizedViolation(HybrisConstraintViolation violation) |
| Modifier and Type | Method and Description |
|---|---|
protected <T> void |
CustomMessageValidationTest.checkViolations(String expectedMessage,
Set<HybrisConstraintViolation> constraintViolations) |
protected <T> boolean |
CustomMessageValidationTest.doesMessageExist(String expectedMessage,
Set<HybrisConstraintViolation> constraintViolations) |
| Modifier and Type | Method and Description |
|---|---|
HybrisConstraintViolation |
ConstraintViolationFactory.createDefaultConstraintViolation(ConstraintViolation violation) |
HybrisConstraintViolation |
ConstraintViolationFactory.createLocalizedConstraintViolation(ConstraintViolation violation,
Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
<T> Set<HybrisConstraintViolation> |
ValidationService.validate(T object,
Class<?>... groups)
Validates the given
model or Pojo. |
<T> Set<HybrisConstraintViolation> |
ValidationService.validate(T object,
Collection<ConstraintGroupModel> groups)
Validates the given
model or Pojo. |
<T> Set<HybrisConstraintViolation> |
ValidationService.validateProperty(T object,
String propertyName,
Class<?>... groups)
Validates all constraints placed on the property of
object named propertyName. |
<T> Set<HybrisConstraintViolation> |
ValidationService.validateProperty(T object,
String propertyName,
Collection<ConstraintGroupModel> groups)
Validates all constraints placed on the property of
object named propertyName. |
<T> Set<HybrisConstraintViolation> |
ValidationService.validateValue(Class<T> beanType,
String propertyName,
Object value,
Class<?>... groups)
Validates all constraints placed on the property named
propertyName of the class
beanType would the property value be value. |
<T> Set<HybrisConstraintViolation> |
ValidationService.validateValue(Class<T> beanType,
String propertyName,
Object value,
Collection<ConstraintGroupModel> groups)
Validates all constraints placed on the property named
propertyName of the class
beanType would the property value be value
ConstraintViolation objects return null for ConstraintViolation#getRootBean() and
ConstraintViolation#getLeafBean() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SeverityThresholdAwareChecker.containsViolationsOfSeverity(Set<HybrisConstraintViolation> orginalSet)
Returns
true if the set of HybrisConstraintViolation contains at least one violation with
threshold level equal or higher then defined
DefaultSeverityThresholdAwareCheckerImpl.setThresholdLevel(Class) level using order as
DefaultSeverityThresholdAwareCheckerImpl.setSeveritiesOrder(java.util.List). |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultHybrisConstraintViolation
Implementation of interface
HybrisConstraintViolation. |
class |
LocalizedHybrisConstraintViolation |
| Modifier and Type | Method and Description |
|---|---|
HybrisConstraintViolation |
DefaultConstraintViolationFactory.createDefaultConstraintViolation(ConstraintViolation violation) |
HybrisConstraintViolation |
DefaultConstraintViolationFactory.createLocalizedConstraintViolation(ConstraintViolation violation,
Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
<T> Set<HybrisConstraintViolation> |
DefaultValidationService.validate(T object,
Class<?>... groups) |
<T> Set<HybrisConstraintViolation> |
DefaultValidationService.validate(T object,
Collection<ConstraintGroupModel> groups) |
<T> Set<HybrisConstraintViolation> |
DefaultValidationService.validateProperty(T object,
String propertyName,
Class<?>... groups) |
<T> Set<HybrisConstraintViolation> |
DefaultValidationService.validateProperty(T object,
String propertyName,
Collection<ConstraintGroupModel> groups) |
<T> Set<HybrisConstraintViolation> |
DefaultValidationService.validateValue(Class<T> beanType,
String propertyName,
Object value,
Class<?>... groups) |
<T> Set<HybrisConstraintViolation> |
DefaultValidationService.validateValue(Class<T> beanType,
String propertyName,
Object value,
Collection<ConstraintGroupModel> groups) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
DefaultSeverityThresholdAwareCheckerImpl.containsViolationsOfSeverity(Set<HybrisConstraintViolation> orginalSet) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
CommonIntegrationValidationTest.checkIfContains(List<CommonIntegrationValidationTest.ViolationComposite> expectedViolations,
Collection<HybrisConstraintViolation> gotViolations) |
Copyright © 2017 SAP SE. All Rights Reserved.