Interface DeviceIdentificationMode
-
public interface DeviceIdentificationMode
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CLIENT_SIDE
static java.lang.String
DEVICE_IDENTIFICATION_MODE_PROPERTY
static java.lang.String
NONE
static java.lang.String
SERVER_SIDE
static java.lang.String
TOPIC_DIM_ADDED
static java.lang.String
TOPIC_DIM_CHANGED
static java.lang.String
TOPIC_DIM_REMOVED
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getDeviceIdentificationModeForPage(Page page)
Returns the currently used device identification mode for a page by searching for the jcr:content/cq:deviceIdentificationMode property on the node representing the path.
-
-
-
Field Detail
-
SERVER_SIDE
static final java.lang.String SERVER_SIDE
- See Also:
- Constant Field Values
-
CLIENT_SIDE
static final java.lang.String CLIENT_SIDE
- See Also:
- Constant Field Values
-
NONE
static final java.lang.String NONE
- See Also:
- Constant Field Values
-
DEVICE_IDENTIFICATION_MODE_PROPERTY
static final java.lang.String DEVICE_IDENTIFICATION_MODE_PROPERTY
- See Also:
- Constant Field Values
-
TOPIC_DIM_ADDED
static final java.lang.String TOPIC_DIM_ADDED
- See Also:
- Constant Field Values
-
TOPIC_DIM_CHANGED
static final java.lang.String TOPIC_DIM_CHANGED
- See Also:
- Constant Field Values
-
TOPIC_DIM_REMOVED
static final java.lang.String TOPIC_DIM_REMOVED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDeviceIdentificationModeForPage
java.lang.String getDeviceIdentificationModeForPage(Page page)
Returns the currently used device identification mode for a page by searching for the jcr:content/cq:deviceIdentificationMode property on the node representing the path. If the property is not found, the lookup has to continue by scanning parent nodes. If the property is not found, it is assumed that the value is DeviceIdentificationMode.SERVER_SIDE.- Parameters:
page
- the page for which the device identification mode is analysed- Returns:
- the device identification mode as String
-
-