Class FormRecordSubmission
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
de.xima.fc.entities.AbstractEntity
de.xima.fc.entities.AbstractLockableEntity
de.xima.fc.entities.FormRecordSubmission
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>, de.xima.cmn.dao.interfaces.ILockableEntity<Long>, ILockingVersionProviding, ITransferable, ITransferableEntity, ITransferableLockableEntity, Serializable, Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
Entity representing a form record submission. Form record submissions may occur in different
contexts (e.g. in the inbox, via form provide, in portal).- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersionFields inherited from class AbstractEntity
COL_ID, idFields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_IDFields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSIONFields inherited from interface ITransferableEntity
IMPORT_ID, INVALID_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidGets the form record data (= the submitted form data) of this submission.getId()Gets the name of the login service client that the user was authenticated with at the instant of submitting the form record.The language the form record was submitted in.A JSON string with user data of the user at the instant of submitting the form record.getUserData(String attributeName) com.alibaba.fastjson.JSONObjectGets the JSON object with user data of the user at the instant of submitting the form record.getUserDataString(String attributeName) Gets the ID of the user within the identity provider at the instant of submitting the form record.booleanisSubmitter(IUser user) Checks if the given user is the same as the user of this submission.booleanisSubmitter(IUserRef userRef) Checks if the given user reference is the same as the user reference of this submission.voidsetFormRecord(Vorgang formRecord) voidsetFormRecordData(FormEingang formRecordData) Gets the form record data (= the submitted form data) of this submission.voidsetFormRecordData(String formData, IUser user) voidsetSubmitContext(EFormRecordSubmitContext submitContext) voidsetSubmitContext(String submitContext) voidsetSubmitFrontendServer(FrontendServer submitFrontendServer) voidsetSubmitFrontendServerId(Long submitFrontendServerId) voidsetSubmitInstant(Instant submitInstant) voidsetSubmitLocale(Locale submitLanguage) voidsetSubmitServerBaseUrl(String submitServerBaseUrl) voidsetSubmitState(WorkflowState submitState) voidsetSubmitStateId(Long submitStateId) voidsetUniversalReferenceId(String universalReferenceId) Deprecated.voidvoidvoidsetUserData(com.alibaba.fastjson.JSONObject userData) A JSON object with user data of the user at the instant of submitting the form record.voidsetUserData(String userData) A JSON string with user data of the user at the instant of submitting the form record.voidsetUserProfileUuid(UUID userProfileUuid) Deprecated.UsesetUser(IUser)instead.Methods inherited from class AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toStringMethods inherited from class AbstractEntity
asIntValue, isPersisted, setId, setIdMethods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCodeMethods inherited from interface Comparable
compareToMethods inherited from interface de.xima.cmn.dao.interfaces.IEntity
isPersisted, setId
-
Field Details
-
ATTR_FORM_RECORD
- See Also:
-
ATTR_FORM_RECORD_DATA
- See Also:
-
ATTR_UNIVERSAL_REFERENCE_ID
- See Also:
-
ATTR_SUBMIT_INSTANT
- See Also:
-
ATTR_SUBMIT_CONTEXT
- See Also:
-
ATTR_SUBMIT_FRONTEND_SERVER_ID
- See Also:
-
ATTR_SUBMIT_SERVER_BASE_URL
- See Also:
-
ATTR_SUBMIT_STATE_ID
- See Also:
-
ATTR_SUBMIT_LOCALE
- See Also:
-
ATTR_USER_PROFILE_UUID
- See Also:
-
ATTR_USER_DATA
- See Also:
-
COL_FORM_RECORD_ID
- See Also:
-
COL_SUBMIT_FRONTEND_SERVER_ID
- See Also:
-
COL_SUBMIT_SERVER_BASE_URL
- See Also:
-
COL_AUTH_REF
- See Also:
-
COL_SUBMIT_TIMESTAMP
- See Also:
-
COL_SUBMIT_CONTEXT
- See Also:
-
COL_SUBMIT_LOCALE
- See Also:
-
COL_SUBMIT_STATE_ID
- See Also:
-
COL_PROFILE_UUID
- See Also:
-
COL_USER_DATA
- See Also:
-
-
Constructor Details
-
FormRecordSubmission
public FormRecordSubmission()
-
-
Method Details
-
anonymize
public void anonymize() -
cloneBasics
-
getFormRecord
-
setFormRecord
-
getFormRecordData
Gets the form record data (= the submitted form data) of this submission. Note that this may be null, not all submissions store form data. If you wish to access the latest available form data, search for the latest submission with form data.- Returns:
- The form record data of this submission, or null if no form data is available.
-
setFormRecordData
Gets the form record data (= the submitted form data) of this submission. Note that this may be null, not all submissions store form data. If you wish to access the latest available form data, search for the latest submission with form data.- Parameters:
formRecordData- The form record data of this submission, or null if no form data is available.
-
getId
-
getLoginServiceClientName
Gets the name of the login service client that the user was authenticated with at the instant of submitting the form record.- Returns:
- The name of the login service client.
-
getSubmitContext
-
setSubmitContext
-
getSubmitLocale
The language the form record was submitted in. This can be null if the language is unknown.- Returns:
- The language the form record was submitted in.
-
setSubmitLocale
-
setSubmitContext
-
getSubmitFrontendServerId
-
setSubmitFrontendServerId
-
getSubmitInstant
-
setSubmitInstant
-
getSubmitServerBaseUrl
-
setSubmitServerBaseUrl
-
getSubmitStateId
-
setSubmitStateId
-
getUniversalReferenceId
-
setUniversalReferenceId
Deprecated.UsesetUser(IUser)instead.- See Also:
-
getUserData
A JSON string with user data of the user at the instant of submitting the form record.- Returns:
- The user data as a JSON string.
-
setUserData
A JSON string with user data of the user at the instant of submitting the form record.Use
setUser(IUser)instead.- Parameters:
userData- The user data as a JSON string.- See Also:
-
setUserData
public void setUserData(com.alibaba.fastjson.JSONObject userData) A JSON object with user data of the user at the instant of submitting the form record.Use
setUser(IUser)instead.- Parameters:
userData- The user data as a JSON object.- See Also:
-
getUserData
-
getUserDataJson
public com.alibaba.fastjson.JSONObject getUserDataJson()Gets the JSON object with user data of the user at the instant of submitting the form record.- Returns:
- A JSON object with the user data.
-
getUserDataString
-
getUserDisplayName
-
getUserEmail
-
getUserIdpId
Gets the ID of the user within the identity provider at the instant of submitting the form record.- Returns:
- The ID of the user within the identity provider.
-
getUserProfileUuid
-
setUserProfileUuid
Deprecated.UsesetUser(IUser)instead.- See Also:
-
isSubmitter
Checks if the given user is the same as the user of this submission.- Parameters:
user- The user to check.- Returns:
trueif the given user is the same as the user of this submission,falseotherwise.
-
isSubmitter
Checks if the given user reference is the same as the user reference of this submission.- Parameters:
userRef- The user reference to check.- Returns:
trueif the given user reference is the same as the user reference of this submission,falseotherwise.
-
setFormRecordData
-
setSubmitFrontendServer
-
setSubmitState
-
setUser
-
setUser
-
setUser(IUser)instead.