Interface DeviceIdentificationMode
-
public interface DeviceIdentificationMode
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLIENT_SIDEstatic StringDEVICE_IDENTIFICATION_MODE_PROPERTYstatic StringNONEstatic StringSERVER_SIDEstatic StringTOPIC_DIM_ADDEDstatic StringTOPIC_DIM_CHANGEDstatic StringTOPIC_DIM_REMOVED
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDeviceIdentificationModeForPage(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 String SERVER_SIDE
- See Also:
- Constant Field Values
-
CLIENT_SIDE
static final String CLIENT_SIDE
- See Also:
- Constant Field Values
-
NONE
static final String NONE
- See Also:
- Constant Field Values
-
DEVICE_IDENTIFICATION_MODE_PROPERTY
static final String DEVICE_IDENTIFICATION_MODE_PROPERTY
- See Also:
- Constant Field Values
-
TOPIC_DIM_ADDED
static final String TOPIC_DIM_ADDED
- See Also:
- Constant Field Values
-
TOPIC_DIM_CHANGED
static final String TOPIC_DIM_CHANGED
- See Also:
- Constant Field Values
-
TOPIC_DIM_REMOVED
static final String TOPIC_DIM_REMOVED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDeviceIdentificationModeForPage
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
-
-