Package | Description |
---|---|
org.apache.sling.api.resource | |
org.apache.sling.api.wrappers | |
org.apache.sling.discovery.base.connectors.announcement |
Provides topology announcement implementations for discovery
implementors that choose to extend from discovery.base
|
org.apache.sling.discovery.commons.providers.spi.base |
Provides default SPI-implementations used by discovery.commons.providers.impl
|
org.apache.sling.discovery.commons.providers.util |
Provides some static helpers for providers of the Discovery API.
|
org.apache.sling.sample.slingshot.comments | |
org.apache.sling.sample.slingshot.ratings | |
org.apache.sling.spi.resource.provider |
Modifier and Type | Method and Description |
---|---|
void |
ResourceResolver.commit()
Persist all pending changes.
|
void |
ModifyingResourceProvider.commit(ResourceResolver resolver)
Deprecated.
Commit all transient changes: create, delete and updates
|
Resource |
ResourceResolver.copy(String srcAbsPath,
String destAbsPath)
This method copies the subgraph rooted at, and including, the resource at
srcAbsPath to the new location at destAbsPath and
adds it as a child node of the resource at destAbsPath . |
Resource |
ModifyingResourceProvider.create(ResourceResolver resolver,
String path,
Map<String,Object> properties)
Deprecated.
Create a new resource at the given path.
|
Resource |
ResourceResolver.create(Resource parent,
String name,
Map<String,Object> properties)
Add a child resource to the given parent resource
|
static String |
ResourceUtil.createUniqueChildName(Resource parent,
String name)
Create a unique name for a child of the
parent . |
void |
ResourceUtil.BatchResourceRemover.delete(Resource rsrc) |
void |
ResourceResolver.delete(Resource resource)
Delete the resource
Deleting a non existing resource leads to no operation nor exception.
|
void |
ModifyingResourceProvider.delete(ResourceResolver resolver,
String path)
Deprecated.
Delete the resource at the given path.
|
static Resource |
ResourceUtil.getOrCreateResource(ResourceResolver resolver,
String path,
Map<String,Object> resourceProperties,
String intermediateResourceType,
boolean autoCommit)
Creates or gets the resource at the given path.
|
static Resource |
ResourceUtil.getOrCreateResource(ResourceResolver resolver,
String path,
String resourceType,
String intermediateResourceType,
boolean autoCommit)
Creates or gets the resource at the given path.
|
Resource |
ResourceResolver.move(String srcAbsPath,
String destAbsPath)
This method moves the subgraph rooted at, and including, the resource at
srcAbsPath to the new location at destAbsPath and
adds it as a child node of the resource at destAbsPath . |
void |
PersistableValueMap.save()
Deprecated.
Persists the changes.
|
Modifier and Type | Method and Description |
---|---|
void |
ResourceResolverWrapper.commit() |
Resource |
ResourceResolverWrapper.copy(String srcAbsPath,
String destAbsPath)
Wraps the
Resource obtained by calling copy on the wrapped resource resolver. |
Resource |
ResourceResolverWrapper.create(Resource parent,
String name,
Map<String,Object> properties)
Wraps the
Resource obtained by calling create on the wrapped resource resolver. |
void |
ResourceResolverWrapper.delete(Resource resource) |
Resource |
ResourceResolverWrapper.move(String srcAbsPath,
String destAbsPath)
Wraps the
Resource obtained by calling move on the wrapped resource resolver. |
Modifier and Type | Method and Description |
---|---|
void |
Announcement.persistTo(Resource announcementsResource)
Persists this announcement using the given 'announcements' resource,
under which a node with the primary key is created
|
Modifier and Type | Method and Description |
---|---|
String |
IdMapService.toSlingId(int clusterNodeId,
ResourceResolver resourceResolver) |
Modifier and Type | Method and Description |
---|---|
static boolean |
ResourceHelper.deleteResource(ResourceResolver resourceResolver,
String path) |
static Resource |
ResourceHelper.getOrCreateResource(ResourceResolver resourceResolver,
String path) |
static void |
ResourceHelper.moveResource(Resource res,
String path)
Move resource to given path.
|
Modifier and Type | Method and Description |
---|---|
void |
CommentsService.addComment(Resource resource,
Comment c)
Add a comment to the resource
|
Modifier and Type | Method and Description |
---|---|
void |
RatingsService.setRating(Resource resource,
String userId,
double rating)
Set the rating of a user for a resource.
|
Modifier and Type | Method and Description |
---|---|
void |
ResourceProvider.commit(ResolveContext<T> ctx)
Commit all transient changes: create, delete and updates
|
boolean |
ResourceProvider.copy(ResolveContext<T> ctx,
String srcAbsPath,
String destAbsPath)
This method copies the subgraph rooted at, and including, the resource at
srcAbsPath to the new location at destAbsPath and
adds it as a child node of the resource at destAbsPath . |
Resource |
ResourceProvider.create(ResolveContext<T> ctx,
String path,
Map<String,Object> properties)
Create a new resource at the given path.
|
void |
ResourceProvider.delete(ResolveContext<T> ctx,
Resource resource)
Delete the resource at the given path.
|
boolean |
ResourceProvider.move(ResolveContext<T> ctx,
String srcAbsPath,
String destAbsPath)
This method moves the subgraph rooted at, and including, the resource at
srcAbsPath to the new location at destAbsPath and
adds it as a child node of the resource at destAbsPath . |
Copyright © 2017 The Apache Software Foundation. All rights reserved.