Class AttachmentEntityImpl
java.lang.Object
org.flowable.common.engine.impl.persistence.entity.AbstractEntity
org.flowable.engine.impl.persistence.entity.AbstractBpmnEngineEntity
org.flowable.engine.impl.persistence.entity.AttachmentEntityImpl
- All Implemented Interfaces:
Serializable,HasRevision,Entity,AttachmentEntity,Attachment
public class AttachmentEntityImpl
extends AbstractBpmnEngineEntity
implements AttachmentEntity, Serializable
- Author:
- Tom Baeyens
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ByteArrayEntityprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Dateprotected Stringprotected Stringprotected StringFields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionthe id of the byte array entity storing the contentlong (max 255 chars) explanation what this attachment is about in context of the task and/or process instance it's linked to.getName()free user defined short (max 255 chars) name for this attachmentReturns a representation of the object, as would be stored in the database.reference to the process instance to which this attachment is associated.reference to the task to which this attachment is associated.getTime()timestamp when this attachment was createdgetType()indication of the type of content that this attachment refers to.getUrl()the remote URL in case this is remote content.reference to the user who created this attachment.voidsetContent(ByteArrayEntity content) voidsetContentId(String contentId) voidsetDescription(String description) long (max 255 chars) explanation what this attachment is about in context of the task and/or process instance it's linked to.voidfree user defined short (max 255 chars) name for this attachmentvoidsetProcessInstanceId(String processInstanceId) voidvoidtimestamp when this attachment was createdvoidvoidvoidMethods inherited from class org.flowable.engine.impl.persistence.entity.AbstractBpmnEngineEntity
getIdPrefixMethods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
getId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdatedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.flowable.engine.task.Attachment
getIdMethods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getId, getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setUpdatedMethods inherited from interface org.flowable.common.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevision
-
Field Details
-
name
-
description
-
type
-
taskId
-
processInstanceId
-
url
-
contentId
-
-
userId
-
time
-
-
Constructor Details
-
AttachmentEntityImpl
public AttachmentEntityImpl()
-
-
Method Details
-
getPersistentState
Description copied from interface:EntityReturns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.- Specified by:
getPersistentStatein interfaceEntity
-
getName
Description copied from interface:Attachmentfree user defined short (max 255 chars) name for this attachment- Specified by:
getNamein interfaceAttachment
-
setName
Description copied from interface:Attachmentfree user defined short (max 255 chars) name for this attachment- Specified by:
setNamein interfaceAttachment
-
getDescription
Description copied from interface:Attachmentlong (max 255 chars) explanation what this attachment is about in context of the task and/or process instance it's linked to.- Specified by:
getDescriptionin interfaceAttachment
-
setDescription
Description copied from interface:Attachmentlong (max 255 chars) explanation what this attachment is about in context of the task and/or process instance it's linked to.- Specified by:
setDescriptionin interfaceAttachment
-
getType
Description copied from interface:Attachmentindication of the type of content that this attachment refers to. Can be mime type or any other indication.- Specified by:
getTypein interfaceAttachment
-
setType
- Specified by:
setTypein interfaceAttachmentEntity
-
getTaskId
Description copied from interface:Attachmentreference to the task to which this attachment is associated.- Specified by:
getTaskIdin interfaceAttachment
-
setTaskId
- Specified by:
setTaskIdin interfaceAttachmentEntity
-
getProcessInstanceId
Description copied from interface:Attachmentreference to the process instance to which this attachment is associated.- Specified by:
getProcessInstanceIdin interfaceAttachment
-
setProcessInstanceId
- Specified by:
setProcessInstanceIdin interfaceAttachmentEntity
-
getUrl
Description copied from interface:Attachmentthe remote URL in case this is remote content. If the attachment content wasuploaded with an input stream, then this method returns null and the content can be fetched withTaskService.getAttachmentContent(String).- Specified by:
getUrlin interfaceAttachment
-
setUrl
- Specified by:
setUrlin interfaceAttachmentEntity
-
getContentId
Description copied from interface:Attachmentthe id of the byte array entity storing the content- Specified by:
getContentIdin interfaceAttachment
-
setContentId
- Specified by:
setContentIdin interfaceAttachmentEntity
-
getContent
- Specified by:
getContentin interfaceAttachmentEntity
-
setContent
- Specified by:
setContentin interfaceAttachmentEntity
-
setUserId
- Specified by:
setUserIdin interfaceAttachmentEntity
-
getUserId
Description copied from interface:Attachmentreference to the user who created this attachment.- Specified by:
getUserIdin interfaceAttachment- Specified by:
getUserIdin interfaceAttachmentEntity
-
getTime
Description copied from interface:Attachmenttimestamp when this attachment was created- Specified by:
getTimein interfaceAttachment- Specified by:
getTimein interfaceAttachmentEntity
-
setTime
Description copied from interface:Attachmenttimestamp when this attachment was created- Specified by:
setTimein interfaceAttachment- Specified by:
setTimein interfaceAttachmentEntity
-