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
Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getIcon()
The icon for the document associated to the subscriptiongetPath()
The path of the document associated to the bookmark.int
long
getTitle()
int
getType()
long
int
hashCode()
void
setDescription
(String description) void
setFileType
(String fileType) void
setPosition
(int position) void
setTargetId
(long targetId) void
void
setType
(int type) void
setUserId
(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:
hashCode
in classPersistentObject
-
equals
- Overrides:
equals
in classPersistentObject
-