Class AttachmentEntity
- java.lang.Object
-
- org.camunda.bpm.engine.impl.persistence.entity.AttachmentEntity
-
- All Implemented Interfaces:
java.io.Serializable,DbEntity,HasDbRevision,HistoricEntity,Attachment
public class AttachmentEntity extends java.lang.Object implements Attachment, DbEntity, HasDbRevision, HistoricEntity, java.io.Serializable
- Author:
- Tom Baeyens
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ByteArrayEntitycontentprotected java.lang.StringcontentIdprotected java.util.DatecreateTimeprotected java.lang.Stringdescriptionprotected java.lang.Stringidprotected java.lang.Stringnameprotected java.lang.StringprocessInstanceIdprotected java.util.DateremovalTimeprotected intrevisionprotected java.lang.StringrootProcessInstanceIdprotected java.lang.StringtaskIdprotected java.lang.StringtenantIdprotected java.lang.Stringtypeprotected java.lang.Stringurl
-
Constructor Summary
Constructors Constructor Description AttachmentEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteArrayEntitygetContent()java.lang.StringgetContentId()java.util.DategetCreateTime()The time when the attachment was created.java.lang.StringgetDescription()long (max 255 chars) explanation what this attachment is about in context of the task and/or process instance it's linked to.java.lang.StringgetId()unique id for this attachmentjava.lang.StringgetName()free user defined short (max 255 chars) name for this attachmentjava.lang.ObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.java.lang.StringgetProcessInstanceId()reference to the process instance to which this attachment is associated.java.util.DategetRemovalTime()The time the historic attachment will be removed.intgetRevision()intgetRevisionNext()java.lang.StringgetRootProcessInstanceId()reference to the root process instance id of the process instance on which this attachment was madejava.lang.StringgetTaskId()reference to the task to which this attachment is associated.java.lang.StringgetTenantId()java.lang.StringgetType()indication of the type of content that this attachment refers to.java.lang.StringgetUrl()the remote URL in case this is remote content.voidsetContent(ByteArrayEntity content)voidsetContentId(java.lang.String contentId)voidsetCreateTime(java.util.Date createTime)voidsetDescription(java.lang.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.voidsetId(java.lang.String id)voidsetName(java.lang.String name)free user defined short (max 255 chars) name for this attachmentvoidsetProcessInstanceId(java.lang.String processInstanceId)voidsetRemovalTime(java.util.Date removalTime)voidsetRevision(int revision)voidsetRootProcessInstanceId(java.lang.String rootProcessInstanceId)voidsetTaskId(java.lang.String taskId)voidsetTenantId(java.lang.String tenantId)voidsetType(java.lang.String type)voidsetUrl(java.lang.String url)java.lang.StringtoString()
-
-
-
Field Detail
-
id
protected java.lang.String id
-
revision
protected int revision
-
name
protected java.lang.String name
-
description
protected java.lang.String description
-
type
protected java.lang.String type
-
taskId
protected java.lang.String taskId
-
processInstanceId
protected java.lang.String processInstanceId
-
url
protected java.lang.String url
-
contentId
protected java.lang.String contentId
-
content
protected ByteArrayEntity content
-
tenantId
protected java.lang.String tenantId
-
createTime
protected java.util.Date createTime
-
rootProcessInstanceId
protected java.lang.String rootProcessInstanceId
-
removalTime
protected java.util.Date removalTime
-
-
Method Detail
-
getPersistentState
public java.lang.Object getPersistentState()
Description copied from interface:DbEntityReturns 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 interfaceDbEntity
-
getRevisionNext
public int getRevisionNext()
- Specified by:
getRevisionNextin interfaceHasDbRevision
-
getId
public java.lang.String getId()
Description copied from interface:Attachmentunique id for this attachment- Specified by:
getIdin interfaceAttachment- Specified by:
getIdin interfaceDbEntity
-
getRevision
public int getRevision()
- Specified by:
getRevisionin interfaceHasDbRevision
-
setRevision
public void setRevision(int revision)
- Specified by:
setRevisionin interfaceHasDbRevision
-
getName
public java.lang.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(java.lang.String name)
Description copied from interface:Attachmentfree user defined short (max 255 chars) name for this attachment- Specified by:
setNamein interfaceAttachment
-
getDescription
public java.lang.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(java.lang.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 java.lang.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(java.lang.String type)
-
getTaskId
public java.lang.String getTaskId()
Description copied from interface:Attachmentreference to the task to which this attachment is associated.- Specified by:
getTaskIdin interfaceAttachment
-
setTaskId
public void setTaskId(java.lang.String taskId)
-
getProcessInstanceId
public java.lang.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(java.lang.String processInstanceId)
-
getUrl
public java.lang.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(java.lang.String url)
-
getContentId
public java.lang.String getContentId()
-
setContentId
public void setContentId(java.lang.String contentId)
-
getContent
public ByteArrayEntity getContent()
-
setContent
public void setContent(ByteArrayEntity content)
-
getTenantId
public java.lang.String getTenantId()
-
setTenantId
public void setTenantId(java.lang.String tenantId)
-
getCreateTime
public java.util.Date getCreateTime()
Description copied from interface:AttachmentThe time when the attachment was created.- Specified by:
getCreateTimein interfaceAttachment
-
setCreateTime
public void setCreateTime(java.util.Date createTime)
-
getRootProcessInstanceId
public java.lang.String getRootProcessInstanceId()
Description copied from interface:Attachmentreference to the root process instance id of the process instance on which this attachment was made- Specified by:
getRootProcessInstanceIdin interfaceAttachment
-
getRemovalTime
public java.util.Date getRemovalTime()
Description copied from interface:AttachmentThe time the historic attachment will be removed.- Specified by:
getRemovalTimein interfaceAttachment
-
setRemovalTime
public void setRemovalTime(java.util.Date removalTime)
-
setRootProcessInstanceId
public void setRootProcessInstanceId(java.lang.String rootProcessInstanceId)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-