public class DocumentImpl extends Object implements Document
| Constructor and Description |
|---|
DocumentImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getAuthor()
Get the username of the user who attached the document to the process instance.
|
String |
getContentFileName()
Get the file name of the document.
|
String |
getContentMimeType()
Get the mime type of the document's content.
|
String |
getContentStorageId()
Get the Id to use to retrieve the document's content.
|
Date |
getCreationDate()
Get the date when the document was attached to the process instance.
|
String |
getDescription() |
String |
getFileName() |
long |
getId()
Gets the unique object identifier.
|
int |
getIndex() |
String |
getName()
Gets the element name.
|
long |
getProcessInstanceId()
Id of the process instance the document is attached to.
|
String |
getUrl()
Download URL of the document.
|
String |
getVersion()
The version of the document is starting from 1 and is incremented each time a new version is attached
|
boolean |
hasContent()
Returns true if he document has content.
|
int |
hashCode() |
void |
setAuthor(long author) |
void |
setContentMimeType(String contentMimeType) |
void |
setContentStorageId(String contentStorageId) |
void |
setCreationDate(Date creationDate) |
void |
setDescription(String description) |
void |
setFileName(String fileName) |
void |
setHasContent(boolean hasContent) |
void |
setId(long id) |
void |
setIndex(int index) |
void |
setName(String name) |
void |
setProcessInstanceId(long processInstanceId) |
void |
setUrl(String url) |
void |
setVersion(String version) |
String |
toString() |
public long getId()
BaseElementgetId in interface BaseElementpublic String getName()
NamedElementgetName in interface NamedElementpublic void setName(String name)
public void setFileName(String fileName)
public String getFileName()
public long getProcessInstanceId()
DocumentgetProcessInstanceId in interface Documentpublic void setProcessInstanceId(long processInstanceId)
public boolean hasContent()
DocumenthasContent in interface Documentpublic void setHasContent(boolean hasContent)
public void setContentMimeType(String contentMimeType)
public String getContentMimeType()
DocumentgetContentMimeType in interface Documentpublic long getAuthor()
Documentpublic String getContentFileName()
DocumentgetContentFileName in interface Documentpublic Date getCreationDate()
DocumentgetCreationDate in interface Documentpublic String getUrl()
Documentpublic void setUrl(String url)
public void setId(long id)
public void setAuthor(long author)
public void setCreationDate(Date creationDate)
public String getContentStorageId()
DocumentgetContentStorageId in interface Documentpublic void setContentStorageId(String contentStorageId)
public String getVersion()
DocumentgetVersion in interface Documentpublic void setVersion(String version)
public String getDescription()
getDescription in interface Documentpublic void setDescription(String description)
public void setIndex(int index)
Copyright © 2018 Bonitasoft S.A.. All rights reserved.