org.apache.oodt.profile.handlers
Interface ProfileHandler

All Known Subinterfaces:
ProfileManager
All Known Implementing Classes:
CASProfileHandler, DatabaseProfileManager, LightweightProfileServer

public interface ProfileHandler

Interface of a profile handler. A profile handler can search for profiles or retrieve a single profile by its ID.

Version:
$Revision: 1.2 $
Author:
Kelly

Method Summary
 List findProfiles(XMLQuery query)
          Find a set of profiles that match the given query.
 Profile get(String profID)
          Get a profile.
 String getID()
          Get my ID.
 

Method Detail

findProfiles

List findProfiles(XMLQuery query)
                  throws ProfileException
Find a set of profiles that match the given query. This method searchs the profiles provided by this profile service provider based on criteria in the query. It returns an XML document describing the profiles and profile elements that match.

Parameters:
query - Search criteria.
Returns:
List of matching Profile objects.
Throws:
ProfileException - If any other error occurs.

get

Profile get(String profID)
            throws ProfileException
Get a profile.

Parameters:
profID - ID of the profile to get.
Returns:
The profile with the given profID, or null if it's not found.
Throws:
ProfileException - If any error occurs.

getID

String getID()
Get my ID.

Returns:
A string that identifies this profile handler in some way.


Copyright © 1999-2012 Apache OODT. All Rights Reserved.