Package de.xima.fc.form
Class FormProcessUtil
java.lang.Object
de.xima.fc.form.FormProcessUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkBotField
(IExtendedFormRequestContext requestCtx) Methode zum Prüfen, ob das Bot-Feld ausgefüllt wurdestatic FormEingang
createFormEingang
(IFormRequestContext requestCtx, Vorgang v) Deprecated.static Vorgang
createVorgang
(IFormRequestContext requestCtx) Deprecated.static XButtonDescriptor
decodeSubmittedXfAction
(String xfQualifier, String xfAction, FRQSession frqSession) static boolean
static ValidatedButtonAction
Takes the submitted form value forxf-action
(a UUID) and checks whether the the form request session contains that action.getFormDataMap
(IFormRequestContext ctx, Vorgang v) Deprecated.static IFormRenderContext
getValidationContext
(IFormRequestContext requestCtx) static IFormRenderContext
getValidationContext
(IFormRequestContext requestCtx, XButtonDescriptor buttonDescriptor) static IXForm
getValidationForm
(IFormRequestContext requestCtx) static Vorgang
processVorgang
(IExtendedFormRequestContext requestCtx) Deprecated.static FormEingang
updateFormEingang
(IFormRequestContext requestCtx, Vorgang v) Deprecated.static Vorgang
updateVorgang
(IFormRequestContext requestCtx) Deprecated.static boolean
validate
(IXForm xform, IXFormRenderConfig config, IExtendedFormRequestContext requestCtx) static boolean
validate
(IXForm xform, IXFormRenderConfig config, IExtendedFormRequestContext requestCtx, IFormRenderContext renderCtx)
-
Constructor Details
-
FormProcessUtil
public FormProcessUtil()
-
-
Method Details
-
processVorgang
@Deprecated public static Vorgang processVorgang(IExtendedFormRequestContext requestCtx) throws javax.xml.bind.PropertyException, javax.xml.bind.ValidationException Deprecated.- Throws:
javax.xml.bind.PropertyException
javax.xml.bind.ValidationException
-
getFormDataMap
@Deprecated public static Map<String,List<String>> getFormDataMap(IFormRequestContext ctx, Vorgang v) Deprecated. -
createFormEingang
Deprecated. -
updateFormEingang
Deprecated. -
updateVorgang
@Deprecated public static Vorgang updateVorgang(IFormRequestContext requestCtx) throws javax.xml.bind.ValidationException Deprecated.- Throws:
javax.xml.bind.ValidationException
-
createVorgang
@Deprecated public static Vorgang createVorgang(IFormRequestContext requestCtx) throws javax.xml.bind.ValidationException Deprecated.- Throws:
javax.xml.bind.ValidationException
-
getValidationForm
- Throws:
Exception
-
getValidationContext
public static IFormRenderContext getValidationContext(IFormRequestContext requestCtx) throws Exception - Throws:
Exception
-
getValidationContext
public static IFormRenderContext getValidationContext(IFormRequestContext requestCtx, XButtonDescriptor buttonDescriptor) throws Exception - Throws:
Exception
-
validate
public static boolean validate(IXForm xform, IXFormRenderConfig config, IExtendedFormRequestContext requestCtx) -
validate
public static boolean validate(IXForm xform, IXFormRenderConfig config, IExtendedFormRequestContext requestCtx, IFormRenderContext renderCtx) -
checkBotField
Methode zum Prüfen, ob das Bot-Feld ausgefüllt wurde- Parameters:
requestCtx
-IExtendedFormRequestContext
- Returns:
true
wenn das Bot-Feld ausgefüllt wurde
-
decodeXfActionAndCheckIfValid
- Parameters:
requestCtx
- Current request context used to submit the form.- Returns:
- Whether the submitted
xf-action
is valid. If not, the form submission should be rejected.
-
getAndValidateButtonAction
public static ValidatedButtonAction getAndValidateButtonAction(IExtendedFormRequestContext requestCtx) Takes the submitted form value forxf-action
(a UUID) and checks whether the the form request session contains that action. If it does, replaces the submitted form valuexf-action
with the button name.- Parameters:
requestCtx
- Current request context used to submit the form.- Returns:
- ValidButtonActions with decoded submitted
xf-action
and Whether the submittedxf-action
is valid. If not, the form submission should be rejected.
-
decodeSubmittedXfAction
public static XButtonDescriptor decodeSubmittedXfAction(String xfQualifier, String xfAction, FRQSession frqSession)
-
FormPersistContext
andFormPersistContextBuilder