org.embl.ebi.escience.baclava.lsid
Class AssigningServiceClient

java.lang.Object
  extended by org.embl.ebi.escience.baclava.lsid.AssigningServiceClient
All Implemented Interfaces:
LSIDProvider

public class AssigningServiceClient
extends java.lang.Object
implements LSIDProvider

An implementation of the LSIDProvider interface which connects through to an instance of the LSID assigning service to acquire LSIDs

Author:
Tom Oinn

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.embl.ebi.escience.baclava.LSIDProvider
LSIDProvider.NamespaceEnumeration
 
Field Summary
 
Fields inherited from interface org.embl.ebi.escience.baclava.LSIDProvider
DATATHINGCOLLECTION, DATATHINGLEAF, WFDEFINITION, WFINSTANCE
 
Constructor Summary
AssigningServiceClient()
          Default constructor so an instance can be created for use by the enactor framework.
 
Method Summary
 java.lang.String getID(LSIDProvider.NamespaceEnumeration namespace)
          Return a unique LSID based on the pattern acquired from the assigning service and combined with a per-namespace int counter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssigningServiceClient

public AssigningServiceClient()
Default constructor so an instance can be created for use by the enactor framework. Reads the system properties defined in the mygrid.properties file to configure the target authority name and the assigning service endpoint.

Method Detail

getID

public java.lang.String getID(LSIDProvider.NamespaceEnumeration namespace)
Return a unique LSID based on the pattern acquired from the assigning service and combined with a per-namespace int counter.

Specified by:
getID in interface LSIDProvider