Class MandatoryFieldError

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.MandatoryFieldError
All Implemented Interfaces:
Serializable, org.springframework.context.MessageSourceResolvable

public class MandatoryFieldError extends CSticRelatedFieldError
A mandatory field error is a specific validation error indicating that on value was maintained on the UI for a cstic that is flagged mandatory by the configuration engine.
In contrast to other validation errors, it is still safe to send user input causing a mandatory field error to the configuration engine, hence it is treated within CPQ more like a 'warning'.
Object is immutable.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    MandatoryFieldError(CsticData cstic, String path, String rejectedValue, String[] errorCodes, String defaultMessage)
    Default constructor.
  • Method Summary

    Methods inherited from class de.hybris.platform.sap.productconfig.frontend.validator.CSticRelatedFieldError

    equals, getCstic, hashCode

    Methods inherited from class org.springframework.validation.FieldError

    getField, getRejectedValue, isBindingFailure, toString

    Methods inherited from class org.springframework.validation.ObjectError

    contains, getObjectName, unwrap, wrap

    Methods inherited from class org.springframework.context.support.DefaultMessageSourceResolvable

    getArguments, getCode, getCodes, getDefaultMessage, resolvableToString, shouldRenderDefaultMessage

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MandatoryFieldError

      public MandatoryFieldError(CsticData cstic, String path, String rejectedValue, String[] errorCodes, String defaultMessage)
      Default constructor.
      Parameters:
      cstic - cstic causing the error
      path - path to the UI field causing the error
      rejectedValue - user input causing the error
      errorCodes - error codes
      defaultMessage - message to be displayed on the UI