public class NoSqlResourceProvider extends Object implements org.apache.sling.api.resource.ResourceProvider, org.apache.sling.api.resource.ModifyingResourceProvider, org.apache.sling.api.resource.QueriableResourceProvider
NoSqlAdapter.| Constructor and Description |
|---|
NoSqlResourceProvider(NoSqlAdapter adapter,
org.osgi.service.event.EventAdmin eventAdmin) |
| Modifier and Type | Method and Description |
|---|---|
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 path) |
Iterator<org.apache.sling.api.resource.Resource> |
findResources(org.apache.sling.api.resource.ResourceResolver resolver,
String query,
String language) |
org.apache.sling.api.resource.Resource |
getResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
javax.servlet.http.HttpServletRequest request,
String path) |
org.apache.sling.api.resource.Resource |
getResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String path) |
boolean |
hasChanges(org.apache.sling.api.resource.ResourceResolver resolver) |
Iterator<org.apache.sling.api.resource.Resource> |
listChildren(org.apache.sling.api.resource.Resource parent) |
Iterator<org.apache.sling.api.resource.ValueMap> |
queryResources(org.apache.sling.api.resource.ResourceResolver resolver,
String query,
String language) |
void |
revert(org.apache.sling.api.resource.ResourceResolver resolver) |
public NoSqlResourceProvider(NoSqlAdapter adapter, org.osgi.service.event.EventAdmin eventAdmin)
public org.apache.sling.api.resource.Resource getResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String path)
getResource in interface org.apache.sling.api.resource.ResourceProviderpublic org.apache.sling.api.resource.Resource getResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
javax.servlet.http.HttpServletRequest request,
String path)
getResource in interface org.apache.sling.api.resource.ResourceProviderpublic Iterator<org.apache.sling.api.resource.Resource> listChildren(org.apache.sling.api.resource.Resource parent)
listChildren in interface org.apache.sling.api.resource.ResourceProviderpublic 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.ModifyingResourceProviderorg.apache.sling.api.resource.PersistenceExceptionpublic void delete(org.apache.sling.api.resource.ResourceResolver resolver,
String path)
throws org.apache.sling.api.resource.PersistenceException
delete in interface org.apache.sling.api.resource.ModifyingResourceProviderorg.apache.sling.api.resource.PersistenceExceptionpublic void revert(org.apache.sling.api.resource.ResourceResolver resolver)
revert in interface org.apache.sling.api.resource.ModifyingResourceProviderpublic void commit(org.apache.sling.api.resource.ResourceResolver resolver)
throws org.apache.sling.api.resource.PersistenceException
commit in interface org.apache.sling.api.resource.ModifyingResourceProviderorg.apache.sling.api.resource.PersistenceExceptionpublic boolean hasChanges(org.apache.sling.api.resource.ResourceResolver resolver)
hasChanges in interface org.apache.sling.api.resource.ModifyingResourceProviderpublic Iterator<org.apache.sling.api.resource.Resource> findResources(org.apache.sling.api.resource.ResourceResolver resolver, String query, String language)
findResources in interface org.apache.sling.api.resource.QueriableResourceProviderCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.