Class UserPreferencesErrors

    • Method Detail

      • getErrors

        public Errors getErrors​(String fieldId)
        Get the errors for a single field.
        Parameters:
        fieldId - the field ID.
        Returns:
        the field errors.
      • setErrors

        public void setErrors​(Map<String,​Errors> errors)
        Set the errors.
        Parameters:
        errors - the errors to set
      • addError

        public void addError​(String fieldId,
                             I18nizableText error)
        Add an error.
        Parameters:
        fieldId - the field ID.
        error - the error message.
      • addErrors

        public void addErrors​(String fieldId,
                              List<I18nizableText> errors)
        Add an error list.
        Parameters:
        fieldId - the field ID.
        errors - the error messages.
      • hasErrors

        public boolean hasErrors()
        Tests if the form has errors.
        Returns:
        true if there are errors, false otherwise.