public abstract class AbstractModifyingResourceProvider extends AbstractReadableResourceProvider implements org.apache.sling.api.resource.ModifyingResourceProvider
ResourceProvider
for distribution.INTERNAL_ADAPTABLE, INTERNAL_ITEMS_ITERATOR, INTERNAL_NAME, ITEMS, SLING_RESOURCE_TYPE
Modifier | Constructor and Description |
---|---|
protected |
AbstractModifyingResourceProvider(String resourceRoot) |
Modifier and Type | Method and Description |
---|---|
void |
change(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String requestPath,
Map<String,Object> properties) |
void |
commit(org.apache.sling.api.resource.ResourceResolver resolver) |
org.apache.sling.api.resource.Resource |
create(org.apache.sling.api.resource.ResourceResolver resolver,
String path,
Map<String,Object> properties) |
void |
delete(org.apache.sling.api.resource.ResourceResolver resolver,
String requestPath) |
protected Map<String,Object> |
getResourceProperties(org.apache.sling.api.resource.ResourceResolver resolver,
SimplePathInfo pathInfo) |
boolean |
hasChanges(org.apache.sling.api.resource.ResourceResolver resolver) |
void |
revert(org.apache.sling.api.resource.ResourceResolver resolver) |
protected abstract void |
saveInternalResources(org.apache.sling.api.resource.ResourceResolver resourceResolver,
Map<String,Map<String,Object>> changedResources,
Set<String> deletedResources) |
getInternalResourceChildren, getInternalResourceProperties, getResource, getResource, listChildren
protected AbstractModifyingResourceProvider(String resourceRoot)
public org.apache.sling.api.resource.Resource create(org.apache.sling.api.resource.ResourceResolver resolver, String path, Map<String,Object> properties) throws org.apache.sling.api.resource.PersistenceException
create
in interface org.apache.sling.api.resource.ModifyingResourceProvider
org.apache.sling.api.resource.PersistenceException
public void delete(org.apache.sling.api.resource.ResourceResolver resolver, String requestPath) throws org.apache.sling.api.resource.PersistenceException
delete
in interface org.apache.sling.api.resource.ModifyingResourceProvider
org.apache.sling.api.resource.PersistenceException
public void revert(org.apache.sling.api.resource.ResourceResolver resolver)
revert
in interface org.apache.sling.api.resource.ModifyingResourceProvider
public void commit(org.apache.sling.api.resource.ResourceResolver resolver) throws org.apache.sling.api.resource.PersistenceException
commit
in interface org.apache.sling.api.resource.ModifyingResourceProvider
org.apache.sling.api.resource.PersistenceException
public boolean hasChanges(org.apache.sling.api.resource.ResourceResolver resolver)
hasChanges
in interface org.apache.sling.api.resource.ModifyingResourceProvider
public void change(org.apache.sling.api.resource.ResourceResolver resourceResolver, String requestPath, Map<String,Object> properties)
protected Map<String,Object> getResourceProperties(org.apache.sling.api.resource.ResourceResolver resolver, SimplePathInfo pathInfo)
protected abstract 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
org.apache.sling.api.resource.PersistenceException
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.