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()
DbEntity
getPersistentState
in interface DbEntity
public int getRevisionNext()
getRevisionNext
in interface HasDbRevision
public String getId()
Attachment
getId
in interface DbEntity
getId
in interface Attachment
public int getRevision()
getRevision
in interface HasDbRevision
public void setRevision(int revision)
setRevision
in interface HasDbRevision
public String getName()
Attachment
getName
in interface Attachment
public void setName(String name)
Attachment
setName
in interface Attachment
public String getDescription()
Attachment
getDescription
in interface Attachment
public void setDescription(String description)
Attachment
setDescription
in interface Attachment
public String getType()
Attachment
getType
in interface Attachment
public void setType(String type)
public String getTaskId()
Attachment
getTaskId
in interface Attachment
public void setTaskId(String taskId)
public String getProcessInstanceId()
Attachment
getProcessInstanceId
in interface Attachment
public void setProcessInstanceId(String processInstanceId)
public String getUrl()
Attachment
uploaded with an input stream
,
then this method returns null and the content can be fetched with TaskService.getAttachmentContent(String)
.getUrl
in interface Attachment
public 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()
Attachment
getCreateTime
in interface Attachment
public void setCreateTime(Date createTime)
public String getRootProcessInstanceId()
Attachment
getRootProcessInstanceId
in interface Attachment
public Date getRemovalTime()
Attachment
getRemovalTime
in interface Attachment
public void setRemovalTime(Date removalTime)
public void setRootProcessInstanceId(String rootProcessInstanceId)
Copyright © 2019. All rights reserved.