Package com.logicaldoc.core.document
Class Bookmark
- java.lang.Object
 - 
- com.logicaldoc.core.PersistentObject
 - 
- com.logicaldoc.core.document.Bookmark
 
 
 
- 
public class Bookmark extends PersistentObject
A bookmark over a document- Since:
 - 5.2
 - Author:
 - Matteo Caruso - LogicalDOC
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static intTYPE_DOCUMENTstatic intTYPE_FOLDER- 
Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG 
 - 
 
- 
Constructor Summary
Constructors Constructor Description Bookmark() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()StringgetFileType()StringgetIcon()The icon for the document associated to the subscriptionStringgetPath()The path of the document associated to the bookmark.intgetPosition()longgetTargetId()StringgetTitle()intgetType()longgetUserId()voidsetDescription(String description)voidsetFileType(String fileType)voidsetPosition(int position)voidsetTargetId(long targetId)voidsetTitle(String title)voidsetType(int type)voidsetUserId(long userId)- 
Methods inherited from class com.logicaldoc.core.PersistentObject
equals, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, hashCode, setDeleted, setId, setLastModified, setRecordVersion, setTenantId, toString 
 - 
 
 - 
 
- 
- 
Field Detail
- 
TYPE_DOCUMENT
public static final int TYPE_DOCUMENT
- See Also:
 - Constant Field Values
 
 
- 
TYPE_FOLDER
public static final int TYPE_FOLDER
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getUserId
public long getUserId()
 
- 
setUserId
public void setUserId(long userId)
 
- 
getTargetId
public long getTargetId()
 
- 
setTargetId
public void setTargetId(long targetId)
 
- 
getTitle
public String getTitle()
 
- 
setTitle
public void setTitle(String title)
 
- 
getDescription
public String getDescription()
 
- 
setDescription
public void setDescription(String description)
 
- 
getPosition
public int getPosition()
 
- 
setPosition
public void setPosition(int position)
 
- 
getFileType
public String getFileType()
 
- 
setFileType
public void setFileType(String fileType)
 
- 
getIcon
public String getIcon()
The icon for the document associated to the subscription- Returns:
 - name of the icon file
 
 
- 
getPath
public String 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)
 
 - 
 
 -