|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<WCMMode>
com.day.cq.wcm.api.WCMMode
public enum WCMMode
The WCM mode defines the type of modes the WCM has in the current request.
| Enum Constant Summary | |
|---|---|
DESIGN
The WCM is in design mode. |
|
DISABLED
The WCM is disabled. |
|
EDIT
The WCM is in edit mode. |
|
PREVIEW
The WCM is in preview mode. |
|
READ_ONLY
The WCM is in read only mode. |
|
| Field Summary | |
|---|---|
static String |
REQUEST_ATTRIBUTE_NAME
name of the WCMMode request attribute |
| Method Summary | |
|---|---|
static WCMMode |
fromRequest(javax.servlet.ServletRequest req)
Returns the current WCM Mode of this request. |
WCMMode |
toRequest(javax.servlet.ServletRequest req)
Sets the current WCM Mode of this request. |
static WCMMode |
valueOf(String name)
Returns 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're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final WCMMode DISABLED
public static final WCMMode EDIT
public static final WCMMode PREVIEW
public static final WCMMode READ_ONLY
public static final WCMMode DESIGN
| Field Detail |
|---|
public static final String REQUEST_ATTRIBUTE_NAME
| Method Detail |
|---|
public static final WCMMode[] values()
for(WCMMode c : WCMMode.values())
System.out.println(c);
public static WCMMode valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified namepublic static WCMMode fromRequest(javax.servlet.ServletRequest req)
req - servlet request
public WCMMode toRequest(javax.servlet.ServletRequest req)
req - servlet request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||