public class AttachmentEntityImpl extends Object implements AttachmentEntity, 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 Date |
time |
protected String |
type |
protected String |
url |
protected String |
userId |
| 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 |
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.
|
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 |
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 |
setTime(Date time)
timestamp when this attachment was created
|
void |
setType(String type) |
void |
setUrl(String url) |
void |
setUserId(String userId) |
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 userId
protected Date time
public Object getPersistentState()
EntitygetPersistentState in interface Entitypublic int getRevisionNext()
getRevisionNext in interface HasRevisionpublic String getId()
AttachmentgetId in interface EntitygetId in interface Attachmentpublic int getRevision()
getRevision in interface HasRevisionpublic void setRevision(int revision)
setRevision in interface HasRevisionpublic 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)
setType in interface AttachmentEntitypublic String getTaskId()
AttachmentgetTaskId in interface Attachmentpublic void setTaskId(String taskId)
setTaskId in interface AttachmentEntitypublic String getProcessInstanceId()
AttachmentgetProcessInstanceId in interface Attachmentpublic void setProcessInstanceId(String processInstanceId)
setProcessInstanceId in interface AttachmentEntitypublic 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)
setUrl in interface AttachmentEntitypublic String getContentId()
AttachmentgetContentId in interface Attachmentpublic void setContentId(String contentId)
setContentId in interface AttachmentEntitypublic ByteArrayEntity getContent()
getContent in interface AttachmentEntitypublic void setContent(ByteArrayEntity content)
setContent in interface AttachmentEntitypublic void setUserId(String userId)
setUserId in interface AttachmentEntitypublic String getUserId()
AttachmentgetUserId in interface AttachmentEntitygetUserId in interface Attachmentpublic Date getTime()
AttachmentgetTime in interface AttachmentEntitygetTime in interface Attachmentpublic void setTime(Date time)
AttachmentsetTime in interface AttachmentEntitysetTime in interface AttachmentCopyright © 2015 Alfresco. All rights reserved.