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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final Stringstatic final StringFields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id -
Constructor Summary
Constructors -
Method Summary
Modifier 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.PersistentObject
getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId, toString
-
Field Details
-
TYPE_DOCUMENT
- See Also:
-
TYPE_FOLDER
- See Also:
-
OPTION_FOLDER_FOLDERONLY
public static final int OPTION_FOLDER_FOLDERONLY- See Also:
-
OPTION_FOLDER_WITHSUBFOLDERS
public static final int OPTION_FOLDER_WITHSUBFOLDERS- See Also:
-
-
Constructor Details
-
Subscription
public Subscription()
-
-
Method Details
-
getName
-
setName
-
getDescription
-
setDescription
-
getUserId
public long getUserId() -
setUserId
public void setUserId(long userId) -
getUsername
-
setUsername
-
getType
-
setType
-
getFolderOption
public int getFolderOption() -
setFolderOption
public void setFolderOption(int folderOption) -
getObjectId
public long getObjectId() -
setObjectId
public void setObjectId(long objectId) -
getFileType
-
setFileType
-
getIcon
The icon for the document associated to the subscription- Returns:
- filename of the icon
-
getEvents
-
setEvents
-
getColor
-
setColor
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.logicaldoc.core.PersistentObject
-
equals
- Overrides:
equalsin classcom.logicaldoc.core.PersistentObject
-