Klasse DeleteOperation

java.lang.Object
org.apache.sling.servlets.post.impl.operations.AbstractPostOperation
org.apache.sling.servlets.post.impl.operations.DeleteOperation
Alle implementierten Schnittstellen:
JakartaPostOperation

public class DeleteOperation extends AbstractPostOperation
The DeleteOperation class implements the delete operation for the Sling default POST servlet.
  • Konstruktordetails

    • DeleteOperation

      public DeleteOperation()
  • Methodendetails

    • doRun

      protected void doRun(org.apache.sling.api.SlingJakartaHttpServletRequest request, JakartaPostResponse response, List<Modification> changes) throws org.apache.sling.api.resource.PersistenceException
      Beschreibung aus Klasse kopiert: AbstractPostOperation
      Actually performs the desired operation filling progress into the changes list and preparing and further information in the response.

      The response comes prepared with the path, location and parent location set. Other properties are expected to be set by this implementation.

      Angegeben von:
      doRun in Klasse AbstractPostOperation
      Parameter:
      request - The SlingJakartaHttpServletRequest 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:
      org.apache.sling.api.resource.PersistenceException - Maybe thrown if any error occurs while accessing the repository.
    • isDeleteChunkRequest

      protected boolean isDeleteChunkRequest(org.apache.sling.api.SlingJakartaHttpServletRequest request)
      Return true if request is to delete chunks. To return true, request will should parameter ":applyToChunks" and it should be true.
      Parameter:
      request - the request
      Gibt zurück:
      is the request is to delete chunks