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 |
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 |
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 |
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
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)
Copyright © 2018. All rights reserved.