Package de.xima.fc.form
Class FormProcessUtil
- java.lang.Object
-
- de.xima.fc.form.FormProcessUtil
-
public class FormProcessUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description FormProcessUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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 boolean
decodeXfActionAndCheckIfValid(IExtendedFormRequestContext requestCtx)
Takes the submitted form value forxf-action
(a UUID) and checks whether the the form request session contains that action.static Map<String,List<String>>
getFormDataMap(IFormRequestContext ctx, Vorgang v)
Deprecated.static IFormRenderContext
getValidationContext(IFormRequestContext requestCtx)
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)
-
-
-
Method Detail
-
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 public static FormEingang createFormEingang(IFormRequestContext requestCtx, Vorgang v)
Deprecated.
-
updateFormEingang
@Deprecated public static FormEingang updateFormEingang(IFormRequestContext requestCtx, Vorgang v)
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
public static IXForm getValidationForm(IFormRequestContext requestCtx) throws Exception
- Throws:
Exception
-
getValidationContext
public static IFormRenderContext getValidationContext(IFormRequestContext requestCtx) throws Exception
- Throws:
Exception
-
validate
public static boolean validate(IXForm xform, IXFormRenderConfig config, IExtendedFormRequestContext requestCtx)
-
checkBotField
public static boolean checkBotField(IExtendedFormRequestContext requestCtx)
Methode zum Prüfen, ob das Bot-Feld ausgefüllt wurde- Parameters:
requestCtx
-IExtendedFormRequestContext
- Returns:
true
wenn das Bot-Feld ausgefüllt wurde
-
decodeXfActionAndCheckIfValid
public static boolean decodeXfActionAndCheckIfValid(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:
- Whether the submitted
xf-action
is valid. If not, the form submission should be rejected.
-
-