Package de.xima.fc.form
Class FormProcessUtil
java.lang.Object
de.xima.fc.form.FormProcessUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckBotField(IExtendedFormRequestContext requestCtx) Methode zum Prüfen, ob das Bot-Feld ausgefüllt wurdestatic FormEingangcreateFormEingang(IFormRequestContext requestCtx, Vorgang v) Deprecated.static VorgangcreateVorgang(IFormRequestContext requestCtx) Deprecated.static XButtonDescriptordecodeSubmittedXfAction(String xfQualifier, String xfAction, FRQSession frqSession) static booleanstatic ValidatedButtonActionTakes 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 IFormRenderContextgetValidationContext(IFormRequestContext requestCtx) static IFormRenderContextgetValidationContext(IFormRequestContext requestCtx, XButtonDescriptor buttonDescriptor) static IXFormgetValidationForm(IFormRequestContext requestCtx) static VorgangprocessVorgang(IExtendedFormRequestContext requestCtx) Deprecated.static FormEingangupdateFormEingang(IFormRequestContext requestCtx, Vorgang v) Deprecated.static VorgangupdateVorgang(IFormRequestContext requestCtx) Deprecated.static booleanvalidate(IXForm xform, IXFormRenderConfig config, IExtendedFormRequestContext requestCtx) static booleanvalidate(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.PropertyExceptionjavax.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:
truewenn das Bot-Feld ausgefüllt wurde
-
decodeXfActionAndCheckIfValid
- Parameters:
requestCtx- Current request context used to submit the form.- Returns:
- Whether the submitted
xf-actionis 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-actionwith the button name.- Parameters:
requestCtx- Current request context used to submit the form.- Returns:
- ValidButtonActions with decoded submitted
xf-actionand Whether the submittedxf-actionis valid. If not, the form submission should be rejected.
-
decodeSubmittedXfAction
public static XButtonDescriptor decodeSubmittedXfAction(String xfQualifier, String xfAction, FRQSession frqSession)
-
FormPersistContextandFormPersistContextBuilder