/
Content Cataloger Plugin

Content Cataloger Plugin

Description

The Content Cataloger Plugin provides the implementation to parse content, create a Metacard, and create/update/delete catalog entries in the Metadata Catalog.The Content Cataloger Plugin is an implementation of the ContentPlugin interface. When installed, it is invoked by the Content Framework after a content item has been processed by the Storage Provider but before the response is returned to the Content Endpoint.

The Content Cataloger Plugin searches the OSGi service registry for all services registered as InputTransformers that can process the content item's mime type. If such a service is found, the service is invoked (for create and update operations; delete operations are handled internally by the Content Cataloger Plugin). The InputTransformer service accepts the content item's InputStream and parses it, creating a Metacard that is returned to the Content Cataloger Plugin. This Metacard is then used in the create and update operations invoked on the Catalog Framework to interface with the Metadata Catalog.

Details on how to develop an Input Transformer, with either Java or Apache Camel, can be found in the Developing an Input Transformer section of the DDF Developer's Guide.

Usage

Use the Content Cataloger Plugin if create/update/delete of catalog entries in the Metadata Catalog based on the content item are desired. These CUD operations on the Metadata Catalog are made possible by parsing the content item to create a Metacard and then using this Metacard in the CUD operations on the Catalog Framework. The Content Cataloger Plugin is the only component in the DDF Content Framework that has the ability to interface with the Catalog Framework (and hence the Metadata Catalog).

Installation and Uninstallation

The Content Cataloger Plugin is bundled as the content-core-catalogerplugin feature and can be installed and uninstalled using the normal processes described in the Configuration section of the Administrator's Guide.

Configuration

There are no configurable properties for this component. This component can only be installed and uninstalled.

Known Issues

  • Content Cataloger Plugin is only partially transactional. On create operations where the content is being stored in the content repository and the content is being parsed to generated a metacard for insertion into the Metadata Catalog, the content storage will be undone (i.e., the recently inserted content removed from the content repository if the Metadata Catalog insertion encountered problems. Update and delete operations have no transactional capabilities, hence once the content is updated or deleted this cannot be undone. Therefore, the content repository and Metadata Catalog could get out of sync.