Package com.logicaldoc.core.document
Class Bookmark
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.document.Bookmark
- All Implemented Interfaces:
- Serializable
A bookmark over a document
- Since:
- 5.2
- Author:
- Matteo Caruso - LogicalDOC
- See Also:
- 
Field SummaryFieldsFields inherited from class com.logicaldoc.core.PersistentObjectDELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleangetIcon()The icon for the document associated to the subscriptiongetPath()The path of the document associated to the bookmark.intlonggetTitle()intgetType()longinthashCode()voidsetDescription(String description) voidsetFileType(String fileType) voidsetPosition(int position) voidsetTargetId(long targetId) voidvoidsetType(int type) voidsetUserId(long userId) Methods inherited from class com.logicaldoc.core.PersistentObjectgetCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId, toString
- 
Field Details- 
TYPE_DOCUMENTpublic static final int TYPE_DOCUMENT- See Also:
 
- 
TYPE_FOLDERpublic static final int TYPE_FOLDER- See Also:
 
 
- 
- 
Constructor Details- 
Bookmarkpublic Bookmark()
 
- 
- 
Method Details- 
getUserIdpublic long getUserId()
- 
setUserIdpublic void setUserId(long userId) 
- 
getTargetIdpublic long getTargetId()
- 
setTargetIdpublic void setTargetId(long targetId) 
- 
getTitle
- 
setTitle
- 
getDescription
- 
setDescription
- 
getPositionpublic int getPosition()
- 
setPositionpublic void setPosition(int position) 
- 
getFileType
- 
setFileType
- 
getIconThe icon for the document associated to the subscription- Returns:
- name of the icon file
 
- 
getPathThe path of the document associated to the bookmark.- Returns:
- full path to the document
 
- 
getTypepublic int getType()
- 
setTypepublic void setType(int type) 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- PersistentObject
 
- 
equals- Overrides:
- equalsin class- PersistentObject
 
 
-