public interface MergedResourcePicker2
ResourceProviderFactory
will be exposed at the MERGE_ROOT of the picker.Modifier and Type | Field and Description |
---|---|
static String |
MERGE_ROOT
Service property name identifying the root path for the merged resources.
|
static String |
READ_ONLY
Service property name specifying whether the resources are read-only
or support CRUD operations.
|
static String |
TRAVERSE_PARENT
Service property name specifying whether the parent hierarchy is
traversed to check for hiding properties.
|
Modifier and Type | Method and Description |
---|---|
List<org.apache.sling.api.resource.Resource> |
pickResources(org.apache.sling.api.resource.ResourceResolver resolver,
String relativePath,
org.apache.sling.api.resource.Resource relatedResource)
Method invoked by the MergingResourceProvider to identify the resources to be merged for a given
relative path.
|
static final String MERGE_ROOT
static final String READ_ONLY
true
. The value of this property must be of type
Boolean.static final String TRAVERSE_PARENT
false
. The value of this
property must be of type Boolean.List<org.apache.sling.api.resource.Resource> pickResources(org.apache.sling.api.resource.ResourceResolver resolver, String relativePath, org.apache.sling.api.resource.Resource relatedResource)
resolver
- the ResourceResolverrelativePath
- the path relative to the merge rootrelatedResource
- an optional resource which is related to the given path (parent or child)Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.