@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() |
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 PageManager getPageManager()
WCMBindingsConstants.NAME_PAGE_MANAGER
binding if available, otherwise null is returnedpublic final Page getCurrentPage()
WCMBindingsConstants.NAME_CURRENT_PAGE
binding if available, otherwise null is returnedpublic final 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 Designer getDesigner()
WCMBindingsConstants.NAME_DESIGNER
binding if available, otherwise null is returnedpublic final Design getCurrentDesign()
WCMBindingsConstants.NAME_CURRENT_DESIGN
binding if available, otherwise null is returnedpublic final Style getCurrentStyle()
WCMBindingsConstants.NAME_CURRENT_STYLE
binding if available, otherwise null is returnedpublic final 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 ComponentContext getComponentContext()
WCMBindingsConstants.NAME_COMPONENT_CONTEXT
binding if available, otherwise null is returnedpublic final EditContext getEditContext()
WCMBindingsConstants.NAME_EDIT_CONTEXT
binding if available, otherwise null is returnedpublic final 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 - 2020 Adobe. All Rights Reserved