public abstract class WCMUsePojo extends java.lang.Object implements Use
Use interface. This could be extended to provide custom Use models.| 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
|
Component |
getComponent() |
ComponentContext |
getComponentContext() |
Design |
getCurrentDesign() |
Page |
getCurrentPage() |
Style |
getCurrentStyle() |
Designer |
getDesigner() |
EditContext |
getEditContext() |
ValueMap |
getInheritedProperties() |
PageManager |
getPageManager() |
ValueMap |
getPageProperties() |
ValueMap |
getProperties() |
SlingHttpServletRequest |
getRequest() |
Resource |
getResource() |
Design |
getResourceDesign() |
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
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 PageManager getPageManager()
WCMBindings.PAGE_MANAGER binding if available, otherwise null is returnedpublic final Page getCurrentPage()
WCMBindings.CURRENT_PAGE binding if available, otherwise null is returnedpublic final Page getResourcePage()
WCMBindings.RESOURCE_PAGE binding if available, otherwise null is returnedpublic final ValueMap getPageProperties()
WCMBindings.PAGE_PROPERTIES binding if available, otherwise null is returnedpublic final ValueMap getProperties()
WCMBindings.PROPERTIES binding if available, otherwise null is returnedpublic final Designer getDesigner()
WCMBindings.DESIGNER binding if available, otherwise null is returnedpublic final Design getCurrentDesign()
WCMBindings.CURRENT_DESIGN binding if available, otherwise null is returnedpublic final Style getCurrentStyle()
WCMBindings.CURRENT_STYLE binding if available, otherwise null is returnedpublic final Component getComponent()
WCMBindings.COMPONENT binding if available, otherwise null is returnedpublic final ValueMap getInheritedProperties()
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 ComponentContext getComponentContext()
WCMBindings.COMPONENT_CONTEXT binding if available, otherwise null is returnedpublic final EditContext getEditContext()
WCMBindings.EDIT_CONTEXT binding if available, otherwise null is returnedpublic final Design getResourceDesign()
WCMBindings.RESOURCE_DESIGN binding if available, otherwise null is returnedpublic final XSSAPI getXSSAPI()
WCMBindings.XSSAPI binding if available, otherwise null is returned"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"