Uses of Class
org.apache.sling.api.resource.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
Modifier 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
Modifier 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.discovery.base.connectors.announcement
-
Uses of PersistenceException in org.apache.sling.discovery.commons.providers.spi.base
Modifier and TypeMethodDescriptionIdMapService.toSlingId
(int clusterNodeId, ResourceResolver resourceResolver) -
Uses of PersistenceException in org.apache.sling.discovery.commons.providers.util
Modifier and TypeMethodDescriptionstatic boolean
ResourceHelper.deleteResource
(ResourceResolver resourceResolver, String path) static Resource
ResourceHelper.getOrCreateResource
(ResourceResolver resourceResolver, String path) static void
ResourceHelper.moveResource
(Resource res, String path) Move resource to given path. -
Uses of PersistenceException in org.apache.sling.discovery.oak.cluster
Modifier 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
Modifier 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
Modifier and TypeMethodDescriptionstatic Resource
ResourceHelper.createAndCommitResource
(ResourceResolver resolver, String path, Map<String, Object> props) Create the resource and commit itvoid
static void
ResourceHelper.getOrCreateBasePath
(ResourceResolver resolver, String path) static Resource
ResourceHelper.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
Modifier and TypeMethodDescriptionvoid
JcrResourceProvider.commit
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx) @NotNull Resource
JcrResourceProvider.create
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @Nullable String path, @Nullable Map<String, Object> properties) void
JcrResourceProvider.delete
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull Resource resource) boolean
JcrResourceProvider.move
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull String srcAbsPath, @NotNull String destAbsPath) boolean
JcrResourceProvider.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
Modifier and TypeMethodDescriptionResourceResolverControl.checkSourceAndDest
(ResourceResolverContext context, String srcAbsPath, String destAbsPath) Check source and destination for operationsvoid
ResourceResolverControl.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.void
ResourceResolverControl.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.boolean
ResourceResolverControl.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
Modifier and TypeMethodDescriptionvoid
LegacyResourceProviderAdapter.commit
(@NotNull ResolveContext<Object> ctx) void
LegacyResourceProviderFactoryAdapter.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) void
LegacyResourceProviderAdapter.delete
(@NotNull ResolveContext<Object> ctx, @NotNull Resource resource) void
LegacyResourceProviderFactoryAdapter.delete
(@NotNull ResolveContext<LegacyResourceProviderAdapter> ctx, @NotNull Resource resource) -
Uses of PersistenceException in org.apache.sling.resourceresolver.impl.providers.stateful
Modifier and TypeMethodDescriptionvoid
AuthenticatedResourceProvider.commit()
boolean
AuthenticatedResourceProvider.create
(ResourceResolver resolver, String path, Map<String, Object> properties) void
boolean
boolean
AuthenticatedResourceProvider.orderBefore
(@NotNull Resource parent, @NotNull String name, @Nullable String followingSiblingName) -
Uses of PersistenceException in org.apache.sling.servlets.post
Modifier and TypeMethodDescriptionvoid
PostOperation.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
Modifier and TypeClassDescriptionclass
Indicates that the input does not meet necessary precondition.class
This 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
Modifier and TypeMethodDescriptionboolean
boolean
void
JCRSupport.checkoutIfNecessary
(Resource rsrc, List<Modification> changes, VersioningConfiguration versioningConfiguration) void
JCRSupportImpl.checkoutIfNecessary
(Resource resource, List<Modification> changes, VersioningConfiguration versioningConfiguration) Copy thesrc
item into thedstParent
node.void
SlingFileUploadHandler.deleteChunks
(Resource rsrc) Delete all chunks saved within a resource.JCRSupport.getPropertyType
(Object node, String name) JCRSupportImpl.getPropertyType
(Object node, String name) boolean
JCRSupport.isPropertyMandatory
(Object node, String name) boolean
JCRSupportImpl.isPropertyMandatory
(Object node, String name) boolean
JCRSupport.isPropertyMultiple
(Object node, String name) boolean
JCRSupportImpl.isPropertyMultiple
(Object node, String name) boolean
JCRSupport.isPropertyProtectedOrNewAutoCreated
(Object node, String name) boolean
JCRSupportImpl.isPropertyProtectedOrNewAutoCreated
(Object n, String name) boolean
JCRSupport.isVersionable
(Resource rsrc) boolean
JCRSupportImpl.isVersionable
(Resource rsrc) void
void
void
SlingFileUploadHandler.setFile
(Resource parent, RequestProperty prop, List<Modification> changes) Uses the file(s) in the request parameter for creation of new nodes.void
JCRSupport.setPrimaryNodeType
(Object node, String type) void
JCRSupportImpl.setPrimaryNodeType
(Object node, String type) void
SlingPropertyValueHandler.setProperty
(Resource parent, RequestProperty prop) Set property on given node, with some automatic values when user provides the field name but no value.void
JCRSupport.setTypedProperty
(Object n, String name, String[] values, int type, boolean multiValued) void
JCRSupportImpl.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
Modifier and TypeMethodDescriptionprotected abstract void
AbstractPostOperation.doRun
(SlingHttpServletRequest request, PostResponse response, List<Modification> changes) Actually performs the desired operation filling progress into thechanges
list and preparing and further information in theresponse
.protected void
CheckinOperation.doRun
(SlingHttpServletRequest request, PostResponse response, List<Modification> changes) protected void
CheckoutOperation.doRun
(SlingHttpServletRequest request, PostResponse response, List<Modification> changes) protected void
DeleteOperation.doRun
(SlingHttpServletRequest request, PostResponse response, List<Modification> changes) protected void
ImportOperation.doRun
(SlingHttpServletRequest request, PostResponse response, List<Modification> changes) protected void
ModifyOperation.doRun
(SlingHttpServletRequest request, PostResponse response, List<Modification> changes) protected void
RestoreOperation.doRun
(SlingHttpServletRequest request, PostResponse response, List<Modification> changes) protected void
StreamedUploadOperation.doRun
(SlingHttpServletRequest request, PostResponse response, List<Modification> changes) protected Resource
CopyOperation.execute
(List<Modification> changes, Resource source, String destParent, String destName, VersioningConfiguration versioningConfiguration) protected Resource
MoveOperation.execute
(List<Modification> changes, Resource source, String destParent, String destName, VersioningConfiguration versioningConfiguration) protected void
AbstractPostOperation.orderResource
(SlingHttpServletRequest request, Resource resource, List<Modification> changes) Orders the given resource according to the specified command.void
AbstractPostOperation.run
(SlingHttpServletRequest request, PostResponse response, SlingPostProcessor[] processors) Prepares and finalizes the actual operation. -
Uses of PersistenceException in org.apache.sling.spi.resource.provider
Modifier 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.