public abstract class AbstractDocument extends ExtensibleObject implements TransactionalObject
Each document has one or more Versions. The most recent version is the one used as default when we refer to a Document, but all previous versions are accessible from the history even if the are not indexed.
Each Version carries out two main informations, the version code itself that is called simply 'version', and the file version, called 'fileVersion'. The first identified the Version itself while the second refers to the file content. In general not all updates to a document involves the upload of a new file. A Document is written in a single language, this language defines the full-text index in which the document's content will be stored.
Modifier and Type | Field and Description |
---|---|
static int |
BARCODE_PROCESSED |
static int |
BARCODE_SKIP |
static int |
BARCODE_TO_PROCESS |
static int |
DOC_CHECKED_OUT |
static int |
DOC_LOCKED |
static int |
DOC_UNLOCKED |
static int |
EXPORT_LOCKED |
static int |
EXPORT_UNLOCKED |
static int |
INDEX_INDEXED |
static int |
INDEX_SKIP |
static int |
INDEX_TO_INDEX |
Constructor and Description |
---|
AbstractDocument() |
Modifier and Type | Method and Description |
---|---|
void |
addTag(String word) |
void |
clearTags() |
int |
getBarcoded() |
String |
getComment() |
String |
getCoverage()
The coverage of the document (form document's metadata)
|
Date |
getCreation()
The document's creation date
|
String |
getCreator() |
long |
getCreatorId() |
String |
getCustomId()
Each document can be identified with a custom identifier
|
Date |
getDate()
The document's last publication date.
|
Long |
getDeleteUserId() |
String |
getDigest()
The document's digest
|
Long |
getDocRef()
If the document is an alias, it is the id of the referenced document
|
Long |
getExportId()
The last archive in which the document was exported
|
String |
getExportName()
The last archive name in which the document was exported
|
int |
getExportStatus()
The document export status
|
String |
getExportVersion()
The last exported version
|
String |
getExtResId() |
String |
getFileExtension() |
String |
getFileName()
The original file name
|
long |
getFileSize()
The document's file size expressed in bytes
|
String |
getFileVersion()
The working file version.
|
Folder |
getFolder()
Retrieve the folder owning this document
|
String |
getIcon()
The icon for this document, it may be kept from file name extension
|
int |
getImmutable()
Defines if the document is immutable
|
int |
getIndexed() |
String |
getLanguage()
The document's language.
|
Locale |
getLocale() |
Long |
getLockUserId()
The id of the user that locked this document and that currently locks it
|
String |
getObject() |
int |
getPublished() |
String |
getPublisher()
The username that published this document
|
long |
getPublisherId()
The user id of the user that published this document
|
Integer |
getRating() |
String |
getRecipient()
The document's recipient
|
int |
getSigned()
Return 1 if the document was signed
|
String |
getSource()
Indication of the document's source
|
String |
getSourceAuthor()
The author of the document (form document's metadata)
|
Date |
getSourceDate()
The date of the document (form document's metadata)
|
String |
getSourceId() |
String |
getSourceType()
The type of the document (form document's metadata)
|
Date |
getStartPublishing() |
int |
getStatus()
The document status
|
Date |
getStopPublishing() |
Set<String> |
getTags()
The set of tags for this document.
|
String |
getTagsString() |
DocumentTemplate |
getTemplate() |
String |
getTgs() |
String |
getTitle()
In general a document has a title.
|
String |
getTransactionId()
Unique ID of the transaction
|
String |
getType()
The document type
|
String |
getVersion()
The working version (the most recent version)
|
String |
getWorkflowStatus() |
boolean |
isPublishing() |
boolean |
isToIndex() |
void |
setBarcoded(int barcoded) |
void |
setComment(String comment) |
void |
setCoverage(String coverage) |
void |
setCreation(Date creation) |
void |
setCreator(String creator) |
void |
setCreatorId(long creatorId) |
void |
setCustomId(String customId) |
void |
setDate(Date date) |
void |
setDeleteUserId(Long deleteUserId) |
void |
setDigest(String digest) |
void |
setDocRef(Long docRef) |
void |
setExportId(Long exportId) |
void |
setExportName(String exportName) |
void |
setExportStatus(int exportStatus) |
void |
setExportVersion(String exportVersion) |
void |
setExtResId(String extResId) |
void |
setFileName(String fileName) |
void |
setFileSize(long fileSize) |
void |
setFileVersion(String fileVersion) |
void |
setFolder(Folder folder) |
void |
setImmutable(int immutable) |
void |
setIndexed(int indexed) |
void |
setLanguage(String language) |
void |
setLocale(Locale locale) |
void |
setLockUserId(Long lockUserId) |
void |
setObject(String object) |
void |
setPublished(int published) |
void |
setPublisher(String publisher) |
void |
setPublisherId(long publisherId) |
void |
setRating(Integer rating) |
void |
setRecipient(String recipient) |
void |
setSigned(int signed) |
void |
setSource(String source) |
void |
setSourceAuthor(String sourceAuthor) |
void |
setSourceDate(Date sourceDate) |
void |
setSourceId(String sourceId) |
void |
setSourceType(String sourceType) |
void |
setStartPublishing(Date startPublishing) |
void |
setStatus(int status) |
void |
setStopPublishing(Date stopPublishing) |
void |
setTags(Set<String> tags) |
void |
setTemplate(DocumentTemplate template) |
void |
setTgs(String tgs) |
void |
setTitle(String title) |
void |
setTransactionId(String transactionId) |
void |
setType(String type) |
void |
setVersion(String version)
Iterates over the versions searching for the specified id
|
void |
setWorkflowStatus(String workflowStatus) |
getAttributeAtPosition, getAttributeNames, getAttributes, getExtendedAttribute, getValue, removeAttribute, setAttributes, setValue
equals, getDeleted, getId, getLastModified, hashCode, setDeleted, setId, setLastModified, toString
public static final int DOC_UNLOCKED
public static final int DOC_CHECKED_OUT
public static final int DOC_LOCKED
public static final int EXPORT_UNLOCKED
public static final int EXPORT_LOCKED
public static final int INDEX_TO_INDEX
public static final int INDEX_INDEXED
public static final int INDEX_SKIP
public static final int BARCODE_TO_PROCESS
public static final int BARCODE_PROCESSED
public static final int BARCODE_SKIP
public Long getDeleteUserId()
public void setDeleteUserId(Long deleteUserId)
public int getStatus()
DOC_UNLOCKED
,
DOC_CHECKED_OUT
,
DOC_LOCKED
public void setStatus(int status)
public String getTitle()
public void setTitle(String title)
public String getVersion()
public void setVersion(String version)
id
- The version idpublic Date getDate()
public void setDate(Date date)
public long getPublisherId()
public void setPublisherId(long publisherId)
public String getPublisher()
public void setPublisher(String publisher)
public String getType()
public void setType(String type)
public Long getLockUserId()
public void setLockUserId(Long lockUserId)
public String getSource()
public void setSource(String source)
public String getSourceAuthor()
public void setSourceAuthor(String sourceAuthor)
public Date getSourceDate()
public void setSourceDate(Date sourceDate)
public String getSourceType()
public void setSourceType(String sourceType)
public String getCoverage()
public void setCoverage(String coverage)
public String getLanguage()
public void setLanguage(String language)
setLanguage(java.lang.String)
public int getIndexed()
public void setIndexed(int indexed)
public String getTagsString()
public String getFileName()
public void setFileName(String fileName)
public String getIcon()
public long getFileSize()
public void setFileSize(long fileSize)
public Folder getFolder()
public void setFolder(Folder folder)
public void addTag(String word)
public void clearTags()
public String getFileExtension()
public DocumentTemplate getTemplate()
public void setTemplate(DocumentTemplate template)
public Date getCreation()
public void setCreation(Date creation)
public String getCustomId()
public void setCustomId(String customId)
public int getImmutable()
public void setImmutable(int immutable)
public String getSourceId()
public void setSourceId(String sourceId)
public String getObject()
public void setObject(String object)
public String getDigest()
public void setDigest(String digest)
public String getRecipient()
public void setRecipient(String recipient)
public int getSigned()
public void setSigned(int signed)
public String getFileVersion()
public void setFileVersion(String fileVersion)
public long getCreatorId()
public void setCreatorId(long creatorId)
public String getCreator()
public void setCreator(String creator)
public Locale getLocale()
public void setLocale(Locale locale)
public int getExportStatus()
EXPORT_UNLOCKED
,
EXPORT_LOCKED
public void setExportStatus(int exportStatus)
public String getExportVersion()
public void setExportVersion(String exportVersion)
public String getExportName()
public void setExportName(String exportName)
public Long getExportId()
public void setExportId(Long exportId)
public Long getDocRef()
public void setDocRef(Long docRef)
public boolean isToIndex()
public int getBarcoded()
public void setBarcoded(int barcoded)
public Integer getRating()
public void setRating(Integer rating)
public String getComment()
getComment()
public void setComment(String comment)
setComment(java.lang.String)
public String getWorkflowStatus()
public void setWorkflowStatus(String workflowStatus)
public int getPublished()
public void setPublished(int published)
public Date getStartPublishing()
public void setStartPublishing(Date startPublishing)
public Date getStopPublishing()
public void setStopPublishing(Date stopPublishing)
public boolean isPublishing()
public String getTransactionId()
TransactionalObject
getTransactionId
in interface TransactionalObject
public void setTransactionId(String transactionId)
setTransactionId
in interface TransactionalObject
public String getTgs()
public void setTgs(String tgs)
public String getExtResId()
public void setExtResId(String extResId)
Copyright © 2008-2014 Logical Objects. All Rights Reserved.