The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

LS::Service::DataService - Data service for LSID resolution

SYNOPSIS

 my $ns = LS::Service::Namespace->new;

 my $metadata_or_data = new LS::Service::DataService;
 $metadata_or_data->addNamespace(new LS::Service::Namespace( $ns );

DESCRIPTION

This class provides support for acquiring the data or metadata for a list of namespaces.

CONSTRUCTORS

new ( %options )

No options.

METHODS

addNamespace ( $LS::Service::Namespace )

Adds a namespace that the data service knows of. Whenever getData or getMetadata is called, the service will dispatch the call to the correct namespace. If the namespace does not exist an erro will be returned.

authenticate ( @credentials )

Reserved.

getData ( $lsid )

This call will attempt to dispatch the request to the appropriate namespace and will return the value (the data for the LSID) to the caller.

getMetadata ( $lsid, $accepted_formats )

This call will attempt to dispatch the request to the appropriate namespace and will return the value (the data for the LSID) to the caller.

COPYRIGHT

Copyright (c) 2002,2003 IBM Corporation. All rights reserved. This program and the accompanying materials are made available under the terms of the Common Public License v1.0 which accompanies this distribution, and is available at http://www.opensource.org/licenses/cpl.php