NAME
MobyNamespaceType - LSID Metadata Handler
SYNOPSIS
use MOBY::lsid::authority::MobyMetadataResolver;
# create a LS::Service::DataService and pass it our handler
my $metadata = LS::Service::DataService->new();
$metadata->addNamespace( MobyNamespaceType->new() );
DESCRIPTION
This module implements the subroutines needed to implement an LSID authority service that handles this namespace.
AUTHORS
Edward Kawas (edward.kawas [at] gmail [dot] com)
getMetadata
This subroutine is the handler that actually performs the action when getMetadata is called on an LSID under this namespace
This routine has 2 parameters: lsid - the LSID format - output format <optional>
Example: getMetadata(LS::ID->new('urn:lsid:authority:namespace:object'));
A LS::Service::Response is returned if getMetadata is successful.
lsidExists
This subroutine checks to see whether the thing that the LSID points to exists at all.
This routine has 3 parameters: namespace - the LSID namespace id - the LSID object revision - the LSID revision
Example: lsidExists('someNamespace','someObject','someRevision');
If the thing pointed at by the lsid exists, then 1 is returned. Otherwise undef is returned.
isLatest
This subroutine checks to see whether the LSID is the latest, based on the revision.
This routine has 3 parameters: namespace - the LSID namespace id - the LSID object revision - the LSID revision
Example: isLatest('someNamespace','someObject','someRevision');
If the lsid is the latest, then undef is returned. If the lsid doesnt exist, then an empty string is returned. And if the lsid isnt the latest, then the latest lsid is returned.
NAME
MobyServiceType - LSID Metadata Handler
SYNOPSIS
use MOBY::lsid::authority::MobyMetadataResolver;
# create a LS::Service::DataService and pass it our handler
my $metadata = LS::Service::DataService->new();
$metadata->addNamespace( MobyServiceType->new() );
DESCRIPTION
This module implements the subroutines needed to implement an LSID authority service that handles this namespace.
AUTHORS
Edward Kawas (edward.kawas [at] gmail [dot] com)
getMetadata
This subroutine is the handler that actually performs the action when getMetadata is called on an LSID under this namespace
This routine has 2 parameters: lsid - the LSID format - output format <optional>
Example: getMetadata(LS::ID->new('urn:lsid:authority:namespace:object'));
A LS::Service::Response is returned if getMetadata is successful.
lsidExists
This subroutine checks to see whether the thing that the LSID points to exists at all.
This routine has 3 parameters: namespace - the LSID namespace id - the LSID object revision - the LSID revision
Example: lsidExists('someNamespace','someObject','someRevision');
If the thing pointed at by the lsid exists, then 1 is returned. Otherwise undef is returned.
isLatest
This subroutine checks to see whether the LSID is the latest, based on the revision.
This routine has 3 parameters: namespace - the LSID namespace id - the LSID object revision - the LSID revision
Example: isLatest('someNamespace','someObject','someRevision');
If the lsid is the latest, then undef is returned. If the lsid doesnt exist, then an empty string is returned. And if the lsid isnt the latest, then the latest lsid is returned.
NAME
MobyObjectClass - LSID Metadata Handler
SYNOPSIS
use MOBY::lsid::authority::MobyMetadataResolver;
# create a LS::Service::DataService and pass it our handler
my $metadata = LS::Service::DataService->new();
$metadata->addNamespace( MobyObjectClass->new() );
DESCRIPTION
This module implements the subroutines needed to implement an LSID authority service that handles this namespace.
AUTHORS
Edward Kawas (edward.kawas [at] gmail [dot] com)
getMetadata
This subroutine is the handler that actually performs the action when getMetadata is called on an LSID under this namespace
This routine has 2 parameters: lsid - the LSID format - output format <optional>
Example: getMetadata(LS::ID->new('urn:lsid:authority:namespace:object'));
A LS::Service::Response is returned if getMetadata is successful.
lsidExists
This subroutine checks to see whether the thing that the LSID points to exists at all.
This routine has 3 parameters: namespace - the LSID namespace id - the LSID object revision - the LSID revision
Example: lsidExists('someNamespace','someObject','someRevision');
If the thing pointed at by the lsid exists, then 1 is returned. Otherwise undef is returned.
isLatest
This subroutine checks to see whether the LSID is the latest, based on the revision.
This routine has 3 parameters: namespace - the LSID namespace id - the LSID object revision - the LSID revision
Example: isLatest('someNamespace','someObject','someRevision');
If the lsid is the latest, then undef is returned. If the lsid doesnt exist, then an empty string is returned. And if the lsid isnt the latest, then the latest lsid is returned.
NAME
MobyServiceInstance - LSID Metadata Handler
SYNOPSIS
use MOBY::lsid::authority::MobyMetadataResolver;
# create a LS::Service::DataService and pass it our handler
my $metadata = LS::Service::DataService->new();
$metadata->addNamespace( MobyServiceInstance->new() );
DESCRIPTION
This module implements the subroutines needed to implement an LSID authority service that handles this namespace.
AUTHORS
Edward Kawas (edward.kawas [at] gmail [dot] com)
getData
This subroutine is the handler that actually performs the action when getData is called on an LSID under this namespace
This routine has 2 parameters: lsid - the LSID format - output format <optional>
Example: getData(LS::ID->new('urn:lsid:authority:namespace:object'));
A LS::Service::Response is returned if getData is successful.
_getServiceWSDL
This subroutine obtains the wsdl for moby services given the name/auth combination. It uses the registry that is set in the enviroment. TODO - might have to change this behaviour, if we think of a good reason!
getMetadata
This subroutine is the handler that actually performs the action when getMetadata is called on an LSID under this namespace
This routine has 2 parameters: lsid - the LSID format - output format <optional>
Example: getMetadata(LS::ID->new('urn:lsid:authority:namespace:object'));
A LS::Service::Response is returned if getMetadata is successful.
lsidExists
This subroutine checks to see whether the thing that the LSID points to exists at all.
This routine has 3 parameters: namespace - the LSID namespace id - the LSID object revision - the LSID revision
Example: lsidExists('someNamespace','someObject','someRevision');
If the thing pointed at by the lsid exists, then 1 is returned. Otherwise undef is returned.
isLatest
This subroutine checks to see whether the LSID is the latest, based on the revision.
This routine has 3 parameters: namespace - the LSID namespace id - the LSID object revision - the LSID revision
Example: isLatest('someNamespace','someObject','someRevision');
If the lsid is the latest, then undef is returned. If the lsid doesnt exist, then an empty string is returned. And if the lsid isnt the latest, then the latest lsid is returned.