public class IdentityTokenGeneration extends Object
Modifier and Type | Method and Description |
---|---|
Optional<EIdentityTokenFailure> |
getGenerationFailed() |
String |
getToken() |
boolean |
isGenerationSkipped() |
static IdentityTokenGeneration |
perform(IEntityContext ec,
IFormDataAdapter fda,
FormVersion formVersion,
Projekt project)
When enabled, an ID is generated based on the data of a submitted form.
|
public Optional<EIdentityTokenFailure> getGenerationFailed()
public boolean isGenerationSkipped()
public String getToken()
EIdentityTokenFailure.GENERATE_MAX_LENGTH_EXCEEDED
, this
contains the invalid token. Empty for any other error.public static IdentityTokenGeneration perform(IEntityContext ec, IFormDataAdapter fda, FormVersion formVersion, Projekt project)
ec
- Entity context for accessing the database.fda
- Form data adapter for the form version.formVersion
- The form version for which to generate the identity token.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.