@Service @Property(name="merge.root",value="/mnt/override",label="Root",description="Root path at which merged resources will be available.") @Property(name="merge.readOnly",boolValue=true,label="Read Only",description="Specifies if the resources are read-only or can be modified.") @Property(name="merge.traverseParent",boolValue=true,propertyPrivate=true) public class OverridingResourcePicker extends Object implements MergedResourcePicker2
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ROOT |
MERGE_ROOT, READ_ONLY, TRAVERSE_PARENT
Constructor and Description |
---|
OverridingResourcePicker() |
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.
|
public static final String DEFAULT_ROOT
public List<org.apache.sling.api.resource.Resource> pickResources(org.apache.sling.api.resource.ResourceResolver resolver, String relativePath, org.apache.sling.api.resource.Resource relatedResource)
MergedResourcePicker2
pickResources
in interface MergedResourcePicker2
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.