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 ByteArrayEntity
protected String
protected String
protected String
protected String
protected String
protected Date
protected String
protected String
protected String
Fields 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.void
setContent
(ByteArrayEntity content) void
setContentId
(String contentId) void
setDescription
(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.void
free user defined short (max 255 chars) name for this attachmentvoid
setProcessInstanceId
(String processInstanceId) void
void
timestamp when this attachment was createdvoid
void
void
Methods inherited from class org.flowable.engine.impl.persistence.entity.AbstractBpmnEngineEntity
getIdPrefix
Methods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
getId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdated
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.flowable.engine.task.Attachment
getId
Methods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getId, getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setUpdated
Methods 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:Entity
Returns 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:
getPersistentState
in interfaceEntity
-
getName
Description copied from interface:Attachment
free user defined short (max 255 chars) name for this attachment- Specified by:
getName
in interfaceAttachment
-
setName
Description copied from interface:Attachment
free user defined short (max 255 chars) name for this attachment- Specified by:
setName
in interfaceAttachment
-
getDescription
Description copied from interface:Attachment
long (max 255 chars) explanation what this attachment is about in context of the task and/or process instance it's linked to.- Specified by:
getDescription
in interfaceAttachment
-
setDescription
Description copied from interface:Attachment
long (max 255 chars) explanation what this attachment is about in context of the task and/or process instance it's linked to.- Specified by:
setDescription
in interfaceAttachment
-
getType
Description copied from interface:Attachment
indication of the type of content that this attachment refers to. Can be mime type or any other indication.- Specified by:
getType
in interfaceAttachment
-
setType
- Specified by:
setType
in interfaceAttachmentEntity
-
getTaskId
Description copied from interface:Attachment
reference to the task to which this attachment is associated.- Specified by:
getTaskId
in interfaceAttachment
-
setTaskId
- Specified by:
setTaskId
in interfaceAttachmentEntity
-
getProcessInstanceId
Description copied from interface:Attachment
reference to the process instance to which this attachment is associated.- Specified by:
getProcessInstanceId
in interfaceAttachment
-
setProcessInstanceId
- Specified by:
setProcessInstanceId
in interfaceAttachmentEntity
-
getUrl
Description copied from interface:Attachment
the 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:
getUrl
in interfaceAttachment
-
setUrl
- Specified by:
setUrl
in interfaceAttachmentEntity
-
getContentId
Description copied from interface:Attachment
the id of the byte array entity storing the content- Specified by:
getContentId
in interfaceAttachment
-
setContentId
- Specified by:
setContentId
in interfaceAttachmentEntity
-
getContent
- Specified by:
getContent
in interfaceAttachmentEntity
-
setContent
- Specified by:
setContent
in interfaceAttachmentEntity
-
setUserId
- Specified by:
setUserId
in interfaceAttachmentEntity
-
getUserId
Description copied from interface:Attachment
reference to the user who created this attachment.- Specified by:
getUserId
in interfaceAttachment
- Specified by:
getUserId
in interfaceAttachmentEntity
-
getTime
Description copied from interface:Attachment
timestamp when this attachment was created- Specified by:
getTime
in interfaceAttachment
- Specified by:
getTime
in interfaceAttachmentEntity
-
setTime
Description copied from interface:Attachment
timestamp when this attachment was created- Specified by:
setTime
in interfaceAttachment
- Specified by:
setTime
in interfaceAttachmentEntity
-