Package org.opencms.db
Class CmsSubscriptionReadMode
java.lang.Object
org.opencms.util.A_CmsModeIntEnumeration
org.opencms.db.CmsSubscriptionReadMode
- All Implemented Interfaces:
Serializable
The read modes to get subscribed resources of a user or group.
- Since:
- 8.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CmsSubscriptionReadMode
Subscription read mode: all.static final String
String representation of the read mode: all.static final String
String representation of the read mode: unvisited.static final String
String representation of the read mode: visited.static final CmsSubscriptionReadMode
Subscription read mode: unvisited.static final CmsSubscriptionReadMode
Subscription read mode: visited. -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
clone()
boolean
isAll()
Returns if the mode is set toALL
.boolean
Returns if the mode is set toUNVISITED
.boolean
Returns if the mode is set toVISITED
.static CmsSubscriptionReadMode
modeForName
(String modeName) Returns the subscription read mode for the given mode name.toString()
static CmsSubscriptionReadMode
valueOf
(int type) Returns the subscription read mode for the given mode value.Methods inherited from class org.opencms.util.A_CmsModeIntEnumeration
equals, getMode, hashCode
-
Field Details
-
MODE_NAME_ALL
String representation of the read mode: all.- See Also:
-
MODE_NAME_UNVISITED
String representation of the read mode: unvisited.- See Also:
-
MODE_NAME_VISITED
String representation of the read mode: visited.- See Also:
-
ALL
Subscription read mode: all. -
UNVISITED
Subscription read mode: unvisited. -
VISITED
Subscription read mode: visited.
-
-
Method Details
-
modeForName
Returns the subscription read mode for the given mode name.- Parameters:
modeName
- the subscription read mode name to get the read mode for- Returns:
- the subscription read mode for the given mode name
-
valueOf
Returns the subscription read mode for the given mode value.This is used only for serialization and should not be accessed for other purposes.
- Parameters:
type
- the subscription read mode value to get the read mode for- Returns:
- the subscription read mode for the given mode value
-
isAll
Returns if the mode is set toALL
.- Returns:
- true if the mode is set to
ALL
, otherwise false
-
isUnVisited
Returns if the mode is set toUNVISITED
.- Returns:
- true if the mode is set to
UNVISITED
, otherwise false
-
isVisited
Returns if the mode is set toVISITED
.- Returns:
- true if the mode is set to
VISITED
, otherwise false
-
toString
- Overrides:
toString
in classA_CmsModeIntEnumeration
- See Also:
-
clone
-