public class AttachmentEntityImpl extends AbstractEntity implements AttachmentEntity, Serializable
Modifier and Type | Field and Description |
---|---|
protected ByteArrayEntity |
content |
protected String |
contentId |
protected String |
description |
protected String |
name |
protected String |
processInstanceId |
protected String |
taskId |
protected Date |
time |
protected String |
type |
protected String |
url |
protected String |
userId |
id, isDeleted, isInserted, isUpdated, revision
Constructor and Description |
---|
AttachmentEntityImpl() |
Modifier and Type | Method and Description |
---|---|
ByteArrayEntity |
getContent() |
String |
getContentId()
the id of the byte array entity storing the content
|
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 |
getName()
free user defined short (max 255 chars) name for this attachment
|
Object |
getPersistentState() |
String |
getProcessInstanceId()
reference to the process instance to which this attachment is associated.
|
String |
getTaskId()
reference to the task to which this attachment is associated.
|
Date |
getTime()
timestamp when this attachment was created
|
String |
getType()
indication of the type of content that this attachment refers to.
|
String |
getUrl()
the remote URL in case this is remote content.
|
String |
getUserId()
reference to the user who created this attachment.
|
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 |
setName(String name)
free user defined short (max 255 chars) name for this attachment
|
void |
setProcessInstanceId(String processInstanceId) |
void |
setTaskId(String taskId) |
void |
setTime(Date time)
timestamp when this attachment was created
|
void |
setType(String type) |
void |
setUrl(String url) |
void |
setUserId(String userId) |
getId, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setRevision, setUpdated
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
getId, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setUpdated
getRevision, getRevisionNext, setRevision
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 userId
protected Date time
public Object getPersistentState()
getPersistentState
in interface Entity
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)
setType
in interface AttachmentEntity
public String getTaskId()
Attachment
getTaskId
in interface Attachment
public void setTaskId(String taskId)
setTaskId
in interface AttachmentEntity
public String getProcessInstanceId()
Attachment
getProcessInstanceId
in interface Attachment
public void setProcessInstanceId(String processInstanceId)
setProcessInstanceId
in interface AttachmentEntity
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)
setUrl
in interface AttachmentEntity
public String getContentId()
Attachment
getContentId
in interface Attachment
public void setContentId(String contentId)
setContentId
in interface AttachmentEntity
public ByteArrayEntity getContent()
getContent
in interface AttachmentEntity
public void setContent(ByteArrayEntity content)
setContent
in interface AttachmentEntity
public void setUserId(String userId)
setUserId
in interface AttachmentEntity
public String getUserId()
Attachment
getUserId
in interface AttachmentEntity
getUserId
in interface Attachment
public Date getTime()
Attachment
getTime
in interface AttachmentEntity
getTime
in interface Attachment
public void setTime(Date time)
Attachment
setTime
in interface AttachmentEntity
setTime
in interface Attachment
Copyright © 2017 Flowable. All rights reserved.