@ConsumerType public abstract class WCMUsePojo extends java.lang.Object implements Use
Use interface. This could be extended to provide custom Java Use-API objects.| Constructor and Description |
|---|
WCMUsePojo() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
activate()
Implement this method to perform post initialization tasks.
|
<T> T |
get(java.lang.String name,
java.lang.Class<T> type)
Get an object associated with the given name
|
com.day.cq.wcm.api.components.Component |
getComponent() |
com.day.cq.wcm.api.components.ComponentContext |
getComponentContext() |
com.day.cq.wcm.api.designer.Design |
getCurrentDesign() |
com.day.cq.wcm.api.Page |
getCurrentPage() |
com.day.cq.wcm.api.designer.Style |
getCurrentStyle() |
com.day.cq.wcm.api.designer.Designer |
getDesigner() |
com.day.cq.wcm.api.components.EditContext |
getEditContext() |
ValueMap |
getInheritedPageProperties() |
ValueMap |
getInheritedProperties()
Deprecated.
since 3.1.0; please switch to
getInheritedPageProperties() |
com.day.cq.wcm.api.PageManager |
getPageManager() |
ValueMap |
getPageProperties() |
ValueMap |
getProperties() |
SlingHttpServletRequest |
getRequest() |
Resource |
getResource() |
com.day.cq.wcm.api.designer.Design |
getResourceDesign() |
com.day.cq.wcm.api.Page |
getResourcePage() |
ResourceResolver |
getResourceResolver() |
SlingHttpServletResponse |
getResponse() |
SlingScriptHelper |
getSlingScriptHelper() |
SightlyWCMMode |
getWcmMode() |
XSSAPI |
getXSSAPI() |
void |
init(javax.script.Bindings scriptBindings)
Initialize bindings and calls #activate()
|
public final void init(javax.script.Bindings scriptBindings)
public abstract void activate()
throws java.lang.Exception
init(Bindings).java.lang.Exception - in case of any error during activationpublic final <T> T get(java.lang.String name,
java.lang.Class<T> type)
name - Object property nametype - Expected object typepublic final SightlyWCMMode getWcmMode()
WCMBindings.WCM_MODE binding if available, otherwise null is returnedpublic final com.day.cq.wcm.api.PageManager getPageManager()
WCMBindingsConstants.NAME_PAGE_MANAGER binding if available, otherwise null is returnedpublic final com.day.cq.wcm.api.Page getCurrentPage()
WCMBindingsConstants.NAME_CURRENT_PAGE binding if available, otherwise null is returnedpublic final com.day.cq.wcm.api.Page getResourcePage()
WCMBindingsConstants.NAME_RESOURCE_PAGE binding if available, otherwise null is returnedpublic final ValueMap getPageProperties()
WCMBindingsConstants.NAME_PAGE_PROPERTIES binding if available, otherwise null is returnedpublic final ValueMap getProperties()
WCMBindingsConstants.NAME_PROPERTIES binding if available, otherwise null is returnedpublic final com.day.cq.wcm.api.designer.Designer getDesigner()
WCMBindingsConstants.NAME_DESIGNER binding if available, otherwise null is returnedpublic final com.day.cq.wcm.api.designer.Design getCurrentDesign()
WCMBindingsConstants.NAME_CURRENT_DESIGN binding if available, otherwise null is returnedpublic final com.day.cq.wcm.api.designer.Style getCurrentStyle()
WCMBindingsConstants.NAME_CURRENT_STYLE binding if available, otherwise null is returnedpublic final com.day.cq.wcm.api.components.Component getComponent()
WCMBindingsConstants.NAME_COMPONENT binding if available, otherwise null is returned@Deprecated public final ValueMap getInheritedProperties()
getInheritedPageProperties()WCMBindings.INHERITED_PAGE_PROPERTIES binding if available, otherwise null is returnedpublic final ValueMap getInheritedPageProperties()
WCMBindings.INHERITED_PAGE_PROPERTIES binding if available, otherwise null is returnedpublic final Resource getResource()
SlingBindings.RESOURCE binding if available, otherwise null is returnedpublic final ResourceResolver getResourceResolver()
public final SlingHttpServletRequest getRequest()
SlingBindings.REQUEST binding if available, otherwise null is returnedpublic final SlingHttpServletResponse getResponse()
SlingBindings.RESPONSE binding if available, otherwise null is returnedpublic final SlingScriptHelper getSlingScriptHelper()
SlingBindings.SLING if available, otherwise null is returnedpublic final com.day.cq.wcm.api.components.ComponentContext getComponentContext()
WCMBindingsConstants.NAME_COMPONENT_CONTEXT binding if available, otherwise null is returnedpublic final com.day.cq.wcm.api.components.EditContext getEditContext()
WCMBindingsConstants.NAME_EDIT_CONTEXT binding if available, otherwise null is returnedpublic final com.day.cq.wcm.api.designer.Design getResourceDesign()
WCMBindingsConstants.NAME_RESOURCE_DESIGN binding if available, otherwise null is returnedpublic final XSSAPI getXSSAPI()
WCMBindingsConstants.NAME_XSSAPI binding if available, otherwise null is returnedCopyright © 2010 - 2019 Adobe. All Rights Reserved