Uses of Class
org.apache.sling.api.resource.PersistenceException
Packages that use PersistenceException
Package
Description
Provides topology announcement implementations for discovery
implementors that choose to extend from discovery.base
Provides default SPI-implementations used by discovery.commons.providers.impl
Provides some static helpers for providers of the Discovery API.
-
Uses of PersistenceException in org.apache.sling.api.resource
Methods in org.apache.sling.api.resource that throw PersistenceExceptionModifier and TypeMethodDescriptionvoidModifyingResourceProvider.commit(ResourceResolver resolver) Deprecated.Commit all transient changes: create, delete and updatesvoidResourceResolver.commit()Persist all pending changes.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.ModifyingResourceProvider.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.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.voidDelete the resource Deleting a non existing resource leads to no operation nor exception.voidstatic @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.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.booleanResourceResolver.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.voidPersistableValueMap.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 TypeMethodDescriptionvoidResourceResolverWrapper.commit()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.voidWraps theResourceobtained by callingmoveon the wrapped resource resolver.booleanResourceResolverWrapper.orderBefore(@NotNull Resource parent, @NotNull String name, @Nullable String followingSiblingName) -
Uses of PersistenceException in org.apache.sling.discovery.base.connectors.announcement
Methods in org.apache.sling.discovery.base.connectors.announcement that throw PersistenceException -
Uses of PersistenceException in org.apache.sling.discovery.commons.providers.spi.base
Methods in org.apache.sling.discovery.commons.providers.spi.base that throw PersistenceExceptionModifier and TypeMethodDescriptionIdMapService.toSlingId(int clusterNodeId, ResourceResolver resourceResolver) -
Uses of PersistenceException in org.apache.sling.discovery.commons.providers.util
Methods in org.apache.sling.discovery.commons.providers.util that throw PersistenceExceptionModifier and TypeMethodDescriptionstatic booleanResourceHelper.deleteResource(ResourceResolver resourceResolver, String path) static ResourceResourceHelper.getOrCreateResource(ResourceResolver resourceResolver, String path) static voidResourceHelper.moveResource(Resource res, String path) Move resource to given path. -
Uses of PersistenceException in org.apache.sling.discovery.oak.cluster
Methods in org.apache.sling.discovery.oak.cluster that throw PersistenceExceptionModifier and TypeMethodDescriptionClusterReader.readInstance(int clusterNodeId, boolean failOnMissingSyncToken, long seqNum) Reads all discovery.oak related data for clusterNodeId and fills the internal structure with the resulting info - or remembers that the clusterNode was incomplete (partially started) -
Uses of PersistenceException in org.apache.sling.servlets.post
Methods in org.apache.sling.servlets.post that throw PersistenceExceptionModifier and TypeMethodDescriptionvoidJakartaPostOperation.run(SlingJakartaHttpServletRequest request, JakartaPostResponse response, SlingJakartaPostProcessor[] processors) Executes the operation provided by this service implementation.voidPostOperation.run(SlingHttpServletRequest request, PostResponse response, SlingPostProcessor[] processors) Deprecated.Executes the operation provided by this service implementation. -
Uses of PersistenceException in org.apache.sling.servlets.post.exceptions
Subclasses of PersistenceException in org.apache.sling.servlets.post.exceptionsModifier and TypeClassDescriptionclassIndicates that the input does not meet necessary precondition.classThis exceptions indicates errors, which might be temporary and for which a retry with the same parameters could work. -
Uses of PersistenceException in org.apache.sling.spi.resource.provider
Methods in org.apache.sling.spi.resource.provider that throw PersistenceExceptionModifier and TypeMethodDescriptionvoidResourceProvider.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 ResourceCreate 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.booleanResourceProvider.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.