Class FormRecordMessageUploadRequest
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
de.xima.fc.entities.AbstractEntity
de.xima.fc.entities.AbstractLockableEntity
de.xima.fc.entities.FormRecordMessageUploadRequest
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>, de.xima.cmn.dao.interfaces.ILockableEntity<Long>, ILockingVersionProviding, ITransferable, ITransferableEntity, ITransferableLockableEntity, IUUIDEntity, Serializable, Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
@Entity
public class FormRecordMessageUploadRequest
extends AbstractLockableEntity
implements IUUIDEntity
Entity representing (pending or fulfilled) upload requests for form record messages.
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic 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 de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSIONFields inherited from interface ITransferableEntity
IMPORT_ID, INVALID_IDFields inherited from interface IUUIDEntity
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWhengetFormFieldName()is set: how to handle existing files of the upload element.The name of the form field that this upload request is associated with.getId()The database ID of this entity that uniquely identifies it in the system.Each upload request is associated with a message that contains details for the end user regarding the upload, e.g. what is wrong with the existing file.When thegetFormFieldName()refers to a repeated field, the repetition index of the field.The timestamp when the upload was fulfilled. null if the request is still pending and files were uploaded yet.Theuniversal reference IDto the user that uploaded the files.The UUID of theuser profileof the uploader.getUUID()The UUID that identifies this upload request.The UUID that identifies this upload request.booleanbooleanvoidremoveAttachment(Attachment attachment) Removes the given attachment from the list of attachments, if such an attachment exists.voidsetAttachments(List<Attachment> attachments) voidsetFileMergeMode(EUploadRequestFileMergeMode fileMergeMode) WhengetFormFieldName()is set: how to handle existing files of the upload element.voidsetFormFieldName(String formFieldName) The name of the form field that this upload request is associated with.voidsetMessage(FormRecordMessage message) Each upload request is associated with a message that contains details for the end user regarding the upload, e.g. what is wrong with the existing file.voidsetRepetitionId(Long repetitionId) When thegetFormFieldName()refers to a repeated field, the repetition index of the field.voidsetUploadedInstant(Instant uploadedInstant) The timestamp when the upload was fulfilled. null if the request is still pending and files were uploaded yet.voidsetUploaderAuthRef(String uploaderAuthRef) Sets theuniversal reference IDto the user that uploaded the files.voidsetUploaderUserProfileUuid(UUID uploaderUserProfileUuid) voidThe UUID that identifies this upload request.voidsetUUIDObject(UUID uuid) The UUID that identifies this upload request.Methods inherited from class AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toStringMethods inherited from class AbstractEntity
asIntValue, isPersisted, setId, 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
isPersisted, setId
-
Field Details
-
ATTR_ATTACHMENTS
- See Also:
-
ATTR_FORM_FIELD_NAME
- See Also:
-
ATTR_MESSAGE
- See Also:
-
ATTR_REPETITION_ID
- See Also:
-
ATTR_UPLOADED_INSTANT
- See Also:
-
ATTR_UPLOADER_AUTH_REF
- See Also:
-
ATTR_UPLOADER_PROFILE_UUID
- See Also:
-
COL_ATTACHMENT_ID
- See Also:
-
COL_FILE_MERGE_MODE
- See Also:
-
COL_FORM_FIELD_NAME
- See Also:
-
COL_MSG_ID
- See Also:
-
COL_REPETITION_ID
- See Also:
-
COL_UPLOADED_TIMESTAMP
- See Also:
-
COL_UPLOAD_REQUEST_ID
- See Also:
-
COL_UPLOADER_AUTH_REF
- See Also:
-
COL_UPLOADER_PROFILE_UUID
- See Also:
-
-
Constructor Details
-
FormRecordMessageUploadRequest
public FormRecordMessageUploadRequest()
-
-
Method Details
-
getAttachments
-
setAttachments
-
getFileMergeMode
WhengetFormFieldName()is set: how to handle existing files of the upload element.- Returns:
- How to handle existing files of the upload element.
-
setFileMergeMode
WhengetFormFieldName()is set: how to handle existing files of the upload element.- Parameters:
fileMergeMode- How to handle existing files of the upload element.
-
getFormFieldName
The name of the form field that this upload request is associated with. When set and a file is uploaded, the files are associated with that upload element. Can be null when the upload request is not associated with an upload form field. See alsogetFileMergeMode().- Returns:
- The name of the form field that this upload request is associated with.
-
setFormFieldName
The name of the form field that this upload request is associated with. When set and a file is uploaded, the files are associated with that upload element. Can be null when the upload request is not associated with an upload form field. See alsogetFileMergeMode().- Parameters:
formFieldName- The name of the form field that this upload request is associated with.
-
getId
-
getMessage
Each upload request is associated with a message that contains details for the end user regarding the upload, e.g. what is wrong with the existing file.- Returns:
- The message owning this upload request.
-
setMessage
Each upload request is associated with a message that contains details for the end user regarding the upload, e.g. what is wrong with the existing file.- Parameters:
message- The message owning this upload request.
-
getRepetitionId
When thegetFormFieldName()refers to a repeated field, the repetition index of the field. When set, only the files for that repetition instance are changed when a file is uploaded. Note that the repetition index is not the ordinal index of the repetition, but a unique identifier. An ordinal index starts at 0 is continuous. An ID may be any unique value.- Returns:
- The repetition index of the field.
-
setRepetitionId
When thegetFormFieldName()refers to a repeated field, the repetition index of the field. When set, only the files for that repetition instance are changed when a file is uploaded. Note that the repetition index is not the ordinal index of the repetition, but a unique identifier. An ordinal index starts at 0 is continuous. An ID may be any unique value.- Parameters:
repetitionId- The repetition index of the field.
-
getUUID
The UUID that identifies this upload request. The UUID is globally unique within the system.- Specified by:
getUUIDin interfaceIUUIDEntity- Returns:
- The UUID that identifies this upload request.
-
setUUID
The UUID that identifies this upload request. The UUID is globally unique within the system.message.- Specified by:
setUUIDin interfaceIUUIDEntity- Parameters:
uuid- The UUID that identifies this upload request.
-
getUUIDObject
The UUID that identifies this upload request. The UUID is globally unique within the system.message.- Specified by:
getUUIDObjectin interfaceIUUIDEntity- Returns:
- The UUID that identifies this upload request.
-
setUUIDObject
-
getUploadedInstant
The timestamp when the upload was fulfilled. null if the request is still pending and files were uploaded yet.- Returns:
- The timestamp when the upload was fulfilled.
-
setUploadedInstant
The timestamp when the upload was fulfilled. null if the request is still pending and files were uploaded yet.- Parameters:
uploadedInstant- The timestamp when the upload was fulfilled.
-
getUploaderAuthRef
Theuniversal reference IDto the user that uploaded the files. Isnullif the upload is not yet fulfilled.- Returns:
- The universal reference ID of the uploader.
-
setUploaderAuthRef
Sets theuniversal reference IDto the user that uploaded the files.- Parameters:
uploaderAuthRef- The universal reference ID of the uploader.
-
getUploaderUserProfileUuid
The UUID of theuser profileof the uploader. May benullif the user did not have a user profile. There might not exist a user profile anymore for this UUID.- Returns:
- The UUID of the uploader's user profile.
-
setUploaderUserProfileUuid
-
isFulfilled
public boolean isFulfilled() -
isPending
public boolean isPending() -
removeAttachment
Removes the given attachment from the list of attachments, if such an attachment exists.- Parameters:
attachment- The attachment to remove.
-