WCMUsePojo class.@Deprecated public abstract class WCMUse extends java.lang.Object implements Use
Use interface. This could be extended to provide custom Use models.| Constructor and Description |
|---|
WCMUse()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
activate()
Deprecated.
Implement this method to perform post initialization tasks.
|
<T> T |
get(java.lang.String name,
java.lang.Class<T> type)
Deprecated.
Get an object associated with the given name
|
Component |
getComponent()
Deprecated.
|
Design |
getCurrentDesign()
Deprecated.
|
Page |
getCurrentPage()
Deprecated.
|
Style |
getCurrentStyle()
Deprecated.
|
Designer |
getDesigner()
Deprecated.
|
ValueMap |
getInheritedProperties()
Deprecated.
|
PageManager |
getPageManager()
Deprecated.
|
ValueMap |
getPageProperties()
Deprecated.
|
ValueMap |
getProperties()
Deprecated.
|
SlingHttpServletRequest |
getRequest()
Deprecated.
|
Resource |
getResource()
Deprecated.
|
Page |
getResourcePage()
Deprecated.
|
ResourceResolver |
getResourceResolver()
Deprecated.
|
SlingHttpServletResponse |
getResponse()
Deprecated.
|
SlingScriptHelper |
getSlingScriptHelper()
Deprecated.
|
SightlyWCMMode |
getWcmMode()
Deprecated.
|
void |
init(javax.script.Bindings scriptBindings)
Deprecated.
Initialize bindings and calls #activate()
|
public void init(javax.script.Bindings scriptBindings)
public abstract void activate()
throws java.lang.Exception
java.lang.Exception - in case of any error during activationpublic <T> T get(java.lang.String name,
java.lang.Class<T> type)
name - Object property nametype - Expected object typepublic SightlyWCMMode getWcmMode()
WCMBindings.WCM_MODE binding if available, otherwise null is returnedpublic PageManager getPageManager()
WCMBindings.PAGE_MANAGER binding if available, otherwise null is returnedpublic Page getCurrentPage()
WCMBindings.CURRENT_PAGE binding if available, otherwise null is returnedpublic Page getResourcePage()
WCMBindings.RESOURCE_PAGE binding if available, otherwise null is returnedpublic ValueMap getPageProperties()
WCMBindings.PAGE_PROPERTIES binding if available, otherwise null is returnedpublic ValueMap getProperties()
WCMBindings.PROPERTIES binding if available, otherwise null is returnedpublic Designer getDesigner()
WCMBindings.DESIGNER binding if available, otherwise null is returnedpublic Design getCurrentDesign()
WCMBindings.CURRENT_DESIGN binding if available, otherwise null is returnedpublic Style getCurrentStyle()
WCMBindings.CURRENT_STYLE binding if available, otherwise null is returnedpublic Component getComponent()
WCMBindings.COMPONENT binding if available, otherwise null is returnedpublic ValueMap getInheritedProperties()
WCMBindings.INHERITED_PAGE_PROPERTIES binding if available, otherwise null is returnedpublic Resource getResource()
SlingBindings.RESOURCE binding if available, otherwise null is returnedpublic ResourceResolver getResourceResolver()
public SlingHttpServletRequest getRequest()
SlingBindings.REQUEST binding if available, otherwise null is returnedpublic SlingHttpServletResponse getResponse()
SlingBindings.RESPONSE binding if available, otherwise null is returnedpublic SlingScriptHelper getSlingScriptHelper()
SlingBindings.SLING if available, otherwise null is returned"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"