Class SsotpFieldTemplate
java.lang.Object
org.bardframework.form.field.FieldTemplate<SsotpField>
org.bardframework.form.field.input.InputFieldTemplate<SsotpField,String>
org.bardframework.flow.form.field.input.FlowInputFieldTemplate<SsotpField,String>
org.bardframework.flow.form.field.input.otp.sendsms.SsotpFieldTemplate
-
Field Summary
Fields inherited from class org.bardframework.flow.form.field.input.FlowInputFieldTemplate
actionProcessorsFields inherited from class org.bardframework.form.field.input.InputFieldTemplate
descriptionShowType, disableExpression, persistentValue, valueProviderFields inherited from class org.bardframework.form.field.FieldTemplate
defaultValues, fieldClazz, log, name, showExpression -
Constructor Summary
ConstructorsConstructorDescriptionSsotpFieldTemplate(String name, OtpGenerator<String> otpGenerator, int maxTryToResolveCount, SsotpMessageReceiver ssotpMessageReceiver, FieldTemplate<?> identifierFieldTemplate) -
Method Summary
Modifier and TypeMethodDescriptionvoidfill(FormTemplate formTemplate, SsotpField field, Map<String, String> args, Locale locale) booleanvoidpreProcess(String flowToken, Map<String, String> flowData, Locale locale, jakarta.servlet.http.HttpServletResponse httpResponse) voidvalidate(String flowToken, FormTemplate formTemplate, Map<String, String> flowData, Map<String, String> formData, Locale locale, FormDataValidationException ex) Methods inherited from class org.bardframework.flow.form.field.input.FlowInputFieldTemplate
getActionProcessors, setActionProcessorsMethods inherited from class org.bardframework.form.field.input.InputFieldTemplate
getDescriptionShowType, getDisableExpression, getValidationOrder, getValueProvider, isPersistentValue, setDescriptionShowType, setDisableExpression, setPersistentValue, setValueProvider, validateMethods inherited from class org.bardframework.form.field.FieldTemplate
getDefaultValues, getEmptyField, getFieldClazz, getLog, getName, getShowExpression, mustShow, setDefaultValues, setLog, setShowExpression, toField
-
Constructor Details
-
SsotpFieldTemplate
public SsotpFieldTemplate(String name, OtpGenerator<String> otpGenerator, int maxTryToResolveCount, SsotpMessageReceiver ssotpMessageReceiver, FieldTemplate<?> identifierFieldTemplate)
-
-
Method Details
-
preProcess
public void preProcess(String flowToken, Map<String, String> flowData, Locale locale, jakarta.servlet.http.HttpServletResponse httpResponse) throws Exception- Overrides:
preProcessin classFlowInputFieldTemplate<SsotpField,String> - Throws:
Exception
-
validate
public void validate(String flowToken, FormTemplate formTemplate, Map<String, String> flowData, Map<String, throws ExceptionString> formData, Locale locale, FormDataValidationException ex) - Overrides:
validatein classInputFieldTemplate<SsotpField,String> - Throws:
Exception
-
fill
public void fill(FormTemplate formTemplate, SsotpField field, Map<String, String> args, Locale locale) throws Exception- Overrides:
fillin classInputFieldTemplate<SsotpField,String> - Throws:
Exception
-
isValid
public boolean isValid(String flowToken, SsotpField field, String value, Map<String, String> flowData) - Specified by:
isValidin classInputFieldTemplate<SsotpField,String>
-
toValue
- Specified by:
toValuein classInputFieldTemplate<SsotpField,String>
-