Package com.adobe.cq.sightly
Class WCMUsePojo
java.lang.Object
com.adobe.cq.sightly.WCMUsePojo
- All Implemented Interfaces:
Use
- Direct Known Subclasses:
AllowedComponentList,OffercardPropertiesProvider,OfferproxyPropertiesProvider,ResponsiveGrid,TemplatedContainer
Abstract implementation of
Use interface. This could be extended to provide custom Java Use-API objects.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidactivate()Implement this method to perform post initialization tasks.final <T> TGet an object associated with the given namefinal Componentfinal ComponentContextfinal Designfinal Pagefinal Stylefinal Designerfinal EditContextfinal ValueMapfinal ValueMapDeprecated.final PageManagerfinal ValueMapfinal ValueMapfinal SlingHttpServletRequestfinal Resourcefinal Designfinal Pagefinal ResourceResolverfinal SlingHttpServletResponsefinal SlingScriptHelperfinal SightlyWCMModefinal XSSAPIfinal voidInitialize bindings and calls #activate()
-
Constructor Details
-
WCMUsePojo
public WCMUsePojo()
-
-
Method Details
-
init
Initialize bindings and calls #activate() -
activate
Implement this method to perform post initialization tasks. This method is called byinit(Bindings).- Throws:
Exception- in case of any error during activation
-
get
Get an object associated with the given name- Parameters:
name- Object property nametype- Expected object type- Returns:
- Object or null if Object cannot be found or typed.
-
getWcmMode
- Returns:
WCMBindings.WCM_MODEbinding if available, otherwise null is returned
-
getPageManager
- Returns:
WCMBindingsConstants.NAME_PAGE_MANAGERbinding if available, otherwise null is returned
-
getCurrentPage
- Returns:
WCMBindingsConstants.NAME_CURRENT_PAGEbinding if available, otherwise null is returned
-
getResourcePage
- Returns:
WCMBindingsConstants.NAME_RESOURCE_PAGEbinding if available, otherwise null is returned
-
getPageProperties
- Returns:
WCMBindingsConstants.NAME_PAGE_PROPERTIESbinding if available, otherwise null is returned
-
getProperties
- Returns:
WCMBindingsConstants.NAME_PROPERTIESbinding if available, otherwise null is returned
-
getDesigner
- Returns:
WCMBindingsConstants.NAME_DESIGNERbinding if available, otherwise null is returned
-
getCurrentDesign
- Returns:
WCMBindingsConstants.NAME_CURRENT_DESIGNbinding if available, otherwise null is returned
-
getCurrentStyle
- Returns:
WCMBindingsConstants.NAME_CURRENT_STYLEbinding if available, otherwise null is returned
-
getComponent
- Returns:
WCMBindingsConstants.NAME_COMPONENTbinding if available, otherwise null is returned
-
getInheritedProperties
Deprecated.since 3.1.0; please switch togetInheritedPageProperties()- Returns:
WCMBindings.INHERITED_PAGE_PROPERTIESbinding if available, otherwise null is returned
-
getInheritedPageProperties
- Returns:
WCMBindings.INHERITED_PAGE_PROPERTIESbinding if available, otherwise null is returned
-
getResource
- Returns:
- Sling
SlingBindings.RESOURCEbinding if available, otherwise null is returned
-
getResourceResolver
- Returns:
- ResourceResolver associated with the current request
-
getRequest
- Returns:
- Sling
SlingBindings.REQUESTbinding if available, otherwise null is returned
-
getResponse
- Returns:
- Sling
SlingBindings.RESPONSEbinding if available, otherwise null is returned
-
getSlingScriptHelper
- Returns:
- sling script helper binding
SlingBindings.SLINGif available, otherwise null is returned
-
getComponentContext
- Returns:
WCMBindingsConstants.NAME_COMPONENT_CONTEXTbinding if available, otherwise null is returned
-
getEditContext
- Returns:
WCMBindingsConstants.NAME_EDIT_CONTEXTbinding if available, otherwise null is returned
-
getResourceDesign
- Returns:
WCMBindingsConstants.NAME_RESOURCE_DESIGNbinding if available, otherwise null is returned
-
getXSSAPI
- Returns:
WCMBindingsConstants.NAME_XSSAPIbinding if available, otherwise null is returned
-
getInheritedPageProperties()