Package com.adobe.aemds.guide.model
Class ValidationOptions.ValidationOptionsBuilder
- java.lang.Object
-
- com.adobe.aemds.guide.model.ValidationOptions.ValidationOptionsBuilder
-
- Enclosing class:
- ValidationOptions
public static class ValidationOptions.ValidationOptionsBuilder extends java.lang.Object
Static helper class to build validation options. These validation options defines the basic options required to perform server side validation of an adaptive form- Since:
- 6.3
-
-
Constructor Summary
Constructors Constructor Description ValidationOptionsBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationOptions
build()
This will build theValidationOptions
object using the options provided in the setters.ValidationOptions.ValidationOptionsBuilder
setCaptchaData(java.lang.String captchaData)
Sets the captcha data to validate the captcha.ValidationOptions.ValidationOptionsBuilder
setContextPath(java.lang.String contextPath)
Sets the context path of the applicationValidationOptions.ValidationOptionsBuilder
setData(java.lang.String data)
Sets the submitted data of the adaptive form.ValidationOptions.ValidationOptionsBuilder
setFileAttachmentMap(java.lang.String fileAttachmentMap)
Sets the file attachment map to be used during validation of data on server sideValidationOptions.ValidationOptionsBuilder
setFormContainerResource(Resource formContainerResource)
Sets the adaptive form container resource against which server side validation is to be performedValidationOptions.ValidationOptionsBuilder
setLocale(java.lang.String locale)
Sets the locale to be used during validation of data on server sideValidationOptions.ValidationOptionsBuilder
setServerUrl(java.lang.String serverUrl)
Sets the server name to be used for conversion of relative to absolute URLValidationOptions.ValidationOptionsBuilder
setSomExpression(java.lang.String somExpression)
Sets the som expression to be used during validation of data on server side
-
-
-
Method Detail
-
setFormContainerResource
public ValidationOptions.ValidationOptionsBuilder setFormContainerResource(Resource formContainerResource)
Sets the adaptive form container resource against which server side validation is to be performed- Parameters:
formContainerResource
- adaptive form container resource against which validation would be performed.- Returns:
ValidationOptions.ValidationOptionsBuilder
validation options builder
-
setData
public ValidationOptions.ValidationOptionsBuilder setData(java.lang.String data)
Sets the submitted data of the adaptive form.- Parameters:
data
- String representing data of Adaptive form.- Returns:
ValidationOptions.ValidationOptionsBuilder
validation options builder
-
setCaptchaData
public ValidationOptions.ValidationOptionsBuilder setCaptchaData(java.lang.String captchaData)
Sets the captcha data to validate the captcha. This is optional and would depend on the existence of captcha component in an adaptive form.- Parameters:
captchaData
- Captcha data coming from request to validate captcha, which resides in the form.- Returns:
ValidationOptions.ValidationOptionsBuilder
validation options builder
-
setServerUrl
public ValidationOptions.ValidationOptionsBuilder setServerUrl(java.lang.String serverUrl)
Sets the server name to be used for conversion of relative to absolute URL- Parameters:
serverUrl
- host name/ip to be used for conversion of relative URL to absolute URL during server side validation.- Returns:
ValidationOptions.ValidationOptionsBuilder
validation options builder
-
setContextPath
public ValidationOptions.ValidationOptionsBuilder setContextPath(java.lang.String contextPath)
Sets the context path of the application- Parameters:
contextPath
- Context path for the application.- Returns:
ValidationOptions.ValidationOptionsBuilder
validation options builder
-
setLocale
public ValidationOptions.ValidationOptionsBuilder setLocale(java.lang.String locale)
Sets the locale to be used during validation of data on server side- Parameters:
locale
- locale- Returns:
ValidationOptions.ValidationOptionsBuilder
validation options builder
-
setFileAttachmentMap
public ValidationOptions.ValidationOptionsBuilder setFileAttachmentMap(java.lang.String fileAttachmentMap)
Sets the file attachment map to be used during validation of data on server side- Parameters:
fileAttachmentMap
- file attachment map- Returns:
ValidationOptions.ValidationOptionsBuilder
validation options builder
-
setSomExpression
public ValidationOptions.ValidationOptionsBuilder setSomExpression(java.lang.String somExpression)
Sets the som expression to be used during validation of data on server side- Parameters:
somExpression
- som expression (for example) to validate a panel, panel's som expression could be provided- Returns:
ValidationOptions.ValidationOptionsBuilder
validation options builder
-
build
public ValidationOptions build()
This will build theValidationOptions
object using the options provided in the setters.- Returns:
ValidationOptions
validation options
-
-