Esri Geoportal Server
1.0

com.esri.gpt.server.csw.provider
Class DeleteProvider

java.lang.Object
  extended by com.esri.gpt.server.csw.provider.DeleteProvider
All Implemented Interfaces:
IOperationProvider

public class DeleteProvider
extends Object
implements IOperationProvider

Provides the CSW Transaction/Delete operation.


Constructor Summary
DeleteProvider()
          Default constructor
 
Method Summary
protected  void executeDelete(OperationContext context, Publisher publisher, String typeName, String handle, String[] ids)
          Executes a deletion request.
 void generateResponse(OperationContext context)
          Generates the response.
 void handleGet(OperationContext context, HttpServletRequest request)
          Handles a URL based request (HTTP GET).
 void handleXML(OperationContext context, Node root, XPath xpath)
          Handles an XML based request (normally HTTP POST).
protected  void parseDeletionIds(Node parent, XPath xpath, StringSet ids)
          Parses a parent node for logical, property comparison and spatial sub-clauses.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteProvider

public DeleteProvider()
Default constructor

Method Detail

executeDelete

protected void executeDelete(OperationContext context,
                             Publisher publisher,
                             String typeName,
                             String handle,
                             String[] ids)
                      throws Exception
Executes a deletion request.

Parameters:
context - the operation context
publisher - the authenticated publisher
typeName - the CSW collection type
handle - a client supplied name (can be echoed within the response)
ids - the collection of IDs to delete
Throws:
Exception - if a processing exception occurs

generateResponse

public void generateResponse(OperationContext context)
                      throws Exception
Generates the response.

Parameters:
context - the operation context
Throws:
Exception - if a processing exception occurs

handleGet

public void handleGet(OperationContext context,
                      HttpServletRequest request)
               throws Exception
Handles a URL based request (HTTP GET).

Specified by:
handleGet in interface IOperationProvider
Parameters:
context - the operation context
request - the HTTP request
Throws:
Exception - if a processing exception occurs

handleXML

public void handleXML(OperationContext context,
                      Node root,
                      XPath xpath)
               throws Exception
Handles an XML based request (normally HTTP POST).

Specified by:
handleXML in interface IOperationProvider
Parameters:
context - the operation context
root - the root node
xpath - an XPath to enable queries (properly configured with name spaces)
Throws:
Exception - if a processing exception occurs

parseDeletionIds

protected void parseDeletionIds(Node parent,
                                XPath xpath,
                                StringSet ids)
                         throws OwsException,
                                XPathExpressionException
Parses a parent node for logical, property comparison and spatial sub-clauses.
Any logical clauses encountered will be recursively parsed.

Parameters:
parent - the parent node from which sub-clauses will read
xpath - an XPath to enable queries (properly configured with name spaces)
ids - the collection of ID's to populate for deletion
Throws:
OwsException - if validation fails
XPathExpressionException - if an XPath related exception occurs

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.