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.event.impl.jobs.scheduling
Methods in org.apache.sling.event.impl.jobs.scheduling that throw PersistenceExceptionModifier and TypeMethodDescriptionScheduledJobHandler.addOrUpdateJob(String jobTopic, Map<String, Object> jobProperties, String scheduleName, boolean suspend, List<ScheduleInfoImpl> scheduleInfos) Write a scheduled job to the resource tree. -
Uses of PersistenceException in org.apache.sling.event.impl.support
Methods in org.apache.sling.event.impl.support that throw PersistenceExceptionModifier and TypeMethodDescriptionstatic ResourceResourceHelper.createAndCommitResource(ResourceResolver resolver, String path, Map<String, Object> props) Create the resource and commit itvoidstatic voidResourceHelper.getOrCreateBasePath(ResourceResolver resolver, String path) static ResourceResourceHelper.getOrCreateResource(ResourceResolver resolver, String path, Map<String, Object> props) Creates or gets the resource at the given path. -
Uses of PersistenceException in org.apache.sling.jcr.resource.internal.helper.jcr
Methods in org.apache.sling.jcr.resource.internal.helper.jcr that throw PersistenceExceptionModifier and TypeMethodDescriptionvoidJcrResourceProvider.commit(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx) @NotNull ResourceJcrResourceProvider.create(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @Nullable String path, @Nullable Map<String, Object> properties) voidJcrResourceProvider.delete(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull Resource resource) booleanJcrResourceProvider.move(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull String srcAbsPath, @NotNull String destAbsPath) booleanJcrResourceProvider.orderBefore(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull Resource parent, @NotNull String name, @Nullable String followingSiblingName) -
Uses of PersistenceException in org.apache.sling.resourceresolver.impl.helper
Methods in org.apache.sling.resourceresolver.impl.helper that throw PersistenceExceptionModifier and TypeMethodDescriptionResourceResolverControl.checkSourceAndDest(ResourceResolverContext context, String srcAbsPath, String destAbsPath) Check source and destination for operationsvoidResourceResolverControl.commit(ResourceResolverContext context) Commit changes on all modifiable ResourceProviders.ResourceResolverControl.copy(ResourceResolverContext context, String srcAbsPath, String destAbsPath) Tries to find a resource provider accepting both paths and invokesAuthenticatedResourceProvider.copy(String, String)method on it.ResourceResolverControl.create(ResourceResolverContext context, String path, Map<String, Object> properties) Create a resource.voidResourceResolverControl.delete(ResourceResolverContext context, Resource resource) Delete the resource.ResourceResolverControl.move(ResourceResolverContext context, String srcAbsPath, String destAbsPath) Tries to find a resource provider accepting both paths and invokesAuthenticatedResourceProvider.move(String, String)method on it.booleanResourceResolverControl.orderBefore(@NotNull ResourceResolverContext context, @NotNull Resource parent, @NotNull String name, @Nullable String followingSiblingName) Order resources -
Uses of PersistenceException in org.apache.sling.resourceresolver.impl.legacy
Methods in org.apache.sling.resourceresolver.impl.legacy that throw PersistenceExceptionModifier and TypeMethodDescriptionvoidLegacyResourceProviderAdapter.commit(@NotNull ResolveContext<Object> ctx) voidLegacyResourceProviderFactoryAdapter.commit(@NotNull ResolveContext<LegacyResourceProviderAdapter> ctx) LegacyResourceProviderAdapter.create(@NotNull ResolveContext<Object> ctx, String path, Map<String, Object> properties) LegacyResourceProviderFactoryAdapter.create(@NotNull ResolveContext<LegacyResourceProviderAdapter> ctx, String path, Map<String, Object> properties) voidLegacyResourceProviderAdapter.delete(@NotNull ResolveContext<Object> ctx, @NotNull Resource resource) voidLegacyResourceProviderFactoryAdapter.delete(@NotNull ResolveContext<LegacyResourceProviderAdapter> ctx, @NotNull Resource resource) -
Uses of PersistenceException in org.apache.sling.resourceresolver.impl.providers.stateful
Methods in org.apache.sling.resourceresolver.impl.providers.stateful that throw PersistenceExceptionModifier and TypeMethodDescriptionvoidAuthenticatedResourceProvider.commit()booleanAuthenticatedResourceProvider.create(ResourceResolver resolver, String path, Map<String, Object> properties) voidbooleanbooleanAuthenticatedResourceProvider.orderBefore(@NotNull Resource parent, @NotNull String name, @Nullable String followingSiblingName) -
Uses of PersistenceException in org.apache.sling.servlets.post
Methods in org.apache.sling.servlets.post that throw PersistenceExceptionModifier and TypeMethodDescriptionvoidPostOperation.run(SlingHttpServletRequest request, PostResponse response, SlingPostProcessor[] processors) 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.servlets.post.impl.helper
Methods in org.apache.sling.servlets.post.impl.helper that throw PersistenceExceptionModifier and TypeMethodDescriptionbooleanbooleanvoidJCRSupport.checkoutIfNecessary(Resource rsrc, List<Modification> changes, VersioningConfiguration versioningConfiguration) voidJCRSupportImpl.checkoutIfNecessary(Resource resource, List<Modification> changes, VersioningConfiguration versioningConfiguration) Copy thesrcitem into thedstParentnode.voidSlingFileUploadHandler.deleteChunks(Resource rsrc) Delete all chunks saved within a resource.JCRSupport.getPropertyType(Object node, String name) JCRSupportImpl.getPropertyType(Object node, String name) booleanJCRSupport.isPropertyMandatory(Object node, String name) booleanJCRSupportImpl.isPropertyMandatory(Object node, String name) booleanJCRSupport.isPropertyMultiple(Object node, String name) booleanJCRSupportImpl.isPropertyMultiple(Object node, String name) booleanJCRSupport.isPropertyProtectedOrNewAutoCreated(Object node, String name) booleanJCRSupportImpl.isPropertyProtectedOrNewAutoCreated(Object n, String name) booleanJCRSupport.isVersionable(Resource rsrc) booleanJCRSupportImpl.isVersionable(Resource rsrc) voidvoidvoidSlingFileUploadHandler.setFile(Resource parent, RequestProperty prop, List<Modification> changes) Uses the file(s) in the request parameter for creation of new nodes.voidJCRSupport.setPrimaryNodeType(Object node, String type) voidJCRSupportImpl.setPrimaryNodeType(Object node, String type) voidSlingPropertyValueHandler.setProperty(Resource parent, RequestProperty prop) Set property on given node, with some automatic values when user provides the field name but no value.voidJCRSupport.setTypedProperty(Object n, String name, String[] values, int type, boolean multiValued) voidJCRSupportImpl.setTypedProperty(Object n, String name, String[] values, int type, boolean multiValued) StreamedChunk.store(Resource fileResource, List<Modification> changes) Store the chunk in a file resource under a jcr:content sub node.JCRSupport.storeAsReference(Resource resource, Object node, String name, String[] values, int type, boolean multiValued) Stores property value(s) as reference(s).JCRSupportImpl.storeAsReference(Object n, String name, String[] values, int type, boolean multiValued) -
Uses of PersistenceException in org.apache.sling.servlets.post.impl.operations
Methods in org.apache.sling.servlets.post.impl.operations that throw PersistenceExceptionModifier and TypeMethodDescriptionprotected abstract voidAbstractPostOperation.doRun(SlingHttpServletRequest request, PostResponse response, List<Modification> changes) Actually performs the desired operation filling progress into thechangeslist and preparing and further information in theresponse.protected voidCheckinOperation.doRun(SlingHttpServletRequest request, PostResponse response, List<Modification> changes) protected voidCheckoutOperation.doRun(SlingHttpServletRequest request, PostResponse response, List<Modification> changes) protected voidDeleteOperation.doRun(SlingHttpServletRequest request, PostResponse response, List<Modification> changes) protected voidImportOperation.doRun(SlingHttpServletRequest request, PostResponse response, List<Modification> changes) protected voidModifyOperation.doRun(SlingHttpServletRequest request, PostResponse response, List<Modification> changes) protected voidRestoreOperation.doRun(SlingHttpServletRequest request, PostResponse response, List<Modification> changes) protected voidStreamedUploadOperation.doRun(SlingHttpServletRequest request, PostResponse response, List<Modification> changes) protected ResourceCopyOperation.execute(List<Modification> changes, Resource source, String destParent, String destName, VersioningConfiguration versioningConfiguration) protected ResourceMoveOperation.execute(List<Modification> changes, Resource source, String destParent, String destName, VersioningConfiguration versioningConfiguration) protected voidAbstractPostOperation.orderResource(SlingHttpServletRequest request, Resource resource, List<Modification> changes) Orders the given resource according to the specified command.voidAbstractPostOperation.run(SlingHttpServletRequest request, PostResponse response, SlingPostProcessor[] processors) Prepares and finalizes the actual operation. -
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.