Interface FormProcessorBuilder<T>


  • public interface FormProcessorBuilder<T>
    • Method Detail

      • withAdditionalSupportedArguments

        FormProcessorBuilder<T> withAdditionalSupportedArguments​(Object... additionalSupportedArguments)
        Add additional objects that may be used as arguments in @IKBBefore/After injected methods. Arguments are resolved by TYPE (not name)
        Parameters:
        additionalSupportedArguments -
        Returns:
        builder
      • withMessageSource

        FormProcessorBuilder withMessageSource​(MessageSource messageSource)
        Explicitly add a message source accessor for resolving properties. Used when localizing Field Errors returned when a Binding Error occurs. By default the formProcessor will lookup MessageSource with the same base name as the form bean class.

        As an alternative you may annotate a method in the form bean with @MessageSourceProvider.

        Parameters:
        messageSource -
        Returns:
        builder
        See Also:
        MessageSourceProvider
      • withValidator

        FormProcessorBuilder withValidator​(Validator validator)
        Add a validator to use during custom validation using @Validate callback.
        Parameters:
        validator -
        Returns:
        builder
      • withFormGuid

        FormProcessorBuilder withFormGuid​(String formGuid)
        Specify Form GUID to store on documents.

        @AttributeMapping with IKB$FORM in formBean will override.

        You may manually remove IKB$FORM in @BeforeInsert/@BeforeUpdate or using custom save @Insert/@Update.

        Parameters:
        formGuid -
        Returns:
        builder
      • build

        FormProcessor<T> build()
        Returns an FormProcessor built from parameters set on this builder.
        Returns:
        a FormProcessor built from parameters set on this builder
      • getFormBean

        T getFormBean()
      • getFormGuid

        String getFormGuid()
      • getFormClass

        Class<T> getFormClass()
      • getAdditionalSupportedArguments

        Object[] getAdditionalSupportedArguments()