Package com.logicaldoc.core.document
Class Document
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.metadata.ExtensibleObject
com.logicaldoc.core.document.AbstractDocument
com.logicaldoc.core.document.Document
- All Implemented Interfaces:
Extensible,Secure<DocumentAccessControlEntry>,TransactionalObject,Serializable
- Direct Known Subclasses:
Hit
@Entity
public class Document
extends AbstractDocument
implements Secure<DocumentAccessControlEntry>
Basic concrete implementation of
AbstractDocument- Since:
- 1.0
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
-
Field Summary
Fields inherited from class com.logicaldoc.core.document.AbstractDocument
EXPORT_LOCKED, EXPORT_UNLOCKED, NATURE_DOCFields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new entry, replacing a previous one with the same groupId.voidvoidvoidcopyAttributes(AbstractDocument docVO) Copies in the current instance the attributes of the passed values object, but NOT the IDbooleangetAccessControlEntry(long groupId) If the document is an alias, it is the id of the referenced documentRetrieve the folder owning this documentlonggetIcon()The icon for this document, it may be kept from file name extensiongetTags()The set of tags for this document.inthashCode()voidsetAccessControlList(Set<DocumentAccessControlEntry> accessControlList) voidsetAttributes(Map<String, Attribute> attributes) voidsetDeleteUser(String deleteUser) voidvoidsetDocRefType(String docRefType) voidvoidvoidvoidsetTagsFromWords(Set<String> tgs) voidsetTemplate(Template template) Methods inherited from class com.logicaldoc.core.document.AbstractDocument
getBarcoded, getBarcodeTemplateId, getColor, getComment, getCreator, getCreatorId, getCustomId, getDate, getDecodedPassword, getDeleteUserId, getDigest, getDocAttrs, getExportId, getExportName, getExportStatus, getExportVersion, getExtResId, getFileExtension, getFileName, getFileSize, getFileVersion, getFormId, getImmutable, getIndexed, getLanguage, getLastNote, getLinks, getLocale, getLockUser, getLockUserId, getNature, getOcrd, getOcrTemplateId, getPages, getPassword, getPreviewPages, getPublished, getPublisher, getPublisherId, getRevision, getSigned, getStamped, getStartPublishing, getStatus, getStopPublishing, getTemplateId, getTemplateName, getTgs, getTitle, getTransactionId, getType, getVersion, getWorkflowStatus, getWorkflowStatusDisplay, isGranted, isModified, isPasswordProtected, isPublishing, isToIndex, setBarcoded, setBarcodeTemplateId, setColor, setComment, setCreator, setCreatorId, setCustomId, setDate, setDecodedPassword, setDeleteUserId, setDigest, setDocAttrs, setExportId, setExportName, setExportStatus, setExportVersion, setExtResId, setFileName, setFileSize, setFileVersion, setFormId, setImmutable, setIndexingStatus, setIndexingStatus, setLanguage, setLastNote, setLinks, setLocale, setLockUser, setLockUserId, setModified, setNature, setOcrd, setOcrTemplateId, setPages, setPassword, setPreviewPages, setPublished, setPublisher, setPublisherId, setRevision, setSigned, setStamped, setStartPublishing, setStatus, setStatus, setStopPublishing, setTemplateId, setTemplateName, setTgs, setTransactionId, setType, setVersion, setWorkflowStatus, setWorkflowStatusDisplay, toStringMethods inherited from class com.logicaldoc.core.metadata.ExtensibleObject
getAttribute, getAttributeAtPosition, getAttributeNames, getAttributeNames, getValue, getValueAttributes, getValues, removeAttribute, setAttribute, setValue, setValuesMethods inherited from class com.logicaldoc.core.PersistentObject
getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId
-
Constructor Details
-
Document
public Document() -
Document
-
-
Method Details
-
getAttributes
- Specified by:
getAttributesin interfaceExtensible
-
setAttributes
- Specified by:
setAttributesin interfaceExtensible
-
getRating
-
setRating
-
getDocRefType
-
setDocRefType
-
getDocRef
If the document is an alias, it is the id of the referenced document- Returns:
- identifier of the referenced document
-
setDocRef
-
getDeleteUser
-
setDeleteUser
-
getFolder
Retrieve the folder owning this document- Returns:
- the parent folder
-
getFolderId
public long getFolderId()- Specified by:
getFolderIdin classAbstractDocument
-
setFolder
-
getTags
The set of tags for this document.- Returns:
- the set of tags
-
setTags
-
setTagsFromWords
- Overrides:
setTagsFromWordsin classAbstractDocument
-
getTagsAsWords
-
getTagsString
-
addTag
-
clearTags
public void clearTags() -
getIcon
Description copied from class:AbstractDocumentThe icon for this document, it may be kept from file name extension- Overrides:
getIconin classAbstractDocument- Returns:
- name of the icon file
-
copyAttributes
Copies in the current instance the attributes of the passed values object, but NOT the ID- Overrides:
copyAttributesin classAbstractDocument- Parameters:
docVO- the document to get the attributes from
-
getTemplate
- Specified by:
getTemplatein interfaceExtensible
-
setTemplate
- Specified by:
setTemplatein interfaceExtensible
-
getAccessControlList
- Specified by:
getAccessControlListin interfaceSecure<DocumentAccessControlEntry>
-
setAccessControlList
- Specified by:
setAccessControlListin interfaceSecure<DocumentAccessControlEntry>
-
getAccessControlEntry
- Specified by:
getAccessControlEntryin interfaceSecure<DocumentAccessControlEntry>
-
addAccessControlEntry
Description copied from interface:SecureAdds a new entry, replacing a previous one with the same groupId.- Specified by:
addAccessControlEntryin interfaceSecure<DocumentAccessControlEntry>- Parameters:
ace- the access control entry to add
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractDocument
-
equals
- Overrides:
equalsin classAbstractDocument
-