public abstract class WCMUsePojo extends 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(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 final void init(javax.script.Bindings scriptBindings)
public abstract void activate() throws Exception
Exception
- in case of any error during activationpublic final <T> T get(String name, 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 returned"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"