Class OtpSmsValidatorFieldTemplate
- java.lang.Object
-
- org.bardframework.form.field.FieldTemplate<F>
-
- org.bardframework.form.field.input.InputFieldTemplate<F,T>
-
- org.bardframework.flow.form.field.input.FlowInputFieldTemplate<TextField,String>
-
- org.bardframework.flow.form.field.input.otpsms.OtpSmsValidatorFieldTemplate
-
public class OtpSmsValidatorFieldTemplate extends FlowInputFieldTemplate<TextField,String>
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.context.MessageSourcemessageSource-
Fields inherited from class org.bardframework.flow.form.field.input.FlowInputFieldTemplate
actionProcessors, postProcessors, preProcessors
-
Fields inherited from class org.bardframework.form.field.input.InputFieldTemplate
persistentValue, valueProvider
-
Fields inherited from class org.bardframework.form.field.FieldTemplate
defaultValues, fieldClazz, LOGGER, name, showExpression
-
-
Constructor Summary
Constructors Constructor Description OtpSmsValidatorFieldTemplate(String name, MessageCreator messageCreator, MessageSenderSms messageSender, OtpGenerator otpGenerator, int maxTryToResolveCount, int maxResendOtpCount, int resendIntervalSeconds, String errorMessageCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfill(FormTemplate formTemplate, TextField field, Map<String,String> args, Locale locale, javax.servlet.http.HttpServletRequest httpRequest)org.springframework.context.MessageSourcegetMessageSource()StringgetResendAction()booleanisValid(TextField field, String value)voidsetMessageSource(org.springframework.context.MessageSource messageSource)voidsetResendAction(String resendAction)StringtoValue(String value)-
Methods inherited from class org.bardframework.flow.form.field.input.FlowInputFieldTemplate
getActionProcessors, getPostProcessors, getPreProcessors, setActionProcessors, setPostProcessors, setPreProcessors
-
Methods inherited from class org.bardframework.form.field.input.InputFieldTemplate
getValueProvider, isPersistentValue, setPersistentValue, setValueProvider, validate
-
Methods inherited from class org.bardframework.form.field.FieldTemplate
getDefaultValues, getEmptyField, getName, mustShow, setDefaultValues, setShowExpression, toField
-
-
-
-
Constructor Detail
-
OtpSmsValidatorFieldTemplate
public OtpSmsValidatorFieldTemplate(String name, MessageCreator messageCreator, MessageSenderSms messageSender, OtpGenerator otpGenerator, int maxTryToResolveCount, int maxResendOtpCount, int resendIntervalSeconds, String errorMessageCode)
-
-
Method Detail
-
fill
public void fill(FormTemplate formTemplate, TextField field, Map<String,String> args, Locale locale, javax.servlet.http.HttpServletRequest httpRequest) throws Exception
- Overrides:
fillin classInputFieldTemplate<TextField,String>- Throws:
Exception
-
isValid
public boolean isValid(TextField field, String value)
- Specified by:
isValidin classInputFieldTemplate<TextField,String>
-
toValue
public String toValue(String value)
- Specified by:
toValuein classInputFieldTemplate<TextField,String>
-
getResendAction
public String getResendAction()
-
setResendAction
public void setResendAction(String resendAction)
-
getMessageSource
public org.springframework.context.MessageSource getMessageSource()
-
setMessageSource
public void setMessageSource(org.springframework.context.MessageSource messageSource)
-
-