Interface DeviceIdentificationMode
-
public interface DeviceIdentificationMode
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCLIENT_SIDEstatic java.lang.StringDEVICE_IDENTIFICATION_MODE_PROPERTYstatic java.lang.StringNONEstatic java.lang.StringSERVER_SIDEstatic java.lang.StringTOPIC_DIM_ADDEDstatic java.lang.StringTOPIC_DIM_CHANGEDstatic java.lang.StringTOPIC_DIM_REMOVED
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.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 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
-
-