Package org.apache.sling.servlets.post
Class AbstractSlingPostOperation
- java.lang.Object
-
- org.apache.sling.servlets.post.AbstractPostOperation
-
- org.apache.sling.servlets.post.AbstractSlingPostOperation
-
- All Implemented Interfaces:
PostOperation
,SlingPostOperation
public abstract class AbstractSlingPostOperation extends AbstractPostOperation implements SlingPostOperation
Deprecated.as of 2.0.8 (Bundle version 2.2.0) and replaced byAbstractPostOperation
.TheAbstractSlingPostOperation
is the abstract base class implementation of theSlingPostOperation
interface extending the newAbstractPostOperation
.This class exists for backwards compatibility. Existing implementations are advised to migrate to the new
AbstractPostOperation
.
-
-
Field Summary
-
Fields inherited from class org.apache.sling.servlets.post.AbstractPostOperation
log
-
Fields inherited from interface org.apache.sling.servlets.post.PostOperation
PROP_OPERATION_NAME, SERVICE_NAME
-
Fields inherited from interface org.apache.sling.servlets.post.SlingPostOperation
PROP_OPERATION_NAME, SERVICE_NAME
-
-
Constructor Summary
Constructors Constructor Description AbstractSlingPostOperation()
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected abstract void
doRun(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.servlets.HtmlResponse response, List<Modification> changes)
Deprecated.protected void
doRun(org.apache.sling.api.SlingHttpServletRequest request, PostResponse response, List<Modification> changes)
Deprecated.Implementation of theAbstractPostOperation.doRun(SlingHttpServletRequest, PostResponse, List)
method calling our ownrun(SlingHttpServletRequest, HtmlResponse, SlingPostProcessor[])
meethod with a proxy for the Sling APIHtmlResponse
.void
run(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.servlets.HtmlResponse response, SlingPostProcessor[] processors)
Deprecated.Implementation of theSlingPostOperation.run(SlingHttpServletRequest, HtmlResponse, SlingPostProcessor[])
API method calling thePostOperation.run(SlingHttpServletRequest, PostResponse, SlingPostProcessor[])
with a proxy around the Sling APIHtmlResponse
provided.-
Methods inherited from class org.apache.sling.servlets.post.AbstractPostOperation
checkoutIfNecessary, externalizePath, findVersionableAncestor, getApplyToResources, getItemPath, getVersioningConfiguration, hasItemPathPrefix, isSessionSaveRequired, isSkipCheckin, isSkipSessionHandling, isVersionable, orderNode, removeAndValidateWorkspace, requireItemPathPrefix, resolvePath, run
-
-
-
-
Method Detail
-
doRun
protected abstract void doRun(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.servlets.HtmlResponse response, List<Modification> changes) throws javax.jcr.RepositoryException
Deprecated.- Parameters:
request
- the requestresponse
- the responsechanges
- all changes- Throws:
javax.jcr.RepositoryException
- in case of problems
-
doRun
protected void doRun(org.apache.sling.api.SlingHttpServletRequest request, PostResponse response, List<Modification> changes) throws javax.jcr.RepositoryException
Deprecated.Implementation of theAbstractPostOperation.doRun(SlingHttpServletRequest, PostResponse, List)
method calling our ownrun(SlingHttpServletRequest, HtmlResponse, SlingPostProcessor[])
meethod with a proxy for the Sling APIHtmlResponse
.- Specified by:
doRun
in classAbstractPostOperation
- Parameters:
request
- TheSlingHttpServletRequest
providing the input, mostly in terms of request parameters, to the operation.response
- ThePostResponse
to fill with response informationchanges
- A container to addModification
instances representing the operations done.- Throws:
javax.jcr.RepositoryException
- Maybe thrown if any error occurrs while accessing the repository.
-
run
public void run(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.servlets.HtmlResponse response, SlingPostProcessor[] processors) throws PreconditionViolatedPersistenceException, TemporaryPersistenceException
Deprecated.Implementation of theSlingPostOperation.run(SlingHttpServletRequest, HtmlResponse, SlingPostProcessor[])
API method calling thePostOperation.run(SlingHttpServletRequest, PostResponse, SlingPostProcessor[])
with a proxy around the Sling APIHtmlResponse
provided.- Specified by:
run
in interfaceSlingPostOperation
- Parameters:
request
- TheSlingHttpServletRequest
object providing the request input for the operation.response
- TheHtmlResponse
into which the operation steps should be recorded.processors
- TheSlingPostProcessor
services to be called after applying the operation. This may benull
if there are none.- Throws:
PreconditionViolatedPersistenceException
- May be thrown if an error occurrs during the operation because preconditions are not fulfilled. If the operation should be repeated with the same parameters, it will fail again.TemporaryPersistenceException
- May be thrown if an error occurs during the operation, for which it makes sense to retry it with the same parameters
-
-