Package de.xima.fc.form.identitytoken
Class IdentityTokenCheck
java.lang.Object
de.xima.fc.form.identitytoken.IdentityTokenCheck
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static IdentityTokenCheck
perform
(IEntityContext ec, IFormDataAdapter fda, Vorgang formRecord) static IdentityTokenCheck
perform
(IEntityContext ec, IFormRequestContext requestCtx) When enabled, an ID is generated based on the data of a submitted form.
-
Method Details
-
getCheckFailed
- Returns:
- Empty iff the identity token check succeeded. Otherwise, the type of error.
-
isCheckSkipped
public boolean isCheckSkipped()- Returns:
- Whether the identity token check was skipped because of an empty identity token or identity token template.
-
getNewToken
- Returns:
- The newly generated token. If the error is
EIdentityTokenFailure.GENERATE_MAX_LENGTH_EXCEEDED
, contains the invalid token. Blank for any other errors.
-
perform
When enabled, an ID is generated based on the data of a submitted form. The form submission is rejected when a form record with the same identity token exists already. This creates the identity token for the current form and checks whether a form records exists already.- Parameters:
ec
- Entity context for accessing the database.requestCtx
- Form request context for the new form data that was submitted.- Returns:
- The result of the identity token check.
-
perform
public static IdentityTokenCheck perform(IEntityContext ec, IFormDataAdapter fda, Vorgang formRecord)
-