Package com.logicaldoc.audit
Class Subscription
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.audit.Subscription
- All Implemented Interfaces:
- Serializable
This class represents subscriptions. Each subscription can be associated to a
 document or to a folder.
- Since:
- 5.0
- Author:
- Matteo Caruso - LogicalDOC
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final Stringstatic final StringFields inherited from class com.logicaldoc.core.PersistentObjectDELETED_CODE_DEFAULT, DELETED_CODE_STRONG
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetColor()intgetIcon()The icon for the document associated to the subscriptiongetName()longgetType()longvoidvoidsetCreation(Date creation) voidsetDescription(String description) voidvoidsetFileType(String fileType) voidsetFolderOption(int folderOption) voidvoidsetObjectId(long objectId) voidvoidsetUserId(long userId) voidsetUsername(String username) Methods inherited from class com.logicaldoc.core.PersistentObjectequals, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, hashCode, setDeleted, setId, setLastModified, setRecordVersion, setTenantId, toString
- 
Field Details- 
TYPE_DOCUMENT- See Also:
 
- 
TYPE_FOLDER- See Also:
 
- 
OPTION_FOLDER_FOLDERONLYpublic static final int OPTION_FOLDER_FOLDERONLY- See Also:
 
- 
OPTION_FOLDER_WITHSUBFOLDERSpublic static final int OPTION_FOLDER_WITHSUBFOLDERS- See Also:
 
 
- 
- 
Constructor Details- 
Subscriptionpublic Subscription()
 
- 
- 
Method Details- 
getName
- 
setName
- 
getDescription
- 
setDescription
- 
getCreation
- 
setCreation
- 
getUserIdpublic long getUserId()
- 
setUserIdpublic void setUserId(long userId) 
- 
getUsername
- 
setUsername
- 
getType
- 
setType
- 
getFolderOptionpublic int getFolderOption()
- 
setFolderOptionpublic void setFolderOption(int folderOption) 
- 
getObjectIdpublic long getObjectId()
- 
setObjectIdpublic void setObjectId(long objectId) 
- 
getFileType
- 
setFileType
- 
getIconThe icon for the document associated to the subscription- Returns:
- filename of the icon
 
- 
getEvents
- 
setEvents
- 
getColor
- 
setColor
 
-