Interface FormProcessorBuilder<T>
-
public interface FormProcessorBuilder<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FormProcessor<T>
build()
Returns an FormProcessor built from parameters set on this builder.Object[]
getAdditionalSupportedArguments()
ContentServicesClient
getContentServicesClient()
T
getFormBean()
Class<T>
getFormClass()
String
getFormGuid()
MessageSource
getMessageSource()
Validator
getValidator()
FormProcessorBuilder<T>
withAdditionalSupportedArguments(Object... additionalSupportedArguments)
Add additional objects that may be used as arguments in @IKBBefore/After injected methods.FormProcessorBuilder
withFormGuid(String formGuid)
Specify Form GUID to store on documents.FormProcessorBuilder
withMessageSource(MessageSource messageSource)
Explicitly add a message source accessor for resolving properties.FormProcessorBuilder
withValidator(Validator validator)
Add a validator to use during custom validation using @Validate callback.
-
-
-
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
withIKB$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()
-
getAdditionalSupportedArguments
Object[] getAdditionalSupportedArguments()
-
getContentServicesClient
ContentServicesClient getContentServicesClient()
-
getMessageSource
MessageSource getMessageSource()
-
getValidator
Validator getValidator()
-
-