public class WCMFilteringResourceWrapper extends FilteringResourceWrapper
resource based on the given contentResource design properties
The current wrapper is filtering child resources using Granite ExpressionResolver
It does that by adding custom variables to the ExpressionCustomizer which will use the request as a data vessel.
Later the ExpressionResolver via its CustomVariableELResolver will read the registered custom variables to resolve the granite:hide expression.
That expression can then refer to the custom variablesExpressionResolverImpl,
CustomVariableELResolver,
ExpressionCustomizerRESOURCE_TYPE_NON_EXISTING| Constructor and Description |
|---|
WCMFilteringResourceWrapper(Resource filteredResource,
Resource contentResource,
ExpressionResolver expressionResolver,
SlingHttpServletRequest slingRequest)
Filters child resources of the given
resource based on the given contentResource design properties
e.g. |
getChild, getChildren, getResourceType, hasChildren, listChildrenadaptTo, getName, getParent, getPath, getResource, getResourceMetadata, getResourceResolver, getResourceSuperType, getValueMap, isResourceType, toStringpublic WCMFilteringResourceWrapper(Resource filteredResource, Resource contentResource, ExpressionResolver expressionResolver, SlingHttpServletRequest slingRequest)
resource based on the given contentResource design properties
e.g.
- resource: the content of a dialog that contains fields that are conditionally hidden base on the design properties associated with the contentResource
- contentResource: a resource of type image that has design properties associatedfilteredResource - Resource for which to filter child resourcescontentResource - Content Resource from which to extract design propertiesexpressionResolver - Expression Resolver ServiceslingRequest - Copyright © 2010 - 2020 Adobe. All Rights Reserved