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_PROPERTIES
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
Deprecated.static String
ATTR_VALIDATE_SUBMIT_ACTION
Deprecated.static String
ATTR_VERSIONS_NUMMER
static String
COL_CAN_SUBMIT
static String
COL_THEME_UUID
Deprecated.static String
COL_UUID
static String
COL_VALIDATE_SUBMIT_ACTION
Deprecated.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, NULLABLE_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_AKTIV
public static final String ATTR_AKTIV
- See Also:
- Constant Field Values
-
ATTR_CAN_SUBMIT
public static final String ATTR_CAN_SUBMIT
- 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_FORM_PROPERTIES
public static final String ATTR_FORM_PROPERTIES
- See Also:
- Constant Field Values
-
ATTR_DATUM_PUBLIZIERUNG
public static final String ATTR_DATUM_PUBLIZIERUNG
- See Also:
- Constant Field Values
-
ATTR_FORM_ELEMENTE
public static final String ATTR_FORM_ELEMENTE
- See Also:
- Constant Field Values
-
ATTR_FORM_TYP
public static final String ATTR_FORM_TYP
- 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_MANDANT
@Deprecated public static final String ATTR_MANDANT
Deprecated.will be removed, usegetProjekt()
andAbstractMandantDependentEntity.getMandant()
- See Also:
- Constant Field Values
-
ATTR_NOTIZ
public static final String ATTR_NOTIZ
- 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_THEME_UUID
@Deprecated public static final String ATTR_THEME_UUID
Deprecated.- See Also:
- Constant Field Values
-
ATTR_VALIDATE_SUBMIT_ACTION
@Deprecated public static final String ATTR_VALIDATE_SUBMIT_ACTION
Deprecated.- See Also:
- Constant Field Values
-
ATTR_VERSIONS_NUMMER
public static final String ATTR_VERSIONS_NUMMER
- See Also:
- Constant Field Values
-
COL_CAN_SUBMIT
public static final String COL_CAN_SUBMIT
- See Also:
- Constant Field Values
-
COL_THEME_UUID
@Deprecated public static final String COL_THEME_UUID
Deprecated.- See Also:
- Constant Field Values
-
COL_UUID
public static final String COL_UUID
- See Also:
- Constant Field Values
-
COL_VALIDATE_SUBMIT_ACTION
@Deprecated public static final String COL_VALIDATE_SUBMIT_ACTION
Deprecated.- See Also:
- Constant Field Values
-
INVALID_VERS_NUM
public static final int INVALID_VERS_NUM
- See Also:
- Constant Field Values
-
-
Method Detail
-
addFormElement
public void addFormElement(FormElement formElement)
-
cloneBasics
public FormVersion cloneBasics()
-
getAction
public EFormVersionActions getAction()
-
setAction
public void setAction(EFormVersionActions action)
-
getAngelegtAm
public Date getAngelegtAm()
-
getBearbeiter
public String getBearbeiter()
-
getCharsetName
@Deprecated public String getCharsetName()
Deprecated.
-
setCharsetName
@Deprecated public void setCharsetName(String charsetName)
Deprecated.
-
getErsteller
public String getErsteller()
-
getFileEntity
public FormVersionDatei getFileEntity()
- Specified by:
getFileEntity
in interfaceIFileProviding<FormVersionDatei,FormVersionDateiData>
-
setFileEntity
public void setFileEntity(FormVersionDatei fileEntity)
- Specified by:
setFileEntity
in interfaceIFileProviding<FormVersionDatei,FormVersionDateiData>
-
getFormActionUrl
public String getFormActionUrl()
Returns the submit url of the form- Returns:
- the submit url
-
getFormElemente
public List<FormElement> getFormElemente()
-
setFormElemente
public void setFormElemente(List<FormElement> formElemente)
-
getFormProperties
public XFormProperties getFormProperties()
-
setFormProperties
public void setFormProperties(XFormProperties formProperties)
-
getFormPropertiesList
public List<JsonPathEntry> getFormPropertiesList()
-
setFormPropertiesList
public void setFormPropertiesList(List<JsonPathEntry> formProperties)
-
getFormTyp
public EFormTyp getFormTyp()
-
setFormTyp
public void setFormTyp(EFormTyp formTyp)
-
getFreigabeStatus
public EFreigabeStatus getFreigabeStatus()
-
setFreigabeStatus
public void setFreigabeStatus(EFreigabeStatus freigabeStatus)
-
getHttpFormUrl
@Deprecated public String getHttpFormUrl()
Deprecated.Konkrete Aufruf-URL für externe Formulare vom TypEFormTyp.HTTP_REQUEST
-
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
-
getLetzteAenderungAm
public Date getLetzteAenderungAm()
-
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()
-
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
-
getTheme
@Deprecated public String getTheme()
Deprecated.UsegetFormProperties()
instead
-
setTheme
@Deprecated public void setTheme(String theme)
Deprecated.UsegetFormProperties()
instead
-
getThemeUUID
@Deprecated public String getThemeUUID()
Deprecated.UsegetFormProperties()
instead.- Returns:
- The UUID of the CSS theme to apply to the form.
-
setThemeUUID
@Deprecated public void setThemeUUID(String themeUUID)
Deprecated.UsegetFormProperties()
instead.- Parameters:
themeUUID
- The UUID of the CSS theme to apply to the form.
-
getThemeUUIDObject
@Deprecated public UUID getThemeUUIDObject()
Deprecated.UsegetFormProperties()
instead.- Returns:
- The UUID of the CSS theme to apply to the form.
-
setThemeUUIDObject
@Deprecated public void setThemeUUIDObject(UUID themeUUID)
Deprecated.UsegetFormProperties()
instead.- Parameters:
themeUUID
- The UUID of the CSS theme to apply to the form.
-
getUUID
public String getUUID()
Description copied from interface:IUUIDEntity
Gets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopes
orproject scope
.- Specified by:
getUUID
in interfaceIUUIDEntity
- Returns:
- The UUID of the entity.
-
setUUID
public void setUUID(String uuid)
Description copied from interface:IUUIDEntity
Sets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopes
orproject scope
.- Specified by:
setUUID
in interfaceIUUIDEntity
- Parameters:
uuid
- The UUID of the entity.
-
getUUIDObject
public UUID getUUIDObject()
Description copied from interface:IUUIDEntity
Gets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopes
orproject scope
.- Specified by:
getUUIDObject
in interfaceIUUIDEntity
- Returns:
- The UUID of the entity.
-
setUUIDObject
public void setUUIDObject(UUID uuid)
-
getVersionNumber
public long getVersionNumber()
- Specified by:
getVersionNumber
in interfaceIVersionNumberProviding
- Returns:
- The version number of this object.
-
getVersionsNummer
public int getVersionsNummer()
-
setVersionsNummer
public void setVersionsNummer(int versionsNummer)
-
isActiveVersion
public boolean isActiveVersion()
-
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.
-
isValidateSubmitAction
@Deprecated public boolean isValidateSubmitAction()
Deprecated.UsegetFormProperties()
instead.- 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
@Deprecated public void setValidateSubmitAction(boolean validateSubmitAction)
Deprecated.UsegetFormProperties()
instead.- 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.
-
removeFormElement
public void removeFormElement(FormElement formElement)
-
-