Package de.xima.fc.entities
Class FormVersion
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
de.xima.fc.entities.AbstractEntity
de.xima.fc.entities.AbstractLockableEntity
de.xima.fc.entities.ALockableEntity
de.xima.fc.entities.FormVersion
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>
,de.xima.cmn.dao.interfaces.ILockableEntity<Long>
,IFileProviding<FormVersionDatei,
,FormVersionDateiData> ILockingVersionProviding
,IProjektDependent
,ITransferable
,ITransferableEntity
,ITransferableLockableEntity
,IUUIDEntity
,IVersionNumberProviding
,Serializable
,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
@Entity
public class FormVersion
extends ALockableEntity
implements IProjektDependent, IFileProviding<FormVersionDatei,FormVersionDateiData>, IUUIDEntity, IVersionNumberProviding
Die Entität FormVersion ermöglicht es verschiedene Versionen eines Formulars zu verwalten.
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
Deprecated.will be removedstatic final String
static final String
static final String
static final String
static final String
static final String
Deprecated.will be removed, usegetProjekt()
andAbstractMandantDependentEntity.getMandant()
static final String
static final String
Deprecated.will be removed, usegetThemeUUID()
orgetThemeUUIDObject()
insteadstatic 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.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.fc.entities.interfaces.IFileProviding
ATTR_DATEI, ATTR_FILE
Fields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSION
Fields inherited from interface de.xima.fc.entities.interfaces.IProjektDependent
ATTR_PROJEKT
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
Fields inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
ATTR_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, TYPE_NAME_UUID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFormElement
(FormElement formElement) Deprecated.Returns the submit url of the formDeprecated.getId()
Deprecated.will be removed, usegetProjekt()
andAbstractMandantDependentEntity.getMandant()
getNotiz()
getTheme()
Deprecated.UsegetThemeUUID()
insteadgetUUID()
long
int
boolean
boolean
boolean
void
removeFormElement
(FormElement formElement) void
setAction
(EFormVersionActions action) void
setCanSubmit
(boolean canSubmit) void
setCharsetName
(String charsetName) Deprecated.void
setFileEntity
(FormVersionDatei fileEntity) void
setFormElemente
(List<FormElement> formElemente) void
setFormTyp
(EFormTyp formTyp) void
setFreigabeStatus
(EFreigabeStatus freigabeStatus) void
!!!void
setMandant
(Mandant mandant) Deprecated.will be removed, usegetProjekt()
andAbstractMandantDependentEntity.getMandant()
void
void
setProjekt
(Projekt projekt) void
Deprecated.UsesetThemeUUID(String)
insteadvoid
setThemeUUID
(String themeUUID) void
setThemeUUIDObject
(UUID themeUUID) void
void
setUUIDObject
(UUID uuid) void
setValidateSubmitAction
(boolean validateSubmitAction) void
setVersionsNummer
(int versionsNummer) Methods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toString
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
Methods inherited from interface de.xima.fc.entities.interfaces.IFileProviding
getDatei, setDatei
-
Field Details
-
ATTR_VERSIONS_NUMMER
- See Also:
-
ATTR_DATUM_PUBLIZIERUNG
- See Also:
-
ATTR_NOTIZ
- See Also:
-
ATTR_THEME_UUID
- See Also:
-
ATTR_AKTIV
- See Also:
-
ATTR_FORM_TYP
- See Also:
-
ATTR_FORM_ELEMENTE
- See Also:
-
ATTR_FREIGABE_STATUS
- See Also:
-
ATTR_IS_ACTIVE_VERSION
- See Also:
-
ATTR_VALIDATE_SUBMIT_ACTION
- See Also:
-
ATTR_CAN_SUBMIT
- See Also:
-
COL_CAN_SUBMIT
- See Also:
-
COL_UUID
- See Also:
-
COL_THEME_UUID
- See Also:
-
COL_VALIDATE_SUBMIT_ACTION
- See Also:
-
INVALID_VERS_NUM
public static final int INVALID_VERS_NUM- See Also:
-
ATTR_THEME
Deprecated.will be removed, usegetThemeUUID()
orgetThemeUUIDObject()
instead- See Also:
-
ATTR_CHARSET_NAME
Deprecated.will be removed- See Also:
-
ATTR_MANDANT
Deprecated.will be removed, usegetProjekt()
andAbstractMandantDependentEntity.getMandant()
- See Also:
-
-
Constructor Details
-
FormVersion
public FormVersion()
-
-
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
-
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
-
getAction
-
setAction
-
getFormElemente
-
setFormElemente
-
addFormElement
-
removeFormElement
-
getFormTyp
-
setFormTyp
-
getVersionsNummer
public int getVersionsNummer() -
getVersionNumber
public long getVersionNumber()- Specified by:
getVersionNumber
in interfaceIVersionNumberProviding
- Returns:
- The version number of this object.
-
setVersionsNummer
public void setVersionsNummer(int versionsNummer) -
getThemeUUID
-
setThemeUUID
-
getThemeUUIDObject
-
setThemeUUIDObject
-
getNotiz
-
setNotiz
-
getProjekt
- Specified by:
getProjekt
in interfaceIProjektDependent
-
setProjekt
- Specified by:
setProjekt
in interfaceIProjektDependent
-
isCanSubmit
public boolean isCanSubmit()- Returns:
- Whether a form record with this version can be submitted. When
false
, submissions are rejected and an error page is shown. Theactive
version can always be submitted, regardless of the value of this field.
-
setCanSubmit
public void setCanSubmit(boolean canSubmit) - Parameters:
canSubmit
- Whether a form record with this version can be submitted. Whenfalse
, submissions are rejected and an error page is shown. Theactive
version can always be submitted, regardless of the value of this field.
-
getAngelegtAm
-
getLetzteAenderungAm
-
getErsteller
-
getBearbeiter
-
getFormActionUrl
Returns the submit url of the form- Returns:
- the submit url
-
getFreigabeStatus
-
setFreigabeStatus
-
isActiveVersion
public boolean isActiveVersion() -
isValidateSubmitAction
public boolean isValidateSubmitAction()- Returns:
true
if the transmitted submit button name used to submit the form needs to be validated (whether such a button really existed), orfalse
otherwise.
-
setValidateSubmitAction
public void setValidateSubmitAction(boolean validateSubmitAction) - Parameters:
validateSubmitAction
-true
if the transmitted submit button name used to submit the form needs to be validated (whether such a button really existed), orfalse
otherwise.
-
getFileEntity
- Specified by:
getFileEntity
in interfaceIFileProviding<FormVersionDatei,
FormVersionDateiData>
-
setFileEntity
- Specified by:
setFileEntity
in interfaceIFileProviding<FormVersionDatei,
FormVersionDateiData>
-
setCharsetName
Deprecated. -
getCharsetName
Deprecated. -
getHttpFormUrl
Deprecated.Konkrete Aufruf-URL für externe Formulare vom TypEFormTyp.HTTP_REQUEST
-
getMandant
Deprecated.will be removed, usegetProjekt()
andAbstractMandantDependentEntity.getMandant()
- Returns:
- returns the client or null if not set
-
setMandant
Deprecated.will be removed, usegetProjekt()
andAbstractMandantDependentEntity.getMandant()
-
getTheme
Deprecated.UsegetThemeUUID()
instead -
setTheme
Deprecated.UsesetThemeUUID(String)
instead -
cloneBasics
-