Package org.apache.sling.servlets.post

# Klasse AbstractSlingPostOperation

java.lang.Object
org.apache.sling.servlets.post.AbstractPostOperation
org.apache.sling.servlets.post.AbstractSlingPostOperation

Alle implementierten Schnittstellen:
  `PostOperation`, `SlingPostOperation`

public abstract class AbstractSlingPostOperation extends AbstractPostOperation implements SlingPostOperation
Veraltet.
as of 2.0.8 (Bundle version 2.2.0) and replaced by `AbstractPostOperation`.
The `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`.

## Feldübersicht

### Von Klasse geerbte Felder org.apache.sling.servlets.post.AbstractPostOperation

`log`

### Von Schnittstelle geerbte Felder org.apache.sling.servlets.post.PostOperation

`PROP_OPERATION_NAME, SERVICE_NAME`

### Von Schnittstelle geerbte Felder org.apache.sling.servlets.post.SlingPostOperation

`PROP_OPERATION_NAME, SERVICE_NAME`

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`AbstractSlingPostOperation()`
Veraltet.

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`protected abstract void`
`doRun(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.servlets.HtmlResponse response, List<Modification> changes)`
Veraltet.
`protected void`
`doRun(org.apache.sling.api.SlingHttpServletRequest request, PostResponse response, List<Modification> changes)`
Veraltet.
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(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.servlets.HtmlResponse response, SlingPostProcessor[] processors)`
Veraltet.
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.

### Von Klasse geerbte Methoden org.apache.sling.servlets.post.AbstractPostOperation

`checkoutIfNecessary, externalizePath, findVersionableAncestor, getApplyToResources, getItemPath, getVersioningConfiguration, hasItemPathPrefix, isSessionSaveRequired, isSkipCheckin, isSkipSessionHandling, isVersionable, orderNode, removeAndValidateWorkspace, requireItemPathPrefix, resolvePath, run`

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Konstruktordetails

### AbstractSlingPostOperation

public AbstractSlingPostOperation()
Veraltet.

## Methodendetails

### 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
Veraltet.

Parameter:
  `request` - the request
  `response` - the response
  `changes` - all changes
Löst aus:
  `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
Veraltet.
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`.

Angegeben von:
  `doRun` in Klasse `AbstractPostOperation`
Parameter:
  `request` - The `SlingHttpServletRequest` providing the input, mostly in terms of request parameters, to the operation.
  `response` - The `PostResponse` to fill with response information
  `changes` - A container to add `Modification` instances representing the operations done.
Löst aus:
  `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
Veraltet.
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.

Angegeben von:
  `run` in Schnittstelle `SlingPostOperation`
Parameter:
  `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.
Löst aus:
  `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