Package com.logicaldoc.audit
Class Subscription
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.audit.Subscription
- All Implemented Interfaces:
- Serializable
@Entity
public class Subscription
extends com.logicaldoc.core.PersistentObject
implements 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, id
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleangetColor()intgetIcon()The icon for the document associated to the subscriptiongetName()longgetType()longinthashCode()voidvoidsetDescription(String description) voidvoidsetFileType(String fileType) voidsetFolderOption(int folderOption) voidvoidsetObjectId(long objectId) voidvoidsetUserId(long userId) voidsetUsername(String username) Methods inherited from class com.logicaldoc.core.PersistentObjectgetCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, 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
- 
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
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- com.logicaldoc.core.PersistentObject
 
- 
equals- Overrides:
- equalsin class- com.logicaldoc.core.PersistentObject
 
 
-