Package com.day.cq.wcm.api
Enum WCMMode
- All Implemented Interfaces:
Serializable,Comparable<WCMMode>,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic WCMModeReturns the current WCM Mode of this request.toRequest(ServletRequest req) Sets the current WCM Mode of this request.static WCMModeReturns the enum constant of this type with the specified name.static WCMMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
DISABLED
The WCM is disabled. This is usually the case on a 'publish' instance where the normal WCM capabilities are disabled. -
EDIT
The WCM is in edit mode. This is the normal case for authoring instances -
PREVIEW
The WCM is in preview mode. Only a limited set of WCM UI elements are visible. -
ANALYTICS
The WCM is in analytics mode. WCM UI elements are visible which are analyzable. -
READ_ONLY
The WCM is in read only mode. Only WCM UI elements are visible that are not used for editing. -
DESIGN
The WCM is in design mode.
-
-
Field Details
-
REQUEST_ATTRIBUTE_NAME
name of the WCMMode request attribute
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromRequest
Returns the current WCM Mode of this request.- Parameters:
req- servlet request- Returns:
- current WCM Mode
-
toRequest
Sets the current WCM Mode of this request.- Parameters:
req- servlet request- Returns:
- previous WCM Mode
-