Constructor and Description |
---|
WCMUse() |
Modifier and Type | Method and Description |
---|---|
abstract void |
activate()
Implement this method to perform post initialization tasks.
|
<T> T |
get(String name,
Class<T> type)
Get an object associated with the given name
|
Component |
getComponent() |
Design |
getCurrentDesign() |
Page |
getCurrentPage() |
Style |
getCurrentStyle() |
Designer |
getDesigner() |
ValueMap |
getInheritedProperties() |
PageManager |
getPageManager() |
ValueMap |
getPageProperties() |
ValueMap |
getProperties() |
SlingHttpServletRequest |
getRequest() |
Resource |
getResource() |
Page |
getResourcePage() |
ResourceResolver |
getResourceResolver() |
SlingHttpServletResponse |
getResponse() |
SlingScriptHelper |
getSlingScriptHelper() |
SightlyWCMMode |
getWcmMode() |
void |
init(javax.script.Bindings scriptBindings)
Initialize bindings and calls #activate()
|
public void init(javax.script.Bindings scriptBindings)
public abstract void activate() throws Exception
Exception
- in case of any error during activationpublic <T> T get(String name, 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
binding if available, otherwise null is returnedpublic ResourceResolver getResourceResolver()
public SlingHttpServletRequest getRequest()
SlingBindings
binding if available, otherwise null is returnedpublic SlingHttpServletResponse getResponse()
SlingBindings
binding if available, otherwise null is returnedpublic SlingScriptHelper getSlingScriptHelper()
SlingBindings
if available, otherwise null is returned"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"