Uses of Class
org.apache.sling.api.resource.PersistenceException
-
Packages that use PersistenceException Package Description org.apache.sling.api.resource org.apache.sling.api.wrappers org.apache.sling.spi.resource.provider -
-
Uses of PersistenceException in org.apache.sling.api.resource
Methods in org.apache.sling.api.resource that throw PersistenceException Modifier and Type Method Description voidModifyingResourceProvider. commit(ResourceResolver resolver)Deprecated.Commit all transient changes: create, delete and updatesvoidResourceResolver. commit()Persist all pending changes.ResourceResourceResolver. copy(String srcAbsPath, String destAbsPath)This method copies the subgraph rooted at, and including, the resource atsrcAbsPathto the new location atdestAbsPathand adds it as a child node of the resource atdestAbsPath.ResourceModifyingResourceProvider. create(ResourceResolver resolver, String path, Map<String,Object> properties)Deprecated.Create a new resource at the given path.@NotNull ResourceResourceResolver. create(@NotNull Resource parent, @NotNull String name, Map<String,Object> properties)Add a child resource to the given parent resource The changes are transient and require a call toResourceResolver.commit()for persisting.static StringResourceUtil. createUniqueChildName(Resource parent, String name)Create a unique name for a child of theparent.voidModifyingResourceProvider. delete(ResourceResolver resolver, String path)Deprecated.Delete the resource at the given path.voidResourceResolver. delete(@NotNull Resource resource)Delete the resource Deleting a non existing resource leads to no operation nor exception.voidResourceUtil.BatchResourceRemover. delete(@NotNull Resource rsrc)static @NotNull ResourceResourceUtil. getOrCreateResource(@NotNull ResourceResolver resolver, @NotNull String path, String resourceType, String intermediateResourceType, boolean autoCommit)Creates or gets the resource at the given path.static @NotNull ResourceResourceUtil. getOrCreateResource(@NotNull ResourceResolver resolver, @NotNull String path, Map<String,Object> resourceProperties, String intermediateResourceType, boolean autoCommit)Creates or gets the resource at the given path.ResourceResourceResolver. move(String srcAbsPath, String destAbsPath)This method moves the subgraph rooted at, and including, the resource atsrcAbsPathto the new location atdestAbsPathand adds it as a child node of the resource atdestAbsPath.voidPersistableValueMap. save()Deprecated.Persists the changes. -
Uses of PersistenceException in org.apache.sling.api.wrappers
Methods in org.apache.sling.api.wrappers that throw PersistenceException Modifier and Type Method Description voidResourceResolverWrapper. commit()ResourceResourceResolverWrapper. copy(String srcAbsPath, String destAbsPath)Wraps theResourceobtained by callingcopyon the wrapped resource resolver.@NotNull ResourceResourceResolverWrapper. create(@NotNull Resource parent, @NotNull String name, Map<String,Object> properties)Wraps theResourceobtained by callingcreateon the wrapped resource resolver.voidResourceResolverWrapper. delete(@NotNull Resource resource)ResourceResourceResolverWrapper. move(String srcAbsPath, String destAbsPath)Wraps theResourceobtained by callingmoveon the wrapped resource resolver. -
Uses of PersistenceException in org.apache.sling.spi.resource.provider
Methods in org.apache.sling.spi.resource.provider that throw PersistenceException Modifier and Type Method Description voidResourceProvider. commit(@NotNull ResolveContext<T> ctx)Commit all transient changes: create, delete and updatesbooleanResourceProvider. copy(@NotNull ResolveContext<T> ctx, @NotNull String srcAbsPath, @NotNull String destAbsPath)This method copies the subgraph rooted at, and including, the resource atsrcAbsPathto the new location atdestAbsPathand adds it as a child node of the resource atdestAbsPath.@NotNull ResourceResourceProvider. create(@NotNull ResolveContext<T> ctx, String path, Map<String,Object> properties)Create a new resource at the given path.voidResourceProvider. delete(@NotNull ResolveContext<T> ctx, @NotNull Resource resource)Delete the resource at the given path.booleanResourceProvider. move(@NotNull ResolveContext<T> ctx, @NotNull String srcAbsPath, @NotNull String destAbsPath)This method moves the subgraph rooted at, and including, the resource atsrcAbsPathto the new location atdestAbsPathand adds it as a child node of the resource atdestAbsPath.
-