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.servlets.post | |
org.apache.sling.servlets.post.exceptions | |
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(java.lang.String srcAbsPath,
java.lang.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,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> properties)
Deprecated.
Create a new resource at the given path.
|
@NotNull Resource |
ResourceResolver.create(@NotNull Resource parent,
@NotNull java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> properties)
Add a child resource to the given parent resource.
|
static java.lang.String |
ResourceUtil.createUniqueChildName(Resource parent,
java.lang.String name)
Create a unique name for a child of the
parent . |
void |
ResourceUtil.BatchResourceRemover.delete(@NotNull Resource rsrc) |
void |
ResourceResolver.delete(@NotNull Resource resource)
Delete the resource
Deleting a non existing resource leads to no operation nor exception.
|
void |
ModifyingResourceProvider.delete(ResourceResolver resolver,
java.lang.String path)
Deprecated.
Delete the resource at the given path.
|
static @NotNull Resource |
ResourceUtil.getOrCreateResource(@NotNull ResourceResolver resolver,
@NotNull java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> resourceProperties,
java.lang.String intermediateResourceType,
boolean autoCommit)
Creates or gets the resource at the given path.
|
static @NotNull Resource |
ResourceUtil.getOrCreateResource(@NotNull ResourceResolver resolver,
@NotNull java.lang.String path,
java.lang.String resourceType,
java.lang.String intermediateResourceType,
boolean autoCommit)
Creates or gets the resource at the given path.
|
Resource |
ResourceResolver.move(java.lang.String srcAbsPath,
java.lang.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 . |
boolean |
ResourceResolver.orderBefore(@NotNull Resource parent,
@NotNull java.lang.String name,
@Nullable java.lang.String followingSiblingName)
Orders the child resources returned by
ResourceResolver.getChildren(Resource) and ResourceResolver.listChildren(Resource) so that a given resource is listed before the given sibling resource. |
void |
PersistableValueMap.save()
Deprecated.
Persists the changes.
|
Modifier and Type | Method and Description |
---|---|
void |
ResourceResolverWrapper.commit() |
Resource |
ResourceResolverWrapper.copy(java.lang.String srcAbsPath,
java.lang.String destAbsPath)
Wraps the
Resource obtained by calling copy on the wrapped resource resolver. |
@NotNull Resource |
ResourceResolverWrapper.create(@NotNull Resource parent,
@NotNull java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> properties)
Wraps the
Resource obtained by calling create on the wrapped resource resolver. |
void |
ResourceResolverWrapper.delete(@NotNull Resource resource) |
Resource |
ResourceResolverWrapper.move(java.lang.String srcAbsPath,
java.lang.String destAbsPath)
Wraps the
Resource obtained by calling move on the wrapped resource resolver. |
boolean |
ResourceResolverWrapper.orderBefore(@NotNull Resource parent,
@NotNull java.lang.String name,
@Nullable java.lang.String followingSiblingName) |
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 |
---|---|
java.lang.String |
IdMapService.toSlingId(int clusterNodeId,
ResourceResolver resourceResolver) |
Modifier and Type | Method and Description |
---|---|
static boolean |
ResourceHelper.deleteResource(ResourceResolver resourceResolver,
java.lang.String path) |
static Resource |
ResourceHelper.getOrCreateResource(ResourceResolver resourceResolver,
java.lang.String path) |
static void |
ResourceHelper.moveResource(Resource res,
java.lang.String path)
Move resource to given path.
|
Modifier and Type | Method and Description |
---|---|
void |
PostOperation.run(SlingHttpServletRequest request,
PostResponse response,
SlingPostProcessor[] processors)
Executes the operation provided by this service implementation.
|
Modifier and Type | Class and Description |
---|---|
class |
PreconditionViolatedPersistenceException
Indicates that the input does not meet necessary precondition.
|
class |
TemporaryPersistenceException
This exceptions indicates errors, which might be temporary and for which a retry
with the same parameters could work.
|
Modifier and Type | Method and Description |
---|---|
void |
ResourceProvider.commit(@NotNull ResolveContext<T> ctx)
Commit all transient changes: create, delete and updates
|
boolean |
ResourceProvider.copy(@NotNull ResolveContext<T> ctx,
@NotNull java.lang.String srcAbsPath,
@NotNull java.lang.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 . |
@NotNull Resource |
ResourceProvider.create(@NotNull ResolveContext<T> ctx,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> properties)
Create a new resource at the given path.
|
void |
ResourceProvider.delete(@NotNull ResolveContext<T> ctx,
@NotNull Resource resource)
Delete the resource at the given path.
|
boolean |
ResourceProvider.move(@NotNull ResolveContext<T> ctx,
@NotNull java.lang.String srcAbsPath,
@NotNull java.lang.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 . |
boolean |
ResourceProvider.orderBefore(@NotNull ResolveContext<T> ctx,
@NotNull Resource parent,
@NotNull java.lang.String name,
@Nullable java.lang.String followingSiblingName)
Orders the child resources returned by
ResourceProvider.listChildren(ResolveContext, Resource) so that a given resource is listed before the given sibling resource. |
Copyright © 2022 The Apache Software Foundation. All rights reserved.