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
-
-
-
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
-
getValidationContext
public static IFormRenderContext getValidationContext(IFormRequestContext requestCtx, XButtonDescriptor buttonDescriptor) 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)
- 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.
-
-