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()
BaseElement
getId
in interface BaseElement
public String getName()
NamedElement
getName
in interface NamedElement
public void setName(String name)
public void setFileName(String fileName)
public String getFileName()
public long getProcessInstanceId()
Document
getProcessInstanceId
in interface Document
public void setProcessInstanceId(long processInstanceId)
public boolean hasContent()
Document
hasContent
in interface Document
public void setHasContent(boolean hasContent)
public void setContentMimeType(String contentMimeType)
public String getContentMimeType()
Document
getContentMimeType
in interface Document
public long getAuthor()
Document
public String getContentFileName()
Document
getContentFileName
in interface Document
public Date getCreationDate()
Document
getCreationDate
in interface Document
public String getUrl()
Document
public void setUrl(String url)
public void setId(long id)
public void setAuthor(long author)
public void setCreationDate(Date creationDate)
public String getContentStorageId()
Document
getContentStorageId
in interface Document
public void setContentStorageId(String contentStorageId)
public String getVersion()
Document
getVersion
in interface Document
public void setVersion(String version)
public String getDescription()
getDescription
in interface Document
public void setDescription(String description)
public void setIndex(int index)
Copyright © 2020 Bonitasoft S.A. All rights reserved.