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
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
Deprecated.static final String
Deprecated.static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Deprecated.userATTR_CREATOR_REF
static final String
static final String
Deprecated.static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Deprecated.static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final int
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.cmn.dao.interfaces.IEntity
ATTR_ID
Fields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSION
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, TYPE_NAME_UUID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttachment
(Attachment attachment) void
Deprecated.void
addFormeingang
(FormEingang formeingang) Deprecated.void
Deprecated.Deprecated.Deprecated.Can be extremely slow !!!com.alibaba.fastjson.JSONObject
protected String
Deprecated.Use thegetCurrentWorkflowState()
together with the new workflow engine.com.alibaba.fastjson.JSONObject
protected String
Deprecated.Deprecated.int
Deprecated.Getter für quellserver_idgetId()
Deprecated.usegetParentId()
Der Verbindungsname desFrontendServer
welche den Vorgang zuletzt bearbeitet hatgetUUID()
boolean
boolean
boolean
boolean
boolean
Vorgänge sind löschbar, wenn der Status, in dem sie sich befinden, das Löschen von Vorgängen erlaubt.boolean
isSaved()
boolean
boolean
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
setChildren
(List<Vorgang> children) Deprecated.Can be extremely slow !!!void
setCreator
(Benutzer creator) Deprecated.UsesetCreator(IUser)
instead.void
setCreator
(IUser creator) void
setCreatorData
(com.alibaba.fastjson.JSONObject creatorData) protected void
setCreatorDataString
(String creatorData) void
setCreatorProfileUuid
(UUID creatorProfileUuid) Deprecated.UsesetCreator(IUser)
instead.void
setCreatorRef
(String creatorRef) void
setCurrentFormeingang
(FormEingang currentFormeingang) 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
Deprecated.UsesetEditor(IUser)
instead.void
void
setEditorData
(com.alibaba.fastjson.JSONObject editorData) protected void
setEditorDataString
(String editorData) void
setEditorProfileUuid
(UUID editorProfileUuid) Deprecated.UsesetEditor(IUser)
instead.void
setEditorRef
(String editorRef) 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) Setter des quellserver_idvoid
setGelesen
(boolean gelesen) void
!!!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) 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) void
setSaved
(boolean saved) void
setSubject
(String subject) void
void
setUUIDObject
(UUID uuid) void
setVerifyExpireDate
(Date verifyExpireDate) void
setVerifyLock
(boolean lock) void
setVerifyUUID
(String verifyUUID) void
setWorkflowVersion
(WorkflowVersion workflowVersion) 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
Methods inherited from interface de.xima.cmn.dao.interfaces.IEntity
isPersisted
-
Field Details
-
ATTR_EINGANGSDATUM
- See Also:
-
ATTR_STATUS
- See Also:
-
ATTR_SUBJECT
- See Also:
-
ATTR_POSTFACH
- See Also:
-
ATTR_PARENT_ID
- See Also:
-
ATTR_PROZESSID
- See Also:
-
ATTR_PROJEKT
- See Also:
-
ATTR_LAST_STATUS_CHANGE_DATE
- See Also:
-
ATTR_FORMVERSION
- See Also:
-
ATTR_IN_ARBEIT
- See Also:
-
ATTR_VERIFY_UUID
- See Also:
-
ATTR_VERIFY_EXPIREDATE
- See Also:
-
ATTR_VERIFY_LOCK
- See Also:
-
ATTR_QUELLSERVER
- See Also:
-
ATTR_GELESEN
- See Also:
-
ATTR_IS_SAVED
- See Also:
-
ATTR_FEHLERANZAHL
- See Also:
-
ATTR_QUELLSERVER_ID
- See Also:
-
ATTR_ATTACHMENTS
- See Also:
-
ATTR_CURRENT_FORMEINGANG
- See Also:
-
ATTR_IDENTITY_TOKEN
- See Also:
-
ATTR_WORKFLOW_VERISON
- See Also:
-
ATTR_CURRENT_WORKFLOW_STATE
- See Also:
-
ATTR_WORKFLOW_VERSION
- See Also:
-
ATTR_CREATOR_REF
- See Also:
-
ATTR_EDITOR_REF
- See Also:
-
ATTR_CREATOR_DATA
- See Also:
-
ATTR_EDITOR_DATA
- See Also:
-
ATTR_CREATOR_PROFILE_UUID
- See Also:
-
ATTR_EDITOR_PROFILE_UUID
- See Also:
-
ATTR_UUID
- See Also:
-
COL_FORM_VERSION_ID
- See Also:
-
COL_WORKFLOW_VERSION
- See Also:
-
COL_SOURCE_SERVER_ID
- See Also:
-
COL_SOURCE_SERVER_NAME
- See Also:
-
COL_PROJECT_ID
- See Also:
-
COL_STATUS_ID
- See Also:
-
COL_SUBJECT
- See Also:
-
COL_DATE_CREATED
- See Also:
-
COL_UUID
- See Also:
-
COL_FORM_RECORD_BOX_ID
- See Also:
-
COL_FLAG_READ
- See Also:
-
COL_FLAG_IN_PROGRESS
- See Also:
-
COL_VERIFY_UUID
- See Also:
-
COL_VERIFY_EXPIREDATE
- See Also:
-
COL_VERIFY_LOCK
- See Also:
-
COL_SAVED
- See Also:
-
COL_COUNT_ERRORS
- See Also:
-
COL_IDENTITYTOKEN
- See Also:
-
COL_CURRENT_WORKFLOW_STATE
- See Also:
-
COL_USER_DATA_CREATOR
- See Also:
-
COL_USER_DATA_EDITOR
- See Also:
-
COL_USER_REF_CREATOR
- See Also:
-
COL_USER_REF_EDITOR
- See Also:
-
COL_USER_PROFILE_UUID_CREATOR
- See Also:
-
COL_USER_PROFILE_UUID_EDITOR
- See Also:
-
COL_PARENT_ID
- See Also:
-
COL_FORM_RECORD_DATA_ID
- See Also:
-
COL_DATE_STATUS_CHANGED
- See Also:
-
MAX_LENGTH_IDENTITY_TOKEN
public static final int MAX_LENGTH_IDENTITY_TOKEN- See Also:
-
CUSTOM_ATTR_DOI_INIT_WORKFLOW_NODE_ID
- See Also:
-
ATTR_CHILDREN
Deprecated.- See Also:
-
ATTR_PARENT_VORGANG
Deprecated.- See Also:
-
ATTR_FORMEINGAENGE
Deprecated.- See Also:
-
ATTR_ERSTELLER_REF
Deprecated.userATTR_CREATOR_REF
- See Also:
-
ATTR_BEARBEITER_REF
Deprecated.userATTR_EDITOR_REF
- See Also:
-
-
Constructor Details
-
Vorgang
public Vorgang()
-
-
Method Details
-
getId
- Specified by:
getId
in interfacede.xima.cmn.dao.interfaces.IEntity<Long>
-
setId
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
-
setFormVersion
-
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
- 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.
-
getFrontendserver_id
Getter für quellserver_id- Returns:
Long
des quellserver_id
-
setFrontendserver_id
Setter des quellserver_id- Parameters:
quellserver_id
-Long
der zu setzende quellserver_id
-
getQuellserver
Der Verbindungsname desFrontendServer
welche den Vorgang zuletzt bearbeitet hat- Returns:
String
des bearbeitungsquelle
-
setQuellserver
- Parameters:
quellserver
-String
der zu setzende Quellserver
-
getProjekt
- Specified by:
getProjekt
in interfaceIProjektDependent
-
setProjekt
- Specified by:
setProjekt
in interfaceIProjektDependent
-
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.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
-
setNewWorkflowState
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.
-
setNewWorkflowState
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.
-
setCurrentWorkflowState
Deprecated.For Hibernate only, in most cases you should usesetNewWorkflowState(WorkflowState)
.- Parameters:
currentWorkflowState
- The current workflow state of this form record.
-
getSubject
-
setSubject
-
getEingangsDatum
-
setEingangsDatum
Deprecated.For Hibernate only, in most cases you should usesetNewEingangsDatum(Date)
.- Parameters:
eingangsDatum
- The new date when the form record was created.
-
setNewEingangsDatum
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.
-
getProzessId
-
setProzessId
-
getUUID
- Specified by:
getUUID
in interfaceIUUIDEntity
- Returns:
- UUID (Universal Unique Identifier) that identifies this type of entity. Usually is unique within a
context, e.g.
Mandant
,Projekt
, ...
-
setUUID
- Specified by:
setUUID
in interfaceIUUIDEntity
-
getUUIDObject
- Specified by:
getUUIDObject
in interfaceIUUIDEntity
-
setUUIDObject
-
getAttachments
-
setAttachments
-
addAttachment
-
removeAttachment
-
getCurrentPostfach
-
setCurrentPostfach
-
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
-
setVerifyUUID
-
getVerifyExpireDate
-
setVerifyExpireDate
-
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
-
setLastStatusChangeDate
Deprecated.For Hibernate only, in most cases you should usesetNewLastStatusChangeDate(Date)
.- Parameters:
lastStatusChangeDate
- The new last status change date.
-
setNewLastStatusChangeDate
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.
-
getCurrentFormeingang
-
setCurrentFormeingang
-
getParentId
-
setParentId
-
getCustomAttributes
-
setCustomAttributes
-
getEditorRef
-
setEditorRef
-
getCreatorRef
-
setCreatorRef
-
setEditor
-
setCreator
-
setEditor
Deprecated.UsesetEditor(IUser)
instead. -
setCreator
Deprecated.UsesetCreator(IUser)
instead. -
getCreatorDataString
-
setCreatorDataString
-
getEditorDataString
-
setEditorDataString
-
getCreatorData
public com.alibaba.fastjson.JSONObject getCreatorData() -
setCreatorData
public void setCreatorData(com.alibaba.fastjson.JSONObject creatorData) -
getEditorData
public com.alibaba.fastjson.JSONObject getEditorData() -
setEditorData
public void setEditorData(com.alibaba.fastjson.JSONObject editorData) -
getCreatorProfileUuid
-
setCreatorProfileUuid
Deprecated.UsesetCreator(IUser)
instead. -
getEditorProfileUuid
-
setEditorProfileUuid
Deprecated.UsesetEditor(IUser)
instead. -
getIdentityToken
-
setIdentityToken
-
getNewStatus
-
setNewStatus
-
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.
-
toString
- Overrides:
toString
in classAbstractLockableEntity
-
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.
-
clearOldWorkflowState
public void clearOldWorkflowState() -
setFormData
-
getParentVorgang
Deprecated.usegetParentId()
-
setParentVorgang
Deprecated. -
getChildren
Deprecated.Can be extremely slow !!! Use query withATTR_PARENT_ID
as filter -
setChildren
Deprecated.Can be extremely slow !!! Use query withATTR_PARENT_ID
as filter -
addChild
Deprecated. -
removeChild
Deprecated. -
getFormeingaenge
Deprecated. -
setFormeingaenge
Deprecated. -
addFormeingang
Deprecated. -
removeFormeingang
Deprecated. -
getBearbeiter
Deprecated.- Returns:
- the bearbeiter
-
setBearbeiter
Deprecated. -
getErsteller
Deprecated. -
setErsteller
Deprecated. -
getErstellerRef
Deprecated. -
setErstellerRef
Deprecated. -
getBearbeiterRef
Deprecated. -
setBearbeiterRef
Deprecated.
-
ATTR_EDITOR_REF