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, revertgetResource, getResource, listChildrenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic 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 AbstractModifyingResourceProviderorg.apache.sling.api.resource.PersistenceExceptionprotected Map<String,Object> getInternalResourceProperties(org.apache.sling.api.resource.ResourceResolver resolver, SimplePathInfo pathInfo)
getInternalResourceProperties in class AbstractReadableResourceProviderprotected Iterable<String> getInternalResourceChildren(org.apache.sling.api.resource.ResourceResolver resolver, SimplePathInfo pathInfo)
getInternalResourceChildren in class AbstractReadableResourceProviderCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.