public class DistributionConfigurationResourceProvider extends AbstractModifyingResourceProvider implements org.apache.sling.api.resource.ResourceProvider, org.apache.sling.api.resource.ModifyingResourceProvider
ResourceProvider
for Osgi configurations for a specific configuration factory.
All CRUD operations are supported for the underlying resources.
The accepted path is resourceRoot/{friendlyNameProperty}/childResourceName.INTERNAL_ADAPTABLE, INTERNAL_ITEMS_ITERATOR, INTERNAL_NAME, ITEMS, SLING_RESOURCE_TYPE
Constructor and Description |
---|
DistributionConfigurationResourceProvider(DistributionConfigurationManager configurationManager,
String kind,
String resourceRoot) |
Modifier and Type | Method and Description |
---|---|
protected Iterable<String> |
getInternalResourceChildren(org.apache.sling.api.resource.ResourceResolver resolver,
SimplePathInfo pathInfo) |
protected Map<String,Object> |
getInternalResourceProperties(org.apache.sling.api.resource.ResourceResolver resolver,
SimplePathInfo pathInfo) |
protected void |
saveInternalResources(org.apache.sling.api.resource.ResourceResolver resourceResolver,
Map<String,Map<String,Object>> changedResources,
Set<String> deletedResources) |
change, commit, create, delete, getResourceProperties, hasChanges, revert
getResource, getResource, listChildren
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public DistributionConfigurationResourceProvider(DistributionConfigurationManager configurationManager, String kind, String resourceRoot)
protected void saveInternalResources(org.apache.sling.api.resource.ResourceResolver resourceResolver, Map<String,Map<String,Object>> changedResources, Set<String> deletedResources) throws org.apache.sling.api.resource.PersistenceException
saveInternalResources
in class AbstractModifyingResourceProvider
org.apache.sling.api.resource.PersistenceException
protected Map<String,Object> getInternalResourceProperties(org.apache.sling.api.resource.ResourceResolver resolver, SimplePathInfo pathInfo)
getInternalResourceProperties
in class AbstractReadableResourceProvider
protected Iterable<String> getInternalResourceChildren(org.apache.sling.api.resource.ResourceResolver resolver, SimplePathInfo pathInfo)
getInternalResourceChildren
in class AbstractReadableResourceProvider
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.