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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTR_AKTIV
static String
ATTR_CAN_SUBMIT
static String
ATTR_CHARSET_NAME
Deprecated.will be removedstatic String
ATTR_DATUM_PUBLIZIERUNG
static String
ATTR_FORM_ELEMENTE
static String
ATTR_FORM_TYP
static String
ATTR_FREIGABE_STATUS
static String
ATTR_IS_ACTIVE_VERSION
static String
ATTR_MANDANT
Deprecated.will be removed, usegetProjekt()
andAbstractMandantDependentEntity.getMandant()
static String
ATTR_NOTIZ
static String
ATTR_THEME
Deprecated.will be removed, usegetThemeUUID()
orgetThemeUUIDObject()
insteadstatic String
ATTR_THEME_UUID
static String
ATTR_VALIDATE_SUBMIT_ACTION
static String
ATTR_VERSIONS_NUMMER
static String
COL_CAN_SUBMIT
static String
COL_THEME_UUID
static String
COL_UUID
static String
COL_VALIDATE_SUBMIT_ACTION
static int
INVALID_VERS_NUM
-
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.IFileProviding
ATTR_DATEI, ATTR_FILE
-
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 Constructor Description FormVersion()
-
Method Summary
-
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.fc.entities.interfaces.IFileProviding
getDatei, setDatei
-
-
-
-
Field Detail
-
ATTR_VERSIONS_NUMMER
public static final String ATTR_VERSIONS_NUMMER
- See Also:
- Constant Field Values
-
ATTR_DATUM_PUBLIZIERUNG
public static final String ATTR_DATUM_PUBLIZIERUNG
- See Also:
- Constant Field Values
-
ATTR_NOTIZ
public static final String ATTR_NOTIZ
- See Also:
- Constant Field Values
-
ATTR_THEME_UUID
public static final String ATTR_THEME_UUID
- See Also:
- Constant Field Values
-
ATTR_AKTIV
public static final String ATTR_AKTIV
- See Also:
- Constant Field Values
-
ATTR_FORM_TYP
public static final String ATTR_FORM_TYP
- See Also:
- Constant Field Values
-
ATTR_FORM_ELEMENTE
public static final String ATTR_FORM_ELEMENTE
- See Also:
- Constant Field Values
-
ATTR_FREIGABE_STATUS
public static final String ATTR_FREIGABE_STATUS
- See Also:
- Constant Field Values
-
ATTR_IS_ACTIVE_VERSION
public static final String ATTR_IS_ACTIVE_VERSION
- See Also:
- Constant Field Values
-
ATTR_VALIDATE_SUBMIT_ACTION
public static final String ATTR_VALIDATE_SUBMIT_ACTION
- See Also:
- Constant Field Values
-
ATTR_CAN_SUBMIT
public static final String ATTR_CAN_SUBMIT
- See Also:
- Constant Field Values
-
COL_CAN_SUBMIT
public static final String COL_CAN_SUBMIT
- See Also:
- Constant Field Values
-
COL_UUID
public static final String COL_UUID
- See Also:
- Constant Field Values
-
COL_THEME_UUID
public static final String COL_THEME_UUID
- See Also:
- Constant Field Values
-
COL_VALIDATE_SUBMIT_ACTION
public static final String COL_VALIDATE_SUBMIT_ACTION
- See Also:
- Constant Field Values
-
INVALID_VERS_NUM
public static final int INVALID_VERS_NUM
- See Also:
- Constant Field Values
-
ATTR_THEME
@Deprecated public static final String ATTR_THEME
Deprecated.will be removed, usegetThemeUUID()
orgetThemeUUIDObject()
instead- See Also:
- Constant Field Values
-
ATTR_CHARSET_NAME
@Deprecated public static final String ATTR_CHARSET_NAME
Deprecated.will be removed- See Also:
- Constant Field Values
-
ATTR_MANDANT
@Deprecated public static final String ATTR_MANDANT
Deprecated.will be removed, usegetProjekt()
andAbstractMandantDependentEntity.getMandant()
- 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
-
getUUID
public String 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
public void setUUID(String uuid)
- Specified by:
setUUID
in interfaceIUUIDEntity
-
getUUIDObject
public UUID getUUIDObject()
- Specified by:
getUUIDObject
in interfaceIUUIDEntity
-
setUUIDObject
public void setUUIDObject(UUID uuid)
-
getAction
public EFormVersionActions getAction()
-
setAction
public void setAction(EFormVersionActions action)
-
getFormElemente
public List<FormElement> getFormElemente()
-
setFormElemente
public void setFormElemente(List<FormElement> formElemente)
-
addFormElement
public void addFormElement(FormElement formElement)
-
removeFormElement
public void removeFormElement(FormElement formElement)
-
getFormTyp
public EFormTyp getFormTyp()
-
setFormTyp
public void setFormTyp(EFormTyp formTyp)
-
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
public String getThemeUUID()
-
setThemeUUID
public void setThemeUUID(String themeUUID)
-
getThemeUUIDObject
public UUID getThemeUUIDObject()
-
setThemeUUIDObject
public void setThemeUUIDObject(UUID themeUUID)
-
getNotiz
public String getNotiz()
-
setNotiz
public void setNotiz(String notiz)
-
getProjekt
public Projekt getProjekt()
- Specified by:
getProjekt
in interfaceIProjektDependent
-
setProjekt
public void setProjekt(Projekt projekt)
- 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
public Date getAngelegtAm()
-
getLetzteAenderungAm
public Date getLetzteAenderungAm()
-
getErsteller
public String getErsteller()
-
getBearbeiter
public String getBearbeiter()
-
getFormActionUrl
public String getFormActionUrl()
Returns the submit url of the form- Returns:
- the submit url
-
getFreigabeStatus
public EFreigabeStatus getFreigabeStatus()
-
setFreigabeStatus
public void setFreigabeStatus(EFreigabeStatus freigabeStatus)
-
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
public FormVersionDatei getFileEntity()
- Specified by:
getFileEntity
in interfaceIFileProviding<FormVersionDatei,FormVersionDateiData>
-
setFileEntity
public void setFileEntity(FormVersionDatei fileEntity)
- Specified by:
setFileEntity
in interfaceIFileProviding<FormVersionDatei,FormVersionDateiData>
-
setCharsetName
@Deprecated public void setCharsetName(String charsetName)
Deprecated.
-
getCharsetName
@Deprecated public String getCharsetName()
Deprecated.
-
getHttpFormUrl
@Deprecated public String getHttpFormUrl()
Deprecated.Konkrete Aufruf-URL für externe Formulare vom TypEFormTyp.HTTP_REQUEST
-
getMandant
@Deprecated public Mandant getMandant()
Deprecated.will be removed, usegetProjekt()
andAbstractMandantDependentEntity.getMandant()
- Returns:
- returns the client or null if not set
-
setMandant
@Deprecated public void setMandant(Mandant mandant)
Deprecated.will be removed, usegetProjekt()
andAbstractMandantDependentEntity.getMandant()
-
getTheme
@Deprecated public String getTheme()
Deprecated.UsegetThemeUUID()
instead
-
setTheme
@Deprecated public void setTheme(String theme)
Deprecated.UsesetThemeUUID(String)
instead
-
cloneBasics
public FormVersion cloneBasics()
-
-