Class DeleteOperation
- java.lang.Object
-
- org.apache.sling.servlets.post.impl.operations.AbstractPostOperation
-
- org.apache.sling.servlets.post.impl.operations.DeleteOperation
-
- All Implemented Interfaces:
PostOperation
public class DeleteOperation extends AbstractPostOperation
TheDeleteOperationclass implements thedeleteoperation for the Sling default POST servlet.
-
-
Field Summary
-
Fields inherited from class org.apache.sling.servlets.post.impl.operations.AbstractPostOperation
jcrSsupport, log
-
Fields inherited from interface org.apache.sling.servlets.post.PostOperation
PROP_OPERATION_NAME, SERVICE_NAME
-
-
Constructor Summary
Constructors Constructor Description DeleteOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoRun(org.apache.sling.api.SlingHttpServletRequest request, PostResponse response, List<Modification> changes)Actually performs the desired operation filling progress into thechangeslist and preparing and further information in theresponse.protected booleanisDeleteChunkRequest(org.apache.sling.api.SlingHttpServletRequest request)Return true if request is to delete chunks.-
Methods inherited from class org.apache.sling.servlets.post.impl.operations.AbstractPostOperation
externalizePath, getApplyToResources, getResourcePath, getVersioningConfiguration, isSkipCheckin, run
-
-
-
-
Method Detail
-
doRun
protected void doRun(org.apache.sling.api.SlingHttpServletRequest request, PostResponse response, List<Modification> changes) throws org.apache.sling.api.resource.PersistenceExceptionDescription copied from class:AbstractPostOperationActually performs the desired operation filling progress into thechangeslist and preparing and further information in theresponse.The
responsecomes prepared with the path, location and parent location set. Other properties are expected to be set by this implementation.- Specified by:
doRunin classAbstractPostOperation- Parameters:
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.- Throws:
org.apache.sling.api.resource.PersistenceException- Maybe thrown if any error occurs while accessing the repository.
-
isDeleteChunkRequest
protected boolean isDeleteChunkRequest(org.apache.sling.api.SlingHttpServletRequest request)
Return true if request is to delete chunks. To return true, request will should parameter ":applyToChunks" and it should be true.- Parameters:
request- the request- Returns:
- is the request is to delete chunks
-
-