codice/ddf — pull request #7 by patels3 (2013-06-20 23:26:28+00:00)
Title: DDF-62 Support for create/update/delete of metacards in Camel Catalog Component

The existing Catalog component provides access to DDF transformers (input/output) via particular URIs. The architecture for this component currently uses a one to many relationship between the endpoint and producers/consumers. Essentially, based upon the last part of the URI, different producers/consumers are used (e.g. from catalog:inputtransformer" would use the InputTransformerConsumer). The general design for the CUD functionality is to implement another Camel producer for this existing endpoint. The consumer would do the different CUD operations based upon a header value and payload in the message.

Implementation for DDF-62 ticket.

URI
------
catalog:framework
HEADERS
-----------------
Header Name: "Operation"
Value: "CREATE"/"UPDATE"/"DELETE"
Input
-------
Create/Update: List or Metacard
Delete: List or String (Metacard IDs)
Output
-----------
exchange.getIn().getBody() updated with List of Metacards created/updated/deleted