Class ConflictError
java.lang.Object
org.springframework.context.support.DefaultMessageSourceResolvable
org.springframework.validation.ObjectError
org.springframework.validation.FieldError
de.hybris.platform.sap.productconfig.frontend.validator.CSticRelatedFieldError
de.hybris.platform.sap.productconfig.frontend.validator.ConflictError
- All Implemented Interfaces:
Serializable,org.springframework.context.MessageSourceResolvable
A conflict error is a specific validation error indicating that the value of the cstic is in conflict with another
cstic value.
Technical a conflict is not limited to be caused by exactly two cstics. It is also possible that only one or more than 2 cstics are participating in the conflict. However 2 cstics participating is the typical case.
In contrast to other validation errors, it is still safe to send user input causing a conflict error to the configuration engine, hence it is treated within CPQ more like a 'warning'.
Object is immutable.
Technical a conflict is not limited to be caused by exactly two cstics. It is also possible that only one or more than 2 cstics are participating in the conflict. However 2 cstics participating is the typical case.
In contrast to other validation errors, it is still safe to send user input causing a conflict error to the configuration engine, hence it is treated within CPQ more like a 'warning'.
Object is immutable.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.hybris.platform.sap.productconfig.frontend.validator.CSticRelatedFieldError
equals, getCstic, hashCodeMethods inherited from class org.springframework.validation.FieldError
getField, getRejectedValue, isBindingFailure, toStringMethods inherited from class org.springframework.validation.ObjectError
contains, getObjectName, unwrap, wrapMethods inherited from class org.springframework.context.support.DefaultMessageSourceResolvable
getArguments, getCode, getCodes, getDefaultMessage, resolvableToString, shouldRenderDefaultMessage
-
Constructor Details
-
ConflictError
public ConflictError(CsticData cstic, String path, String rejectedValue, String[] errorCodes, String defaultMessage) Default constructor.- Parameters:
cstic- cstic causing the errorpath- path to the UI field causing the errorrejectedValue- user input causing the errorerrorCodes- error codesdefaultMessage- message to be displayed on the UI
-