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 Summary
FieldsFields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id -
Constructor Summary
Constructors -
Method Summary
Modifier 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.PersistentObject
getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId, toString
-
Field Details
-
TYPE_DOCUMENT
public static final int TYPE_DOCUMENT- See Also:
-
TYPE_FOLDER
public static final int TYPE_FOLDER- See Also:
-
-
Constructor Details
-
Bookmark
public Bookmark()
-
-
Method Details
-
getUserId
public long getUserId() -
setUserId
public void setUserId(long userId) -
getTargetId
public long getTargetId() -
setTargetId
public void setTargetId(long targetId) -
getTitle
-
setTitle
-
getDescription
-
setDescription
-
getPosition
public int getPosition() -
setPosition
public void setPosition(int position) -
getFileType
-
setFileType
-
getIcon
The icon for the document associated to the subscription- Returns:
- name of the icon file
-
getPath
The path of the document associated to the bookmark.- Returns:
- full path to the document
-
getType
public int getType() -
setType
public void setType(int type) -
hashCode
public int hashCode()- Overrides:
hashCodein classPersistentObject
-
equals
- Overrides:
equalsin classPersistentObject
-