AbstractPostOperation
.public abstract class AbstractSlingPostOperation extends AbstractPostOperation implements SlingPostOperation
AbstractSlingPostOperation
is the abstract base class
implementation of the SlingPostOperation
interface extending the new
AbstractPostOperation
.
This class exists for backwards compatibility. Existing implementations are
advised to migrate to the new AbstractPostOperation
.
log
PROP_OPERATION_NAME, SERVICE_NAME
PROP_OPERATION_NAME, SERVICE_NAME
Constructor and Description |
---|
AbstractSlingPostOperation()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doRun(SlingHttpServletRequest request,
HtmlResponse response,
java.util.List<Modification> changes)
Deprecated.
|
protected void |
doRun(SlingHttpServletRequest request,
PostResponse response,
java.util.List<Modification> changes)
Deprecated.
Implementation of the
AbstractPostOperation.doRun(SlingHttpServletRequest, PostResponse, List)
method calling our own
run(SlingHttpServletRequest, HtmlResponse, SlingPostProcessor[])
meethod with a proxy for the Sling API HtmlResponse . |
void |
run(SlingHttpServletRequest request,
HtmlResponse response,
SlingPostProcessor[] processors)
Deprecated.
Implementation of the
SlingPostOperation.run(SlingHttpServletRequest, HtmlResponse, SlingPostProcessor[])
API method calling the
PostOperation.run(SlingHttpServletRequest, PostResponse, SlingPostProcessor[])
with a proxy around the Sling API HtmlResponse provided. |
checkoutIfNecessary, externalizePath, findVersionableAncestor, getApplyToResources, getItemPath, getVersioningConfiguration, hasItemPathPrefix, isSessionSaveRequired, isSkipCheckin, isSkipSessionHandling, isVersionable, orderNode, removeAndValidateWorkspace, requireItemPathPrefix, resolvePath, run
protected abstract void doRun(SlingHttpServletRequest request, HtmlResponse response, java.util.List<Modification> changes) throws javax.jcr.RepositoryException
request
- the requestresponse
- the responsechanges
- all changesjavax.jcr.RepositoryException
- in case of problemsprotected void doRun(SlingHttpServletRequest request, PostResponse response, java.util.List<Modification> changes) throws javax.jcr.RepositoryException
AbstractPostOperation.doRun(SlingHttpServletRequest, PostResponse, List)
method calling our own
run(SlingHttpServletRequest, HtmlResponse, SlingPostProcessor[])
meethod with a proxy for the Sling API HtmlResponse
.doRun
in class AbstractPostOperation
request
- The SlingHttpServletRequest
providing the
input, mostly in terms of request parameters, to the
operation.response
- The PostResponse
to fill with response
informationchanges
- A container to add Modification
instances
representing the operations done.javax.jcr.RepositoryException
- Maybe thrown if any error occurrs while
accessing the repository.public void run(SlingHttpServletRequest request, HtmlResponse response, SlingPostProcessor[] processors) throws PreconditionViolatedPersistenceException, TemporaryPersistenceException
SlingPostOperation.run(SlingHttpServletRequest, HtmlResponse, SlingPostProcessor[])
API method calling the
PostOperation.run(SlingHttpServletRequest, PostResponse, SlingPostProcessor[])
with a proxy around the Sling API HtmlResponse
provided.run
in interface SlingPostOperation
request
- The SlingHttpServletRequest
object providing
the request input for the operation.response
- The HtmlResponse
into which the operation
steps should be recorded.processors
- The SlingPostProcessor
services to be called
after applying the operation. This may be null
if
there are none.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
parametersCopyright © 2022 The Apache Software Foundation. All rights reserved.