public class AttachmentEntity extends Object implements Attachment, DbEntity, HasDbRevision, HistoricEntity, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected ByteArrayEntity |
content |
protected String |
contentId |
protected Date |
createTime |
protected String |
description |
protected String |
id |
protected String |
name |
protected String |
processInstanceId |
protected Date |
removalTime |
protected int |
revision |
protected String |
rootProcessInstanceId |
protected String |
taskId |
protected String |
tenantId |
protected String |
type |
protected String |
url |
| Constructor and Description |
|---|
AttachmentEntity() |
| Modifier and Type | Method and Description |
|---|---|
ByteArrayEntity |
getContent() |
String |
getContentId() |
Date |
getCreateTime()
The time when the attachment was created.
|
String |
getDescription()
long (max 255 chars) explanation what this attachment is about in context of the task and/or process instance it's linked to.
|
String |
getId()
unique id for this attachment
|
String |
getName()
free user defined short (max 255 chars) name for this attachment
|
Object |
getPersistentState()
Returns a representation of the object,
as would be stored in the database.
|
String |
getProcessInstanceId()
reference to the process instance to which this attachment is associated.
|
Date |
getRemovalTime()
The time the historic attachment will be removed.
|
int |
getRevision() |
int |
getRevisionNext() |
String |
getRootProcessInstanceId()
reference to the root process instance id of the process instance on which this attachment was made
|
String |
getTaskId()
reference to the task to which this attachment is associated.
|
String |
getTenantId() |
String |
getType()
indication of the type of content that this attachment refers to.
|
String |
getUrl()
the remote URL in case this is remote content.
|
void |
setContent(ByteArrayEntity content) |
void |
setContentId(String contentId) |
void |
setCreateTime(Date createTime) |
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 |
setId(String id) |
void |
setName(String name)
free user defined short (max 255 chars) name for this attachment
|
void |
setProcessInstanceId(String processInstanceId) |
void |
setRemovalTime(Date removalTime) |
void |
setRevision(int revision) |
void |
setRootProcessInstanceId(String rootProcessInstanceId) |
void |
setTaskId(String taskId) |
void |
setTenantId(String tenantId) |
void |
setType(String type) |
void |
setUrl(String url) |
String |
toString() |
protected String id
protected int revision
protected String name
protected String description
protected String type
protected String taskId
protected String processInstanceId
protected String url
protected String contentId
protected ByteArrayEntity content
protected String tenantId
protected Date createTime
protected String rootProcessInstanceId
protected Date removalTime
public Object getPersistentState()
DbEntitygetPersistentState in interface DbEntitypublic int getRevisionNext()
getRevisionNext in interface HasDbRevisionpublic String getId()
AttachmentgetId in interface DbEntitygetId in interface Attachmentpublic int getRevision()
getRevision in interface HasDbRevisionpublic void setRevision(int revision)
setRevision in interface HasDbRevisionpublic String getName()
AttachmentgetName in interface Attachmentpublic void setName(String name)
AttachmentsetName in interface Attachmentpublic String getDescription()
AttachmentgetDescription in interface Attachmentpublic void setDescription(String description)
AttachmentsetDescription in interface Attachmentpublic String getType()
AttachmentgetType in interface Attachmentpublic void setType(String type)
public String getTaskId()
AttachmentgetTaskId in interface Attachmentpublic void setTaskId(String taskId)
public String getProcessInstanceId()
AttachmentgetProcessInstanceId in interface Attachmentpublic void setProcessInstanceId(String processInstanceId)
public String getUrl()
Attachmentuploaded with an input stream,
then this method returns null and the content can be fetched with TaskService.getAttachmentContent(String).getUrl in interface Attachmentpublic void setUrl(String url)
public String getContentId()
public void setContentId(String contentId)
public ByteArrayEntity getContent()
public void setContent(ByteArrayEntity content)
public String getTenantId()
public void setTenantId(String tenantId)
public Date getCreateTime()
AttachmentgetCreateTime in interface Attachmentpublic void setCreateTime(Date createTime)
public String getRootProcessInstanceId()
AttachmentgetRootProcessInstanceId in interface Attachmentpublic Date getRemovalTime()
AttachmentgetRemovalTime in interface Attachmentpublic void setRemovalTime(Date removalTime)
public void setRootProcessInstanceId(String rootProcessInstanceId)
Copyright © 2022. All rights reserved.