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 Stringstatic final Stringstatic final StringDeprecated.will be removedstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDeprecated.will be removed, usegetProjekt()andAbstractMandantDependentEntity.getMandant()static final Stringstatic final StringDeprecated.Form themes are stored completely different now.static final StringDeprecated.Form themes are stored completely different now.static final StringDeprecated.static final Stringstatic final Stringstatic final StringDeprecated.Form themes are stored completely different now.static final Stringstatic final StringDeprecated.static final intFields inherited from class AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersionFields inherited from class AbstractEntity
COL_ID, idFields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_IDFields inherited from interface IFileProviding
ATTR_DATEI, ATTR_FILEFields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSIONFields inherited from interface IProjektDependent
ATTR_PROJEKTFields inherited from interface ITransferableEntity
IMPORT_ID, INVALID_IDFields inherited from interface IUUIDEntity
ATTR_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFormElement(FormElement formElement) Deprecated.Returns the submit url of the formGets a view of the form properties.Deprecated.getId()Deprecated.will be removed, usegetProjekt()andAbstractMandantDependentEntity.getMandant()getNotiz()getTheme()Deprecated.UsegetFormProperties()insteadDeprecated.UsegetFormProperties()instead.Deprecated.UsegetFormProperties()instead.getUUID()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.longintbooleanbooleanbooleanDeprecated.UsegetFormProperties()instead.voidremoveFormElement(FormElement formElement) voidsetAction(EFormVersionActions action) voidsetCanSubmit(boolean canSubmit) voidsetCharsetName(String charsetName) Deprecated.voidsetFileEntity(FormVersionDatei fileEntity) voidsetFormElemente(List<FormElement> formElemente) voidsetFormProperties(XFormProperties formProperties) Sets the form properties, overriding any existing properties.voidsetFormTyp(EFormTyp formTyp) voidsetFreigabeStatus(EFreigabeStatus freigabeStatus) void!!!voidsetMandant(Mandant mandant) Deprecated.will be removed, usegetProjekt()andAbstractMandantDependentEntity.getMandant()voidvoidsetProjekt(Projekt projekt) voidDeprecated.UsegetFormProperties()insteadvoidsetThemeUUID(String themeUUID) Deprecated.UsegetFormProperties()instead.voidsetThemeUUIDObject(UUID themeUUID) Deprecated.UsegetFormProperties()instead.voidSets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidsetUUIDObject(UUID uuid) voidsetValidateSubmitAction(boolean validateSubmitAction) Deprecated.UsegetFormProperties()instead.voidsetVersionsNummer(int versionsNummer) Methods inherited from class AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toStringMethods inherited from class AbstractEntity
asIntValue, isPersisted, setIdMethods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCodeMethods inherited from interface Comparable
compareToMethods inherited from interface de.xima.cmn.dao.interfaces.IEntity
isPersistedMethods inherited from interface IFileProviding
getDatei, setDatei
-
Field Details
-
ATTR_AKTIV
- See Also:
-
ATTR_CAN_SUBMIT
- See Also:
-
ATTR_CHARSET_NAME
-
ATTR_FORM_PROPERTIES
- See Also:
-
ATTR_DATUM_PUBLIZIERUNG
- See Also:
-
ATTR_FORM_ELEMENTE
- See Also:
-
ATTR_FORM_TYP
- See Also:
-
ATTR_FREIGABE_STATUS
- See Also:
-
ATTR_IS_ACTIVE_VERSION
- See Also:
-
ATTR_MANDANT
Deprecated.will be removed, usegetProjekt()andAbstractMandantDependentEntity.getMandant()- See Also:
-
ATTR_NOTIZ
- See Also:
-
ATTR_THEME
Deprecated.Form themes are stored completely different now. SeeFormThemeReferenceandgetFormProperties()- See Also:
-
ATTR_THEME_UUID
Deprecated.Form themes are stored completely different now. SeeFormThemeReferenceandgetFormProperties()- See Also:
-
ATTR_VALIDATE_SUBMIT_ACTION
-
ATTR_VERSIONS_NUMMER
- See Also:
-
COL_CAN_SUBMIT
- See Also:
-
COL_THEME_UUID
Deprecated.Form themes are stored completely different now. SeeFormThemeReferenceandgetFormProperties()- See Also:
-
COL_UUID
- See Also:
-
COL_VALIDATE_SUBMIT_ACTION
-
INVALID_VERS_NUM
public static final int INVALID_VERS_NUM- See Also:
-
-
Constructor Details
-
FormVersion
public FormVersion()
-
-
Method Details
-
addFormElement
-
cloneBasics
-
getAction
-
setAction
-
getAngelegtAm
-
getBearbeiter
-
getCharsetName
Deprecated. -
setCharsetName
Deprecated. -
getErsteller
-
getFileEntity
- Specified by:
getFileEntityin interfaceIFileProviding<FormVersionDatei, FormVersionDateiData>
-
setFileEntity
- Specified by:
setFileEntityin interfaceIFileProviding<FormVersionDatei, FormVersionDateiData>
-
getFormActionUrl
-
getFormElemente
-
setFormElemente
-
getFormProperties
Gets a view of the form properties. Most properties can be edited in the form designer. You can modify the returned properties, changes will be written back to this entity.- Returns:
- The form properties.
-
setFormProperties
Sets the form properties, overriding any existing properties. Most properties can be edited in the form designer. Modifications made to the passed instance will NOT be reflected in this entity.- Parameters:
formProperties- The new form properties.
-
getFormTyp
-
setFormTyp
-
getFreigabeStatus
-
setFreigabeStatus
-
getHttpFormUrl
Deprecated.Konkrete Aufruf-URL für externe Formulare vom TypEFormTyp.HTTP_REQUEST -
getId
-
setId
Description copied from class:AbstractEntity!!!WARNING: Currently values biggerInteger.MAX_VALUEor lower thenInteger.MIN_VALUEwill be altered to null!!!- Specified by:
setIdin interfacede.xima.cmn.dao.interfaces.IEntity<Long>- Overrides:
setIdin classAbstractEntity- Parameters:
id-Longthe database-id to set
-
getLetzteAenderungAm
-
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() -
getNotiz
-
setNotiz
-
getProjekt
- Specified by:
getProjektin interfaceIProjektDependent
-
setProjekt
- Specified by:
setProjektin interfaceIProjektDependent
-
getTheme
Deprecated.UsegetFormProperties()instead -
setTheme
Deprecated.UsegetFormProperties()instead -
getThemeUUID
Deprecated.UsegetFormProperties()instead.- Returns:
- The UUID of the CSS theme to apply to the form.
-
setThemeUUID
Deprecated.UsegetFormProperties()instead.- Parameters:
themeUUID- The UUID of the CSS theme to apply to the form.
-
getThemeUUIDObject
Deprecated.UsegetFormProperties()instead.- Returns:
- The UUID of the CSS theme to apply to the form.
-
setThemeUUIDObject
Deprecated.UsegetFormProperties()instead.- Parameters:
themeUUID- The UUID of the CSS theme to apply to the form.
-
getUUID
Description copied from interface:IUUIDEntityGets 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 scopesorproject scope.- Specified by:
getUUIDin interfaceIUUIDEntity- Returns:
- The UUID of the entity.
-
setUUID
Description copied from interface:IUUIDEntitySets 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 scopesorproject scope.- Specified by:
setUUIDin interfaceIUUIDEntity- Parameters:
uuid- The UUID of the entity.
-
getUUIDObject
Description copied from interface:IUUIDEntityGets 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 scopesorproject scope.- Specified by:
getUUIDObjectin interfaceIUUIDEntity- Returns:
- The UUID of the entity.
-
setUUIDObject
-
getVersionNumber
public long getVersionNumber()- Specified by:
getVersionNumberin 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. Theactiveversion 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. Theactiveversion can always be submitted, regardless of the value of this field.
-
isValidateSubmitAction
Deprecated.UsegetFormProperties()instead.- Returns:
trueif the transmitted submit button name used to submit the form needs to be validated (whether such a button really existed), orfalseotherwise.
-
setValidateSubmitAction
Deprecated.UsegetFormProperties()instead.- Parameters:
validateSubmitAction-trueif the transmitted submit button name used to submit the form needs to be validated (whether such a button really existed), orfalseotherwise.
-
removeFormElement
-