Class Attachment
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.Attachment
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>, de.xima.cmn.dao.interfaces.ILockableEntity<Long>, IFileProviding<AttachmentDatei, AttachmentDateiData>, ILockingVersionProviding, ITransferable, ITransferableEntity, ITransferableLockableEntity, IUncacheableDatei, IUncacheableFile, IUUIDEntity, IVorgangDependent, Serializable, Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
@Entity
public class Attachment
extends ALockableEntity
implements IFileProviding<AttachmentDatei, AttachmentDateiData>, IVorgangDependent, IUncacheableFile, IUUIDEntity
Die Klasse
Attachment beinhaltet Meta-Informationen zu einem im System verfügbaren Anhang. Dieser Anhang kann
zum einen eine Datei sein, die in einem Formular hochgeladen wurde, zum andern kann es sich um eine Datei handeln,
die von einem 'Postfachbearbeiter' einem Vorgang angefügt wurde.- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringDeprecated.static final Stringstatic final StringDeprecated.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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 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 TypeMethodDescriptionDiese Methode dient dazu, eine Zeichenkette zu erhalten, die Schlussfolgerungen auf den Ersteller dieses Attachments zulässtDiese Methode dient dazu, den Namen desAttachmentzu erhaltenDiese Methode dient dazu, den Formularelementnamen zu erhalten, in welchem dasAttachmentangebenen wurdeOptional.getId()Deprecated.will be removed, usegetVorgang()andAClientDependentEntity.getMandant()Deprecated.will be removed.Diese Methode dient dazu, das Datum zu setzen, an welchem dasAttachmenthochgeladen wurdegetUuid()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.Diese Methode dient dazu, denVorgangzu ermitteln, zu dem dasAttachmenthinzugefügt wurdebooleanbooleanAttachments sind dann löschbar, wenn der zugehörige Vorgang löschbar ist (Vorgänge sind löschbar, wenn der Status, in dem sie sich befinden, das Löschen von Vorgängen erlaubt).voidsetAccessibleToEndUser(boolean accessibleToEndUser) voidsetElementName(String elementName) Diese Methode dient dazu, den Formularelementnamen zu setzenvoidsetFileEntity(AttachmentDatei fileEntity) voidsetFormEingang(FormEingang formRecordData) Optional.void!!!voidsetMandant(Mandant mandant) Deprecated.will be removed, usegetVorgang()andAClientDependentEntity.setMandant(Mandant)voidsetOriginalAttachment(Attachment originalAttachment) voidsetOutputAlias(String outputAlias) Deprecated.will be removed.voidsetSource(EAttachmentSource source) voidvoidSets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidsetUUIDObject(UUID uuid) voidsetVorgang(Vorgang vorgang) Diese Methode dient dazu, den Vorgang zu setzten, zu dem dasAttachmentzugehörig ist (Bedingung: nicht null).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_VORGANG
- See Also:
-
ATTR_ELEMENT_NAME
- See Also:
-
ATTR_OUTPUT_ALIAS
- See Also:
-
ATTR_SOURCE
- See Also:
-
ATTR_LOESCHBAR
- See Also:
-
ATTR_ORIGINAL_ATTACHMENT
- See Also:
-
COL_UUID
- See Also:
-
COL_ACCESSIBLE_TO_ENDUSER
- See Also:
-
COL_FORM_RECORD_META_ID
- See Also:
-
ATTR_MANDANT
Deprecated.will be removed, useAClientDependentEntity.getMandant()- See Also:
-
ATTR_FORMEINGANG
-
-
Constructor Details
-
Attachment
public Attachment()
-
-
Method Details
-
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
-
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
-
getVorgang
Diese Methode dient dazu, denVorgangzu ermitteln, zu dem dasAttachmenthinzugefügt wurde- Specified by:
getVorgangin interfaceIVorgangDependent- Returns:
Vorgangs-Instanz
-
setVorgang
Diese Methode dient dazu, den Vorgang zu setzten, zu dem dasAttachmentzugehörig ist (Bedingung: nicht null).- Parameters:
vorgang- -Vorgang-Objekt
-
cloneBasics
- Returns:
- A copy of this entity with all fields copied that do not reference other entities. The
getUUIDObject()is not copied.
-
getBenutzer
Diese Methode dient dazu, eine Zeichenkette zu erhalten, die Schlussfolgerungen auf den Ersteller dieses Attachments zulässt- Returns:
- Nutzerkennung oder Nutzername
-
getUploadDatum
Diese Methode dient dazu, das Datum zu setzen, an welchem dasAttachmenthochgeladen wurde- Returns:
Date-Objekt odernull
-
getDateiName
Diese Methode dient dazu, den Namen desAttachmentzu erhalten- Returns:
- Zeichenkette mit dem Dateinamen
-
getElementName
Diese Methode dient dazu, den Formularelementnamen zu erhalten, in welchem dasAttachmentangebenen wurde- Returns:
- Zeichenkette mit dem Elementnamen oder
null
-
setElementName
Diese Methode dient dazu, den Formularelementnamen zu setzen- Parameters:
elementName- - Zeichenkette für den Elementnamen odernull
-
isLoeschbar
public boolean isLoeschbar()Attachments sind dann löschbar, wenn der zugehörige Vorgang löschbar ist (Vorgänge sind löschbar, wenn der Status, in dem sie sich befinden, das Löschen von Vorgängen erlaubt).- Returns:
true, wenn dieses Attachment löschbar ist, ansonstenfalse.- See Also:
-
getFileEntity
- Specified by:
getFileEntityin interfaceIFileProviding<AttachmentDatei, AttachmentDateiData>
-
setFileEntity
- Specified by:
setFileEntityin interfaceIFileProviding<AttachmentDatei, AttachmentDateiData>
-
getFormEingang
Optional. The form record data from the submission that created this attachment. Available only if the attachment was created by an upload from an HTML input file element. When the attachment got created in other manners (such as by a workflow action or manually in the inbox), this will be null.Note: This feature was disabled in the past and got enabled again starting with version 8.2.0. For
form recordscreated by older versions of formcycle, this field will be null even for attachments from form uploads.- Returns:
- The form record data from the form submission where this attachment was created.
-
setFormEingang
Optional. The form record data from the submission that created this attachment. Available only if the attachment was created by an upload from an HTML input file element. When the attachment got created in other manners (such as by a workflow action or manually in the inbox), this will be null.Note: This feature was disabled in the past and got enabled again starting with version 8.2.0. For
form recordscreated by older versions of formcycle, this field will be null even for attachments from form uploads.- Parameters:
formRecordData- The form record data from the form submission where this attachment was created.
-
getSource
-
setSource
-
isAccessibleToEndUser
public boolean isAccessibleToEndUser() -
setAccessibleToEndUser
public void setAccessibleToEndUser(boolean accessibleToEndUser) -
getOriginalAttachment
- Returns:
- the original (unconverted) attachment, if there's one (i.e. a conversion has been applied and the original attachment is configured to be kept) - null otherwise
-
setOriginalAttachment
-
getUuid
- Returns:
- uuid
-
setUuid
- Parameters:
uuid- the uuid
-
getMandant
Deprecated.will be removed, usegetVorgang()andAClientDependentEntity.getMandant()- Returns:
- returns the client or null if not set
-
setMandant
Deprecated.will be removed, usegetVorgang()andAClientDependentEntity.setMandant(Mandant) -
getOutputAlias
Deprecated.will be removed. Currently returns the file name- Returns:
- the output alias
-
setOutputAlias
Deprecated.will be removed. Currently an NO-OP method- Parameters:
outputAlias- the output alias to set
-
AClientDependentEntity.getMandant()