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.
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
logVon Schnittstelle geerbte Felder org.apache.sling.servlets.post.PostOperation
PROP_OPERATION_NAME, SERVICE_NAMEVon Schnittstelle geerbte Felder org.apache.sling.servlets.post.SlingPostOperation
PROP_OPERATION_NAME, SERVICE_NAME -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected abstract voiddoRun(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.servlets.HtmlResponse response, List<Modification> changes) Veraltet.protected voiddoRun(org.apache.sling.api.SlingHttpServletRequest request, PostResponse response, List<Modification> changes) Veraltet.Implementation of theAbstractPostOperation.doRun(SlingHttpServletRequest, PostResponse, List)method calling our ownrun(SlingHttpServletRequest, HtmlResponse, SlingPostProcessor[])meethod with a proxy for the Sling APIHtmlResponse.voidrun(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.servlets.HtmlResponse response, SlingPostProcessor[] processors) Veraltet.Implementation of theSlingPostOperation.run(SlingHttpServletRequest, HtmlResponse, SlingPostProcessor[])API method calling thePostOperation.run(SlingHttpServletRequest, PostResponse, SlingPostProcessor[])with a proxy around the Sling APIHtmlResponseprovided.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
-
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 requestresponse- the responsechanges- 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 theAbstractPostOperation.doRun(SlingHttpServletRequest, PostResponse, List)method calling our ownrun(SlingHttpServletRequest, HtmlResponse, SlingPostProcessor[])meethod with a proxy for the Sling APIHtmlResponse.- Angegeben von:
doRunin KlasseAbstractPostOperation- Parameter:
request- TheSlingHttpServletRequestproviding the input, mostly in terms of request parameters, to the operation.response- ThePostResponseto fill with response informationchanges- A container to addModificationinstances 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 theSlingPostOperation.run(SlingHttpServletRequest, HtmlResponse, SlingPostProcessor[])API method calling thePostOperation.run(SlingHttpServletRequest, PostResponse, SlingPostProcessor[])with a proxy around the Sling APIHtmlResponseprovided.- Angegeben von:
runin SchnittstelleSlingPostOperation- Parameter:
request- TheSlingHttpServletRequestobject providing the request input for the operation.response- TheHtmlResponseinto which the operation steps should be recorded.processors- TheSlingPostProcessorservices to be called after applying the operation. This may benullif 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
-
AbstractPostOperation.