Uses of Class
org.apache.sling.api.resource.PersistenceException
Packages that use PersistenceException
Package
Description
-
Uses of PersistenceException in org.apache.sling.api.resource
Methods in org.apache.sling.api.resource that throw PersistenceExceptionModifier and TypeMethodDescriptionvoid
ModifyingResourceProvider.commit
(ResourceResolver resolver) Deprecated.Commit all transient changes: create, delete and updatesvoid
ResourceResolver.commit()
Persist all pending changes.This method copies the subgraph rooted at, and including, the resource atsrcAbsPath
to the new location atdestAbsPath
and adds it as a child node of the resource atdestAbsPath
.ModifyingResourceProvider.create
(ResourceResolver resolver, String path, Map<String, Object> properties) Deprecated.Create a new resource at the given path.@NotNull Resource
ResourceResolver.create
(@NotNull Resource parent, @NotNull 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 theparent
.void
ModifyingResourceProvider.delete
(ResourceResolver resolver, String path) Deprecated.Delete the resource at the given path.void
Delete the resource Deleting a non existing resource leads to no operation nor exception.void
static @NotNull Resource
ResourceUtil.getOrCreateResource
(@NotNull ResourceResolver resolver, @NotNull String path, String resourceType, String intermediateResourceType, boolean autoCommit) Creates or gets the resource at the given path.static @NotNull Resource
ResourceUtil.getOrCreateResource
(@NotNull ResourceResolver resolver, @NotNull String path, Map<String, Object> resourceProperties, String intermediateResourceType, boolean autoCommit) Creates or gets the resource at the given path.This method moves the subgraph rooted at, and including, the resource atsrcAbsPath
to the new location atdestAbsPath
and adds it as a child node of the resource atdestAbsPath
.boolean
ResourceResolver.orderBefore
(@NotNull Resource parent, @NotNull String name, @Nullable String followingSiblingName) Orders the child resources returned byResourceResolver.getChildren(Resource)
andResourceResolver.listChildren(Resource)
so that a given resource is listed before the given sibling resource.void
PersistableValueMap.save()
Deprecated.Persists the changes. -
Uses of PersistenceException in org.apache.sling.api.wrappers
Methods in org.apache.sling.api.wrappers that throw PersistenceExceptionModifier and TypeMethodDescriptionvoid
ResourceResolverWrapper.commit()
Wraps theResource
obtained by callingcopy
on the wrapped resource resolver.@NotNull Resource
ResourceResolverWrapper.create
(@NotNull Resource parent, @NotNull String name, Map<String, Object> properties) Wraps theResource
obtained by callingcreate
on the wrapped resource resolver.void
Wraps theResource
obtained by callingmove
on the wrapped resource resolver.boolean
ResourceResolverWrapper.orderBefore
(@NotNull Resource parent, @NotNull String name, @Nullable String followingSiblingName) -
Uses of PersistenceException in org.apache.sling.spi.resource.provider
Methods in org.apache.sling.spi.resource.provider that throw PersistenceExceptionModifier and TypeMethodDescriptionvoid
ResourceProvider.commit
(@NotNull ResolveContext<T> ctx) Commit all transient changes: create, delete and updatesboolean
ResourceProvider.copy
(@NotNull ResolveContext<T> ctx, @NotNull String srcAbsPath, @NotNull String destAbsPath) This method copies the subgraph rooted at, and including, the resource atsrcAbsPath
to the new location atdestAbsPath
and adds it as a child node of the resource atdestAbsPath
.@NotNull Resource
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 String srcAbsPath, @NotNull String destAbsPath) This method moves the subgraph rooted at, and including, the resource atsrcAbsPath
to the new location atdestAbsPath
and adds it as a child node of the resource atdestAbsPath
.boolean
ResourceProvider.orderBefore
(@NotNull ResolveContext<T> ctx, @NotNull Resource parent, @NotNull String name, @Nullable String followingSiblingName) Orders the child resources returned byResourceProvider.listChildren(ResolveContext, Resource)
so that a given resource is listed before the given sibling resource.