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 Stringstatic final Stringstatic final StringDeprecated.will be removedstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDeprecated.will be removed, usegetProjekt()andAbstractMandantDependentEntity.getMandant()static final Stringstatic final StringDeprecated.will be removed, usegetThemeUUID()orgetThemeUUIDObject()insteadstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intFields inherited from class de.xima.fc.entities.AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersionFields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, idFields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_IDFields inherited from interface de.xima.fc.entities.interfaces.IFileProviding
ATTR_DATEI, ATTR_FILEFields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSIONFields inherited from interface de.xima.fc.entities.interfaces.IProjektDependent
ATTR_PROJEKTFields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_IDFields 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 TypeMethodDescriptionvoidaddFormElement(FormElement formElement) Deprecated.Returns the submit url of the formDeprecated.getId()Deprecated.will be removed, usegetProjekt()andAbstractMandantDependentEntity.getMandant()getNotiz()getTheme()Deprecated.UsegetThemeUUID()insteadgetUUID()longintbooleanbooleanbooleanvoidremoveFormElement(FormElement formElement) voidsetAction(EFormVersionActions action) voidsetCanSubmit(boolean canSubmit) voidsetCharsetName(String charsetName) Deprecated.voidsetFileEntity(FormVersionDatei fileEntity) voidsetFormElemente(List<FormElement> formElemente) voidsetFormTyp(EFormTyp formTyp) voidsetFreigabeStatus(EFreigabeStatus freigabeStatus) void!!!voidsetMandant(Mandant mandant) Deprecated.will be removed, usegetProjekt()andAbstractMandantDependentEntity.getMandant()voidvoidsetProjekt(Projekt projekt) voidDeprecated.UsesetThemeUUID(String)insteadvoidsetThemeUUID(String themeUUID) voidsetThemeUUIDObject(UUID themeUUID) voidvoidsetUUIDObject(UUID uuid) voidsetValidateSubmitAction(boolean validateSubmitAction) voidsetVersionsNummer(int versionsNummer) Methods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toStringMethods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setIdMethods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface de.xima.cmn.dao.interfaces.IEntity
isPersistedMethods 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:
getIdin interfacede.xima.cmn.dao.interfaces.IEntity<Long>
-
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
-
getUUID
- Specified by:
getUUIDin 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:
setUUIDin interfaceIUUIDEntity
-
getUUIDObject
- Specified by:
getUUIDObjectin interfaceIUUIDEntity
-
setUUIDObject
-
getAction
-
setAction
-
getFormElemente
-
setFormElemente
-
addFormElement
-
removeFormElement
-
getFormTyp
-
setFormTyp
-
getVersionsNummer
public int getVersionsNummer() -
getVersionNumber
public long getVersionNumber()- Specified by:
getVersionNumberin interfaceIVersionNumberProviding- Returns:
- The version number of this object.
-
setVersionsNummer
public void setVersionsNummer(int versionsNummer) -
getThemeUUID
-
setThemeUUID
-
getThemeUUIDObject
-
setThemeUUIDObject
-
getNotiz
-
setNotiz
-
getProjekt
- Specified by:
getProjektin interfaceIProjektDependent
-
setProjekt
- Specified by:
setProjektin 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. 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.
-
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:
trueif the transmitted submit button name used to submit the form needs to be validated (whether such a button really existed), orfalseotherwise.
-
setValidateSubmitAction
public void setValidateSubmitAction(boolean validateSubmitAction) - Parameters:
validateSubmitAction-trueif the transmitted submit button name used to submit the form needs to be validated (whether such a button really existed), orfalseotherwise.
-
getFileEntity
- Specified by:
getFileEntityin interfaceIFileProviding<FormVersionDatei,FormVersionDateiData>
-
setFileEntity
- Specified by:
setFileEntityin 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
-