jpl.eda.archive
Class ArchiveProfileHandler

java.lang.Object
  extended byjpl.eda.archive.ArchiveProfileHandler
All Implemented Interfaces:
jpl.eda.profile.handlers.ProfileHandler

public class ArchiveProfileHandler
extends java.lang.Object
implements jpl.eda.profile.handlers.ProfileHandler

This class implements the ProfileHandler interface enabling a Profile Server to access the Catalog and Archive Service (CAS). This handler also features an optional mapping capability. This feature allows incoming query element names and values to be mapped to source specific names and values.

In order to use this handler the following property must be specified for the Profile Server as follows:

This class uses the following properties:

The above properties may be defined in the Profile Server's properties element.

Version:
$Revision: 1.1 $
Author:
S. Hardman

Constructor Summary
ArchiveProfileHandler()
           
 
Method Summary
 java.util.List findProfiles(jpl.eda.xmlquery.XMLQuery xmlQuery)
          This method accepts a XMLQuery object as input, maps the element names and values according to the optional map and sends the query onto the CAS getProfiles() method.
 jpl.eda.profile.Profile get(java.lang.String profileId)
          This method is not fully implemented at this time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchiveProfileHandler

public ArchiveProfileHandler()
Method Detail

findProfiles

public java.util.List findProfiles(jpl.eda.xmlquery.XMLQuery xmlQuery)
                            throws jpl.eda.profile.ProfileException
This method accepts a XMLQuery object as input, maps the element names and values according to the optional map and sends the query onto the CAS getProfiles() method.

Specified by:
findProfiles in interface jpl.eda.profile.handlers.ProfileHandler
Parameters:
xmlQuery - The XMLQuery object containing the query to resolve.
Returns:
A list of Profile objects representing the products matching the query criteria.
Throws:
jpl.eda.profile.ProfileException - If an error occurs resolving the required property, mapping the elements, finding the specified CAS instance or the CAS generates an internal error when performing the query.

get

public jpl.eda.profile.Profile get(java.lang.String profileId)
                            throws jpl.eda.profile.ProfileException
This method is not fully implemented at this time.

Specified by:
get in interface jpl.eda.profile.handlers.ProfileHandler
Parameters:
profileId - The Profile identifier.
Returns:
The Profile object with the specified profile identifier. An empty Profile is returned at this time.
Throws:
jpl.eda.profile.ProfileException - If an error occurs retrieving the Profile.


Copyright © 1999-2005 NASA Jet Propulsion Laboratory, California Institute of Technology. All Rights Reserved.