public class AttachmentEntity extends Object implements Attachment, DbEntity, HasDbRevision, Serializable
Modifier and Type | Field and Description |
---|---|
protected ByteArrayEntity |
content |
protected String |
contentId |
protected String |
description |
protected String |
id |
protected String |
name |
protected String |
processInstanceId |
protected int |
revision |
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() |
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.
|
int |
getRevision() |
int |
getRevisionNext() |
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 |
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 |
setRevision(int revision) |
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
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)
Copyright © 2019. All rights reserved.