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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ByteArrayEntitycontentprotected StringcontentIdprotected Stringdescriptionprotected Stringnameprotected StringprocessInstanceIdprotected StringtaskIdprotected Datetimeprotected Stringtypeprotected Stringurlprotected StringuserId-
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision
-
-
Constructor Summary
Constructors Constructor Description AttachmentEntityImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteArrayEntitygetContent()StringgetContentId()the id of the byte array entity storing the contentStringgetDescription()long (max 255 chars) explanation what this attachment is about in context of the task and/or process instance it's linked to.StringgetName()free user defined short (max 255 chars) name for this attachmentObjectgetPersistentState()StringgetProcessInstanceId()reference to the process instance to which this attachment is associated.StringgetTaskId()reference to the task to which this attachment is associated.DategetTime()timestamp when this attachment was createdStringgetType()indication of the type of content that this attachment refers to.StringgetUrl()the remote URL in case this is remote content.StringgetUserId()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.voidsetName(String name)free user defined short (max 255 chars) name for this attachmentvoidsetProcessInstanceId(String processInstanceId)voidsetTaskId(String taskId)voidsetTime(Date time)timestamp when this attachment was createdvoidsetType(String type)voidsetUrl(String url)voidsetUserId(String userId)-
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 Detail
-
name
protected String name
-
description
protected String description
-
type
protected String type
-
taskId
protected String taskId
-
processInstanceId
protected String processInstanceId
-
url
protected String url
-
contentId
protected String contentId
-
content
protected ByteArrayEntity content
-
userId
protected String userId
-
time
protected Date time
-
-
Method Detail
-
getPersistentState
public Object getPersistentState()
- Specified by:
getPersistentStatein interfaceEntity
-
getName
public String getName()
Description copied from interface:Attachmentfree user defined short (max 255 chars) name for this attachment- Specified by:
getNamein interfaceAttachment
-
setName
public void setName(String name)
Description copied from interface:Attachmentfree user defined short (max 255 chars) name for this attachment- Specified by:
setNamein interfaceAttachment
-
getDescription
public String 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
public void setDescription(String description)
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
public String 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
public void setType(String type)
- Specified by:
setTypein interfaceAttachmentEntity
-
getTaskId
public String getTaskId()
Description copied from interface:Attachmentreference to the task to which this attachment is associated.- Specified by:
getTaskIdin interfaceAttachment
-
setTaskId
public void setTaskId(String taskId)
- Specified by:
setTaskIdin interfaceAttachmentEntity
-
getProcessInstanceId
public String getProcessInstanceId()
Description copied from interface:Attachmentreference to the process instance to which this attachment is associated.- Specified by:
getProcessInstanceIdin interfaceAttachment
-
setProcessInstanceId
public void setProcessInstanceId(String processInstanceId)
- Specified by:
setProcessInstanceIdin interfaceAttachmentEntity
-
getUrl
public String 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
public void setUrl(String url)
- Specified by:
setUrlin interfaceAttachmentEntity
-
getContentId
public String getContentId()
Description copied from interface:Attachmentthe id of the byte array entity storing the content- Specified by:
getContentIdin interfaceAttachment
-
setContentId
public void setContentId(String contentId)
- Specified by:
setContentIdin interfaceAttachmentEntity
-
getContent
public ByteArrayEntity getContent()
- Specified by:
getContentin interfaceAttachmentEntity
-
setContent
public void setContent(ByteArrayEntity content)
- Specified by:
setContentin interfaceAttachmentEntity
-
setUserId
public void setUserId(String userId)
- Specified by:
setUserIdin interfaceAttachmentEntity
-
getUserId
public String getUserId()
Description copied from interface:Attachmentreference to the user who created this attachment.- Specified by:
getUserIdin interfaceAttachment- Specified by:
getUserIdin interfaceAttachmentEntity
-
getTime
public Date getTime()
Description copied from interface:Attachmenttimestamp when this attachment was created- Specified by:
getTimein interfaceAttachment- Specified by:
getTimein interfaceAttachmentEntity
-
setTime
public void setTime(Date time)
Description copied from interface:Attachmenttimestamp when this attachment was created- Specified by:
setTimein interfaceAttachment- Specified by:
setTimein interfaceAttachmentEntity
-
-