Package de.xima.fc.entities
Class Vorgang
- java.lang.Object
-
- de.xima.cmn.dao.model.AEntity<Long>
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>
,de.xima.cmn.dao.interfaces.ILockableEntity<Long>
,ILockingVersionProviding
,IMandantDependent
,IProjektDependent
,ITransferable
,ITransferableEntity
,ITransferableLockableEntity
,IUUIDEntity
,Serializable
,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
@Entity public class Vorgang extends AClientDependentEntity implements IProjektDependent, IUUIDEntity
A form record (Vorgang) is a record of aform
submission. When a form is submitted initially, a new form record is created. Users may open an existing form record, edit its data, and submit it again.A form record is identified by its
UUID
, also called process ID. It is globally unique among all projects and clients, and identifies the form record in the system.Each form record is associated with a
workflow state
, which represents business logic and defines the possible actions that can be taken on the form record.The
submissions
store a list of all form record submissions. Each time a user submits a form, a new form record submission is created. Each form submission contains some metadata such as the user who submitted the form, and also references theform data
for all form fields.- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.xima.fc.entities.AClientDependentEntity
COL_CLIENTID, mandant
-
Fields inherited from class de.xima.fc.entities.AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersion
-
Fields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, id
-
Fields inherited from interface de.xima.fc.entities.interfaces.IMandantDependent
ATTR_MANDANT, COL_CLIENT_ID
-
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
-
Fields inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID
-
-
Constructor Summary
Constructors Constructor Description Vorgang()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addAttachment(Attachment attachment)
void
addChild(Vorgang vorgang)
Deprecated.void
addFormeingang(FormEingang formeingang)
Deprecated.void
addSubmission(IUser user, EFormRecordSubmitContext submitContext, FrontendServer submitFrontendServer, String submitServerBaseUrl, String formData, boolean newDataEntry)
Adds a new submission to the form record.void
clearOldWorkflowState()
List<Attachment>
getAttachments()
Benutzer
getBearbeiter()
Deprecated.String
getBearbeiterRef()
Deprecated.List<FormRecordChat>
getChats()
List<Vorgang>
getChildren()
Deprecated.Can be extremely slow !!! Use query withATTR_PARENT_ID
as filtercom.alibaba.fastjson.JSONObject
getCreatorData()
protected String
getCreatorDataString()
Deprecated.UsegetInitialSubmission()
instead.UUID
getCreatorProfileUuid()
Deprecated.String
getCreatorRef()
FormEingang
getCurrentFormeingang()
Postfach
getCurrentPostfach()
Status
getCurrentStatus()
Deprecated.Use thegetCurrentWorkflowState()
together with the new workflow engine.WorkflowState
getCurrentWorkflowState()
Map<String,String>
getCustomAttributes()
com.alibaba.fastjson.JSONObject
getEditorData()
protected String
getEditorDataString()
Deprecated.UsegetLastSubmission()
instead.UUID
getEditorProfileUuid()
Deprecated.String
getEditorRef()
Date
getEingangsDatum()
Benutzer
getErsteller()
Deprecated.String
getErstellerRef()
Deprecated.int
getFehlerAnzahl()
List<FormEingang>
getFormeingaenge()
Deprecated.FormVersion
getFormVersion()
Long
getFrontendserver_id()
Deprecated.UseFormRecordSubmission.getSubmitFrontendServerId()
instead.Long
getId()
String
getIdentityToken()
FormRecordSubmission
getInitialSubmission()
Date
getLastStatusChangeDate()
FormRecordSubmission
getLastSubmission()
Status
getNewStatus()
Deprecated.WorkflowState
getOldWorkflowState()
Long
getParentId()
Vorgang
getParentVorgang()
Deprecated.usegetParentId()
Projekt
getProjekt()
String
getProzessId()
String
getQuellserver()
Deprecated.UseFormRecordSubmission.getSubmitServerBaseUrl()
instead.String
getSubject()
List<FormRecordSubmission>
getSubmissions()
String
getUUID()
Gets the UUID of this form record.UUID
getUUIDObject()
Gets the UUID of this form record.Date
getVerifyExpireDate()
String
getVerifyUUID()
WorkflowVersion
getWorkflowVersion()
boolean
isGelesen()
boolean
isHasDateChanged()
boolean
isHasWorkflowStateChanged()
boolean
isInArbeit()
boolean
isLoeschbar()
Vorgänge sind löschbar, wenn der Status, in dem sie sich befinden, das Löschen von Vorgängen erlaubt.boolean
isSaved()
boolean
isStatusChangeRead()
Deprecated.boolean
isUsesNewWorkflow()
boolean
isVerifyLock()
void
removeAttachment(Attachment attachment)
void
removeChild(Vorgang vorgang)
Deprecated.void
removeFormeingang(FormEingang formeingang)
Deprecated.void
setAttachments(List<Attachment> attachments)
void
setBearbeiter(Benutzer bearbeiter)
Deprecated.void
setBearbeiterRef(String bearbeiterRef)
Deprecated.void
setChats(List<FormRecordChat> chats)
void
setChildren(List<Vorgang> children)
Deprecated.Can be extremely slow !!! Use query withATTR_PARENT_ID
as filtervoid
setCreator(Benutzer creator)
Deprecated.UsesetCreator(IUser)
instead.void
setCreator(IUser creator)
Deprecated.void
setCreatorData(com.alibaba.fastjson.JSONObject creatorData)
Deprecated.UsegetInitialSubmission()
instead.protected void
setCreatorDataString(String creatorData)
Deprecated.UsegetInitialSubmission()
instead.void
setCreatorProfileUuid(UUID creatorProfileUuid)
Deprecated.void
setCreatorRef(String creatorRef)
Deprecated.UsegetInitialSubmission()
instead.void
setCurrentFormeingang(FormEingang currentFormeingang)
Deprecated.void
setCurrentPostfach(Postfach currentPostfach)
void
setCurrentStatus(Status status)
Deprecated.Use thesetCurrentWorkflowState(WorkflowState)
together with the new workflow engine.void
setCurrentWorkflowState(WorkflowState currentWorkflowState)
Deprecated.For Hibernate only, in most cases you should usesetNewWorkflowState(WorkflowState)
.void
setCustomAttributes(Map<String,String> customAttributes)
void
setEditor(Benutzer editor)
Deprecated.UsesetEditor(IUser)
instead.void
setEditor(IUser editor)
Deprecated.void
setEditorData(com.alibaba.fastjson.JSONObject editorData)
Deprecated.UsegetLastSubmission()
instead.protected void
setEditorDataString(String editorData)
Deprecated.UsegetInitialSubmission()
instead.void
setEditorProfileUuid(UUID editorProfileUuid)
Deprecated.void
setEditorRef(String editorRef)
Deprecated.UsegetLastSubmission()
instead.void
setEingangsDatum(Date eingangsDatum)
Deprecated.For Hibernate only, in most cases you should usesetNewEingangsDatum(Date)
.void
setErsteller(Benutzer ersteller)
Deprecated.void
setErstellerRef(String erstellerRef)
Deprecated.void
setFehlerAnzahl(int fehlerAnzahl)
void
setFormData(String formData)
void
setFormeingaenge(List<FormEingang> formeingaenge)
Deprecated.void
setFormVersion(FormVersion formVersion)
void
setFrontendserver_id(Long quellserver_id)
Deprecated.void
setGelesen(boolean gelesen)
void
setId(Long id)
!!!WARNING: Currently values biggerInteger.MAX_VALUE
or lower thenInteger.MIN_VALUE
will be altered to null!!!void
setIdentityToken(String identityToken)
void
setInArbeit(boolean inArbeit)
void
setLastStatusChangeDate(Date lastStatusChangeDate)
Deprecated.For Hibernate only, in most cases you should usesetNewLastStatusChangeDate(Date)
.void
setNewEingangsDatum(Date newEingangsDatum)
Sets the new date when the form record was created and stores the info whether it was changed.void
setNewLastStatusChangeDate(Date newLastStatusChangeDate)
Sets the new date when the last status changed occurred and stores the info whether it was changed.void
setNewStatus(Status newStatus)
Deprecated.void
setNewWorkflowState(WorkflowState newWorkflowState)
Sets the new workflow state of this form record and stores the old workflow state.void
setNewWorkflowState(WorkflowState newWorkflowState, boolean forceUpdate)
Sets the new workflow state of this form record and stores the old workflow state.void
setParentId(Long parentId)
void
setParentVorgang(Vorgang parentVorgang)
Deprecated.void
setProjekt(Projekt projekt)
void
setProzessId(String uuid)
void
setQuellserver(String quellserver)
Deprecated.UseFormRecordSubmission.setSubmitServerBaseUrl(String)
instead.void
setSaved(boolean saved)
void
setStatusChangeRead(boolean statusChangeRead)
Deprecated.void
setSubject(String subject)
void
setSubmissions(List<FormRecordSubmission> submissions)
void
setUUID(String uuid)
Sets the UUID of this form record.void
setUUIDObject(UUID uuid)
Sets the UUID of this form record.void
setVerifyExpireDate(Date verifyExpireDate)
void
setVerifyLock(boolean lock)
void
setVerifyUUID(String verifyUUID)
void
setWorkflowVersion(WorkflowVersion workflowVersion)
String
toString()
-
Methods inherited from class de.xima.fc.entities.AClientDependentEntity
getMandant, setMandant
-
Methods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion
-
Methods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setId
-
Methods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
ATTR_EINGANGSDATUM
public static final String ATTR_EINGANGSDATUM
- See Also:
- Constant Field Values
-
ATTR_STATUS
public static final String ATTR_STATUS
- See Also:
- Constant Field Values
-
ATTR_SUBJECT
public static final String ATTR_SUBJECT
- See Also:
- Constant Field Values
-
ATTR_POSTFACH
public static final String ATTR_POSTFACH
- See Also:
- Constant Field Values
-
ATTR_PARENT_ID
public static final String ATTR_PARENT_ID
- See Also:
- Constant Field Values
-
ATTR_PROZESSID
public static final String ATTR_PROZESSID
- See Also:
- Constant Field Values
-
ATTR_PROJEKT
public static final String ATTR_PROJEKT
- See Also:
- Constant Field Values
-
ATTR_LAST_STATUS_CHANGE_DATE
@Deprecated public static final String ATTR_LAST_STATUS_CHANGE_DATE
Deprecated.The lastStatusChangeDate will be perssited in the lastFormRecordSubmission
.- See Also:
getLastSubmission()
, Constant Field Values
-
ATTR_FORMVERSION
public static final String ATTR_FORMVERSION
- See Also:
- Constant Field Values
-
ATTR_IN_ARBEIT
public static final String ATTR_IN_ARBEIT
- See Also:
- Constant Field Values
-
ATTR_VERIFY_UUID
public static final String ATTR_VERIFY_UUID
- See Also:
- Constant Field Values
-
ATTR_VERIFY_EXPIREDATE
public static final String ATTR_VERIFY_EXPIREDATE
- See Also:
- Constant Field Values
-
ATTR_VERIFY_LOCK
public static final String ATTR_VERIFY_LOCK
- See Also:
- Constant Field Values
-
ATTR_GELESEN
public static final String ATTR_GELESEN
- See Also:
- Constant Field Values
-
ATTR_IS_SAVED
public static final String ATTR_IS_SAVED
- See Also:
- Constant Field Values
-
ATTR_FEHLERANZAHL
public static final String ATTR_FEHLERANZAHL
- See Also:
- Constant Field Values
-
ATTR_ATTACHMENTS
public static final String ATTR_ATTACHMENTS
- See Also:
- Constant Field Values
-
ATTR_SUBMISSIONS
public static final String ATTR_SUBMISSIONS
- See Also:
- Constant Field Values
-
ATTR_CHATS
public static final String ATTR_CHATS
- See Also:
- Constant Field Values
-
ATTR_IDENTITY_TOKEN
public static final String ATTR_IDENTITY_TOKEN
- See Also:
- Constant Field Values
-
ATTR_WORKFLOW_VERISON
public static final String ATTR_WORKFLOW_VERISON
- See Also:
- Constant Field Values
-
ATTR_CURRENT_WORKFLOW_STATE
public static final String ATTR_CURRENT_WORKFLOW_STATE
- See Also:
- Constant Field Values
-
ATTR_WORKFLOW_VERSION
public static final String ATTR_WORKFLOW_VERSION
- See Also:
- Constant Field Values
-
ATTR_UUID
public static final String ATTR_UUID
- See Also:
- Constant Field Values
-
ATTR_CURRENT_FORMEINGANG
@Deprecated public static final String ATTR_CURRENT_FORMEINGANG
Deprecated.the form record data belongs to asubmission
. A form record has nsubmissions
.- See Also:
- Constant Field Values
-
ATTR_QUELLSERVER
@Deprecated public static final String ATTR_QUELLSERVER
Deprecated.UseFormRecordSubmission.ATTR_SUBMIT_SERVER_BASE_URL
instead.- See Also:
- Constant Field Values
-
ATTR_QUELLSERVER_ID
@Deprecated public static final String ATTR_QUELLSERVER_ID
Deprecated.UseFormRecordSubmission.ATTR_SUBMIT_FRONTEND_SERVER_ID
instead.- See Also:
getLastSubmission()
, Constant Field Values
-
ATTR_CREATOR_REF
@Deprecated public static final String ATTR_CREATOR_REF
Deprecated.user information of the creator is now stored in theinitial form record submission
-
ATTR_ERSTELLER_REF
@Deprecated public static final String ATTR_ERSTELLER_REF
Deprecated.user information of the creator is now stored in theinitial form record submission
-
ATTR_EDITOR_REF
@Deprecated public static final String ATTR_EDITOR_REF
Deprecated.user information of the last editor is now stored in thelast form record submission
-
ATTR_BEARBEITER_REF
@Deprecated public static final String ATTR_BEARBEITER_REF
Deprecated.- See Also:
- Constant Field Values
-
ATTR_CREATOR_DATA
@Deprecated public static final String ATTR_CREATOR_DATA
Deprecated.user information of the creator is now stored in theinitial form record submission
-
ATTR_EDITOR_DATA
@Deprecated public static final String ATTR_EDITOR_DATA
Deprecated.user information of the last editor is now stored in thelast form record submission
-
ATTR_CREATOR_PROFILE_UUID
@Deprecated public static final String ATTR_CREATOR_PROFILE_UUID
Deprecated.user information of the creator is now stored in theinitial form record submission
-
ATTR_EDITOR_PROFILE_UUID
@Deprecated public static final String ATTR_EDITOR_PROFILE_UUID
Deprecated.user information of the last editor is now stored in thelast form record submission
-
ATTR_STATUS_CHANGED_READ
@Deprecated public static final String ATTR_STATUS_CHANGED_READ
Deprecated.- See Also:
- Constant Field Values
-
COL_FORM_VERSION_ID
public static final String COL_FORM_VERSION_ID
- See Also:
- Constant Field Values
-
COL_WORKFLOW_VERSION
public static final String COL_WORKFLOW_VERSION
- See Also:
- Constant Field Values
-
COL_PROJECT_ID
public static final String COL_PROJECT_ID
- See Also:
- Constant Field Values
-
COL_STATUS_ID
public static final String COL_STATUS_ID
- See Also:
- Constant Field Values
-
COL_SUBJECT
public static final String COL_SUBJECT
- See Also:
- Constant Field Values
-
COL_DATE_CREATED
public static final String COL_DATE_CREATED
- See Also:
- Constant Field Values
-
COL_UUID
public static final String COL_UUID
- See Also:
- Constant Field Values
-
COL_FORM_RECORD_BOX_ID
public static final String COL_FORM_RECORD_BOX_ID
- See Also:
- Constant Field Values
-
COL_FLAG_READ
public static final String COL_FLAG_READ
- See Also:
- Constant Field Values
-
COL_FLAG_IN_PROGRESS
public static final String COL_FLAG_IN_PROGRESS
- See Also:
- Constant Field Values
-
COL_VERIFY_UUID
public static final String COL_VERIFY_UUID
- See Also:
- Constant Field Values
-
COL_VERIFY_EXPIREDATE
public static final String COL_VERIFY_EXPIREDATE
- See Also:
- Constant Field Values
-
COL_VERIFY_LOCK
public static final String COL_VERIFY_LOCK
- See Also:
- Constant Field Values
-
COL_SAVED
public static final String COL_SAVED
- See Also:
- Constant Field Values
-
COL_COUNT_ERRORS
public static final String COL_COUNT_ERRORS
- See Also:
- Constant Field Values
-
COL_IDENTITYTOKEN
public static final String COL_IDENTITYTOKEN
- See Also:
- Constant Field Values
-
COL_CURRENT_WORKFLOW_STATE
public static final String COL_CURRENT_WORKFLOW_STATE
- See Also:
- Constant Field Values
-
COL_PARENT_ID
public static final String COL_PARENT_ID
- See Also:
- Constant Field Values
-
COL_DATE_STATUS_CHANGED
@Deprecated public static final String COL_DATE_STATUS_CHANGED
Deprecated.The lastStatusChangeDate will be perssited in the lastFormRecordSubmission
.- See Also:
getLastSubmission()
, Constant Field Values
-
COL_FORM_RECORD_DATA_ID
@Deprecated public static final String COL_FORM_RECORD_DATA_ID
Deprecated.the form record data belongs to asubmission
. A form record has nsubmissions
.- See Also:
- Constant Field Values
-
COL_SOURCE_SERVER_ID
@Deprecated public static final String COL_SOURCE_SERVER_ID
Deprecated.UseFormRecordSubmission.getSubmitFrontendServerId()
instead.- See Also:
- Constant Field Values
-
COL_SOURCE_SERVER_NAME
@Deprecated public static final String COL_SOURCE_SERVER_NAME
Deprecated.UseFormRecordSubmission.getSubmitServerBaseUrl()
instead.- See Also:
- Constant Field Values
-
COL_USER_DATA_CREATOR
@Deprecated public static final String COL_USER_DATA_CREATOR
Deprecated.user information of the creator is now stored in theinitial form record submission
-
COL_USER_DATA_EDITOR
@Deprecated public static final String COL_USER_DATA_EDITOR
Deprecated.user information of the last editor is now stored in thelast form record submission
-
COL_USER_REF_CREATOR
@Deprecated public static final String COL_USER_REF_CREATOR
Deprecated.user information of the creator is now stored in theinitial form record submission
-
COL_USER_REF_EDITOR
@Deprecated public static final String COL_USER_REF_EDITOR
Deprecated.user information of the last editor is now stored in thelast form record submission
-
COL_USER_PROFILE_UUID_CREATOR
@Deprecated public static final String COL_USER_PROFILE_UUID_CREATOR
Deprecated.user information of the creator is now stored in theinitial form record submission
-
COL_USER_PROFILE_UUID_EDITOR
@Deprecated public static final String COL_USER_PROFILE_UUID_EDITOR
Deprecated.user information of the last editor is now stored in thelast form record submission
-
MAX_LENGTH_IDENTITY_TOKEN
public static final int MAX_LENGTH_IDENTITY_TOKEN
- See Also:
- Constant Field Values
-
CUSTOM_ATTR_DOI_INIT_WORKFLOW_NODE_ID
public static final String CUSTOM_ATTR_DOI_INIT_WORKFLOW_NODE_ID
- See Also:
- Constant Field Values
-
ATTR_CHILDREN
@Deprecated public static final String ATTR_CHILDREN
Deprecated.- See Also:
- Constant Field Values
-
ATTR_PARENT_VORGANG
@Deprecated public static final String ATTR_PARENT_VORGANG
Deprecated.- See Also:
- Constant Field Values
-
ATTR_FORMEINGAENGE
@Deprecated public static final String ATTR_FORMEINGAENGE
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
setId
public void setId(Long id)
Description copied from class:AbstractEntity
!!!WARNING: Currently values biggerInteger.MAX_VALUE
or lower thenInteger.MIN_VALUE
will be altered to null!!!- Specified by:
setId
in interfacede.xima.cmn.dao.interfaces.IEntity<Long>
- Overrides:
setId
in classAbstractEntity
- Parameters:
id
-Long
the database-id to set
-
getFormVersion
public FormVersion getFormVersion()
-
setFormVersion
public void setFormVersion(FormVersion formVersion)
-
getWorkflowVersion
public WorkflowVersion getWorkflowVersion()
- Returns:
- The version of the workflow that is to be used for this form record. The active workflow version of a project may change, but a form record keeps the workflow version that was active when the form record was created.
-
setWorkflowVersion
public void setWorkflowVersion(WorkflowVersion workflowVersion)
- Parameters:
workflowVersion
- The version of the workflow that is to be used for this form record. The active workflow version of a project may change, but a form record keeps the workflow version that was active when the form record was created.
-
getProjekt
public Projekt getProjekt()
- Specified by:
getProjekt
in interfaceIProjektDependent
-
setProjekt
public void setProjekt(Projekt projekt)
- Specified by:
setProjekt
in interfaceIProjektDependent
-
getCurrentStatus
@Deprecated public Status getCurrentStatus()
Deprecated.Use thegetCurrentWorkflowState()
together with the new workflow engine.- Returns:
- The current
Status
of this form record, as set by workflow processing or manually by the user.
-
setCurrentStatus
@Deprecated public void setCurrentStatus(Status status)
Deprecated.Use thesetCurrentWorkflowState(WorkflowState)
together with the new workflow engine.- Parameters:
status
- The currentStatus
of this form record, as set by workflow processing or manually by the user.
-
getCurrentWorkflowState
public WorkflowState getCurrentWorkflowState()
-
setCurrentWorkflowState
@Deprecated public void setCurrentWorkflowState(WorkflowState currentWorkflowState)
Deprecated.For Hibernate only, in most cases you should usesetNewWorkflowState(WorkflowState)
.- Parameters:
currentWorkflowState
- The current workflow state of this form record.
-
getSubject
public String getSubject()
-
setSubject
public void setSubject(String subject)
-
getEingangsDatum
public Date getEingangsDatum()
-
setEingangsDatum
@Deprecated public void setEingangsDatum(Date eingangsDatum)
Deprecated.For Hibernate only, in most cases you should usesetNewEingangsDatum(Date)
.- Parameters:
eingangsDatum
- The new date when the form record was created.
-
getProzessId
public String getProzessId()
-
setProzessId
public void setProzessId(String uuid)
-
getUUID
public String getUUID()
Gets the UUID of this form record. The UUID must be globally unique, among all projects and clients. The UUID is used to identify the form record in the system.- Specified by:
getUUID
in interfaceIUUIDEntity
- Returns:
- The UUID of this form record.
-
setUUID
public void setUUID(String uuid)
Sets the UUID of this form record. The UUID must be globally unique, among all projects and clients. The UUID is used to identify the form record in the system.- Specified by:
setUUID
in interfaceIUUIDEntity
- Parameters:
uuid
- The UUID of this form record.
-
getUUIDObject
public UUID getUUIDObject()
Gets the UUID of this form record. The UUID must be globally unique, among all projects and clients. The UUID is used to identify the form record in the system.- Specified by:
getUUIDObject
in interfaceIUUIDEntity
- Returns:
- The UUID of this form record.
-
setUUIDObject
public void setUUIDObject(UUID uuid)
Sets the UUID of this form record. The UUID must be globally unique, among all projects and clients. The UUID is used to identify the form record in the system.- Parameters:
uuid
- The UUID of this form record.
-
getAttachments
public List<Attachment> getAttachments()
-
setAttachments
public void setAttachments(List<Attachment> attachments)
-
getCurrentPostfach
public Postfach getCurrentPostfach()
-
setCurrentPostfach
public void setCurrentPostfach(Postfach currentPostfach)
-
isGelesen
public boolean isGelesen()
-
setGelesen
public void setGelesen(boolean gelesen)
-
isInArbeit
public boolean isInArbeit()
- Returns:
- The
in progress
flag.true
when there is an active workflow execution for this form record,false
otherwise. This is a purely cosmetic flag without any business logic, meant for the UI only. In particular, setting this flag will not prevent multiple workflow executions for the same form record. New workflow engine: The new workflow engine locks the form record for exclusive access via a database lock, seeFormRecordLock
.
-
setInArbeit
public void setInArbeit(boolean inArbeit)
- Parameters:
inArbeit
- Thein progress
flag.true
when there is an active workflow execution for this form record,false
otherwise. This is a purely cosmetic flag without any business logic, meant for the UI only. In particular, setting this flag will not prevent multiple workflow executions for the same form record. New workflow engine: The new workflow engine locks the form record for exclusive access via a database lock, seeFormRecordLock
.
-
getVerifyUUID
public String getVerifyUUID()
-
setVerifyUUID
public void setVerifyUUID(String verifyUUID)
-
getVerifyExpireDate
public Date getVerifyExpireDate()
-
setVerifyExpireDate
public void setVerifyExpireDate(Date verifyExpireDate)
-
isSaved
public boolean isSaved()
-
setSaved
public void setSaved(boolean saved)
-
isUsesNewWorkflow
public boolean isUsesNewWorkflow()
-
getFehlerAnzahl
public int getFehlerAnzahl()
-
setFehlerAnzahl
public void setFehlerAnzahl(int fehlerAnzahl)
-
getLastStatusChangeDate
public Date getLastStatusChangeDate()
-
setLastStatusChangeDate
@Deprecated public void setLastStatusChangeDate(Date lastStatusChangeDate)
Deprecated.For Hibernate only, in most cases you should usesetNewLastStatusChangeDate(Date)
.- Parameters:
lastStatusChangeDate
- The new last status change date.
-
getCurrentFormeingang
public FormEingang getCurrentFormeingang()
-
setCurrentFormeingang
@Deprecated public void setCurrentFormeingang(FormEingang currentFormeingang)
Deprecated.
-
getParentId
public Long getParentId()
-
setParentId
public void setParentId(Long parentId)
-
getIdentityToken
public String getIdentityToken()
-
setIdentityToken
public void setIdentityToken(String identityToken)
-
getNewStatus
@Deprecated public Status getNewStatus()
Deprecated.
-
setNewStatus
@Deprecated public void setNewStatus(Status newStatus)
Deprecated.
-
isLoeschbar
public boolean isLoeschbar()
Vorgänge sind löschbar, wenn der Status, in dem sie sich befinden, das Löschen von Vorgängen erlaubt.- Returns:
true
, wenn dieser Vorgang löschbar ist, ansonstenfalse
.
-
isVerifyLock
public boolean isVerifyLock()
- Returns:
- Whether this form record should be locked when a double opt-in is pending. When locked, the data of the form record cannot be accessed in the inbox.
-
setVerifyLock
public void setVerifyLock(boolean lock)
- Parameters:
lock
- Whether this form record should be locked when a double opt-in is pending. When locked, the data of the form record cannot be accessed in the inbox.
-
getInitialSubmission
public FormRecordSubmission getInitialSubmission()
-
getLastSubmission
public FormRecordSubmission getLastSubmission()
-
getSubmissions
public List<FormRecordSubmission> getSubmissions()
-
setSubmissions
public void setSubmissions(List<FormRecordSubmission> submissions)
-
getCreatorRef
public String getCreatorRef()
-
setCreatorRef
@Deprecated public void setCreatorRef(String creatorRef)
Deprecated.UsegetInitialSubmission()
instead.
-
getEditorRef
public String getEditorRef()
-
setEditorRef
@Deprecated public void setEditorRef(String editorRef)
Deprecated.UsegetLastSubmission()
instead.
-
getCreatorData
public com.alibaba.fastjson.JSONObject getCreatorData()
-
setCreatorData
@Deprecated public void setCreatorData(com.alibaba.fastjson.JSONObject creatorData)
Deprecated.UsegetInitialSubmission()
instead.
-
getEditorData
public com.alibaba.fastjson.JSONObject getEditorData()
-
setEditorData
@Deprecated public void setEditorData(com.alibaba.fastjson.JSONObject editorData)
Deprecated.UsegetLastSubmission()
instead.
-
getChats
public List<FormRecordChat> getChats()
-
setChats
public void setChats(List<FormRecordChat> chats)
-
getOldWorkflowState
public WorkflowState getOldWorkflowState()
- Returns:
- The old workflow state from before a state change took place. This is a transient field and only available temporarily while the entity is updated.
-
isHasWorkflowStateChanged
public boolean isHasWorkflowStateChanged()
- Returns:
- Whether the workflow state was changed. This is a transient field and only available temporarily while the entity is updated.
-
isHasDateChanged
public boolean isHasDateChanged()
- Returns:
- Whether any of the date fields were changed. This is a transient field and only available temporarily while the entity is updated.
-
getParentVorgang
@Deprecated public Vorgang getParentVorgang()
Deprecated.usegetParentId()
-
setParentVorgang
@Deprecated public void setParentVorgang(Vorgang parentVorgang)
Deprecated.
-
getChildren
@Deprecated public List<Vorgang> getChildren()
Deprecated.Can be extremely slow !!! Use query withATTR_PARENT_ID
as filter
-
setChildren
@Deprecated public void setChildren(List<Vorgang> children)
Deprecated.Can be extremely slow !!! Use query withATTR_PARENT_ID
as filter
-
getFormeingaenge
@Deprecated public List<FormEingang> getFormeingaenge()
Deprecated.
-
setFormeingaenge
@Deprecated public void setFormeingaenge(List<FormEingang> formeingaenge)
Deprecated.
-
getFrontendserver_id
@Deprecated public Long getFrontendserver_id()
Deprecated.UseFormRecordSubmission.getSubmitFrontendServerId()
instead.Getter für quellserver_id- Returns:
Long
des quellserver_id- See Also:
getLastSubmission()
-
setFrontendserver_id
@Deprecated public void setFrontendserver_id(Long quellserver_id)
Deprecated.Setter des quellserver_id- Parameters:
quellserver_id
-Long
der zu setzende quellserver_id- See Also:
getLastSubmission()
-
getQuellserver
@Deprecated public String getQuellserver()
Deprecated.UseFormRecordSubmission.getSubmitServerBaseUrl()
instead.Der Verbindungsname desFrontendServer
welche den Vorgang zuletzt bearbeitet hat- Returns:
String
des bearbeitungsquelle- See Also:
getLastSubmission()
-
setQuellserver
@Deprecated public void setQuellserver(String quellserver)
Deprecated.UseFormRecordSubmission.setSubmitServerBaseUrl(String)
instead.- Parameters:
quellserver
-String
der zu setzende Quellserver- See Also:
getLastSubmission()
-
getCreatorProfileUuid
@Deprecated public UUID getCreatorProfileUuid()
Deprecated.UsegetInitialSubmission()
instead.
-
setCreatorProfileUuid
@Deprecated public void setCreatorProfileUuid(UUID creatorProfileUuid)
Deprecated.UsegetInitialSubmission()
instead.- See Also:
FormRecordSubmission.setUser(IUser)
-
getEditorProfileUuid
@Deprecated public UUID getEditorProfileUuid()
Deprecated.UsegetLastSubmission()
instead.
-
setEditorProfileUuid
@Deprecated public void setEditorProfileUuid(UUID editorProfileUuid)
Deprecated.UsegetLastSubmission()
instead.- See Also:
FormRecordSubmission.setUser(IUser)
-
getBearbeiter
@Deprecated public Benutzer getBearbeiter()
Deprecated.- Returns:
- the bearbeiter
-
setBearbeiter
@Deprecated public void setBearbeiter(Benutzer bearbeiter)
Deprecated.
-
getErsteller
@Deprecated public Benutzer getErsteller()
Deprecated.
-
setErsteller
@Deprecated public void setErsteller(Benutzer ersteller)
Deprecated.
-
getErstellerRef
@Deprecated public String getErstellerRef()
Deprecated.
-
setErstellerRef
@Deprecated public void setErstellerRef(String erstellerRef)
Deprecated.
-
getBearbeiterRef
@Deprecated public String getBearbeiterRef()
Deprecated.
-
setBearbeiterRef
@Deprecated public void setBearbeiterRef(String bearbeiterRef)
Deprecated.
-
isStatusChangeRead
@Deprecated public boolean isStatusChangeRead()
Deprecated.
-
setStatusChangeRead
@Deprecated public void setStatusChangeRead(boolean statusChangeRead)
Deprecated.
-
setNewWorkflowState
public void setNewWorkflowState(WorkflowState newWorkflowState)
Sets the new workflow state of this form record and stores the old workflow state.- Parameters:
newWorkflowState
- The new workflow state for this form record.
-
setNewEingangsDatum
public void setNewEingangsDatum(Date newEingangsDatum)
Sets the new date when the form record was created and stores the info whether it was changed.- Parameters:
newEingangsDatum
- The new date when the form record was created.
-
setNewLastStatusChangeDate
public void setNewLastStatusChangeDate(Date newLastStatusChangeDate)
Sets the new date when the last status changed occurred and stores the info whether it was changed.- Parameters:
newLastStatusChangeDate
- The new last status change date.
-
setFormData
public void setFormData(String formData)
-
setCreator
@Deprecated public void setCreator(IUser creator)
Deprecated.- See Also:
getInitialSubmission()
-
setEditor
@Deprecated public void setEditor(IUser editor)
Deprecated.- See Also:
getLastSubmission()
-
setCreator
@Deprecated public void setCreator(Benutzer creator)
Deprecated.UsesetCreator(IUser)
instead.
-
setEditor
@Deprecated public void setEditor(Benutzer editor)
Deprecated.UsesetEditor(IUser)
instead.
-
setNewWorkflowState
public void setNewWorkflowState(WorkflowState newWorkflowState, boolean forceUpdate)
Sets the new workflow state of this form record and stores the old workflow state.- Parameters:
newWorkflowState
- The new workflow state for this form record.forceUpdate
- Whentrue
, the state is marked as having changed even when the given state equals the current state.
-
addAttachment
public void addAttachment(Attachment attachment)
-
removeAttachment
public void removeAttachment(Attachment attachment)
-
addSubmission
public void addSubmission(IUser user, EFormRecordSubmitContext submitContext, @Nullable FrontendServer submitFrontendServer, String submitServerBaseUrl, String formData, boolean newDataEntry)
Adds a new submission to the form record.- Parameters:
user
- The user that submitted the form record.submitContext
- The context in which the form record was submitted.submitFrontendServer
- The frontend server that received the submission.submitServerBaseUrl
- The base URL of the server that received the submission.formData
- The data of the submission.newDataEntry
- Whether this submission should be stored as a new data entry.
-
toString
public String toString()
- Overrides:
toString
in classAbstractLockableEntity
-
clearOldWorkflowState
public void clearOldWorkflowState()
-
addChild
@Deprecated public void addChild(Vorgang vorgang)
Deprecated.
-
removeChild
@Deprecated public void removeChild(Vorgang vorgang)
Deprecated.
-
addFormeingang
@Deprecated public void addFormeingang(FormEingang formeingang)
Deprecated.
-
removeFormeingang
@Deprecated public void removeFormeingang(FormEingang formeingang)
Deprecated.
-
getCreatorDataString
@Deprecated protected String getCreatorDataString()
Deprecated.UsegetInitialSubmission()
instead.- See Also:
FormRecordSubmission.getUserData()
-
setCreatorDataString
@Deprecated protected void setCreatorDataString(String creatorData)
Deprecated.UsegetInitialSubmission()
instead.- See Also:
FormRecordSubmission.setUserData(String)
-
getEditorDataString
@Deprecated protected String getEditorDataString()
Deprecated.UsegetLastSubmission()
instead.- See Also:
FormRecordSubmission.getUserData()
-
setEditorDataString
@Deprecated protected void setEditorDataString(String editorData)
Deprecated.UsegetInitialSubmission()
instead.- See Also:
FormRecordSubmission.setUserData(String)
-
-