Class CaptchaFieldTemplate
java.lang.Object
org.bardframework.form.field.FieldTemplate<CaptchaField>
org.bardframework.form.field.input.InputFieldTemplateAbstract<CaptchaField,String>
org.bardframework.flow.form.field.input.FlowInputFieldTemplate<CaptchaField,String>
org.bardframework.flow.form.field.input.otp.OtpFieldTemplate<CaptchaField,org.bardframework.commons.captcha.GeneratedCaptcha>
org.bardframework.flow.form.field.input.captcha.CaptchaFieldTemplate
public class CaptchaFieldTemplate
extends OtpFieldTemplate<CaptchaField,org.bardframework.commons.captcha.GeneratedCaptcha>
-
Field Summary
Fields inherited from class org.bardframework.flow.form.field.input.FlowInputFieldTemplate
actionProcessorsFields inherited from class org.bardframework.form.field.input.InputFieldTemplateAbstract
disableExpression, persistentValue, valueProviderFields inherited from class org.bardframework.form.field.FieldTemplate
defaultValue, fieldClazz, log, name, showExpression -
Constructor Summary
ConstructorsConstructorDescriptionCaptchaFieldTemplate(String name, OtpGenerator<org.bardframework.commons.captcha.GeneratedCaptcha> otpGenerator) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected Stringprotected Stringintprotected booleanprotected voidsend(String flowToken, Map<String, String> flowData, org.bardframework.commons.captcha.GeneratedCaptcha generatedCaptcha, Locale locale, jakarta.servlet.http.HttpServletResponse httpResponse) Methods inherited from class org.bardframework.flow.form.field.input.otp.OtpFieldTemplate
fill, isValid, resend, sendInternal, toValueMethods inherited from class org.bardframework.flow.form.field.input.FlowInputFieldTemplate
preProcessMethods inherited from class org.bardframework.form.field.input.InputFieldTemplateAbstract
getDisableExpression, getValueProvider, isPersistentValue, setDisableExpression, setPersistentValue, setValueProvider, validate, validateMethods inherited from class org.bardframework.form.field.FieldTemplate
getDefaultValue, getEmptyField, getFieldClazz, getLog, getName, getShowExpression, mustShow, setDefaultValue, setLog, setShowExpression, toField
-
Constructor Details
-
CaptchaFieldTemplate
public CaptchaFieldTemplate(String name, OtpGenerator<org.bardframework.commons.captcha.GeneratedCaptcha> otpGenerator)
-
-
Method Details
-
send
protected void send(String flowToken, Map<String, String> flowData, org.bardframework.commons.captcha.GeneratedCaptcha generatedCaptcha, Locale locale, jakarta.servlet.http.HttpServletResponse httpResponse) throws Exception- Specified by:
sendin classOtpFieldTemplate<CaptchaField,org.bardframework.commons.captcha.GeneratedCaptcha> - Throws:
Exception
-
isValidOtp
protected boolean isValidOtp(String flowToken, String captcha, Map<String, String> flowData) throws Exception- Specified by:
isValidOtpin classOtpFieldTemplate<CaptchaField,org.bardframework.commons.captcha.GeneratedCaptcha> - Throws:
Exception
-
getResendAction
- Specified by:
getResendActionin classOtpFieldTemplate<CaptchaField,org.bardframework.commons.captcha.GeneratedCaptcha>
-
getValidationOrder
public int getValidationOrder()- Overrides:
getValidationOrderin classInputFieldTemplateAbstract<CaptchaField,String>
-
getOtpMaxTryToResolveCountErrorMessage
- Specified by:
getOtpMaxTryToResolveCountErrorMessagein classOtpFieldTemplate<CaptchaField,org.bardframework.commons.captcha.GeneratedCaptcha>
-
getMaxSendCountErrorMessage
- Specified by:
getMaxSendCountErrorMessagein classOtpFieldTemplate<CaptchaField,org.bardframework.commons.captcha.GeneratedCaptcha>
-