org.lexevs.registry.service
Interface Registry

All Known Implementing Classes:
DatabaseRegistry, DelegatingDatabaseToXmlRegistry, XmlRegistry

public interface Registry

The Interface Registry.

Author:
Kevin Peterson

Nested Class Summary
static class Registry.KnownTags
          The Enum KnownTags.
static class Registry.ResourceType
          The Enum ResourceType.
 
Method Summary
 void addNewItem(RegistryEntry entry)
          Adds the new item.
 boolean containsCodingSchemeEntry(AbsoluteCodingSchemeVersionReference codingScheme)
          Contains coding scheme entry.
 boolean containsNonCodingSchemeEntry(java.lang.String uri)
          Contains non coding scheme entry.
 java.util.List<RegistryEntry> getAllRegistryEntries()
          Gets the all registry entries.
 java.util.List<RegistryEntry> getAllRegistryEntriesOfType(Registry.ResourceType type)
          Gets the all registry entries of type.
 java.util.List<RegistryEntry> getAllRegistryEntriesOfTypeAndURI(Registry.ResourceType type, java.lang.String uri)
          Gets the all registry entries of type and URI.
 java.util.List<RegistryEntry> getAllRegistryEntriesOfTypeURIAndVersion(Registry.ResourceType type, java.lang.String uri, java.lang.String version)
          Gets the all registry entries of type, URI and version.
 RegistryEntry getCodingSchemeEntry(AbsoluteCodingSchemeVersionReference codingScheme)
          Gets the coding scheme entry.
 java.util.List<RegistryEntry> getEntriesForUri(java.lang.String uri)
          Gets the entries for uri.
 java.util.Date getLastUpdateTime()
          Gets the last update time.
 java.lang.String getNextDBIdentifier()
          Gets the next db identifier.
 java.lang.String getNextHistoryIdentifier()
          Gets the next history identifier.
 RegistryEntry getNonCodingSchemeEntry(java.lang.String uri)
          Gets the non coding scheme entry.
 void removeEntry(RegistryEntry entry)
          Removes the entry.
 void updateEntry(RegistryEntry entry)
          Update entry.
 

Method Detail

getEntriesForUri

java.util.List<RegistryEntry> getEntriesForUri(java.lang.String uri)
                                               throws LBParameterException
Gets the entries for uri.

Parameters:
uri - the uri
Returns:
the entries for uri
Throws:
LBParameterException - the LB parameter exception

getCodingSchemeEntry

RegistryEntry getCodingSchemeEntry(AbsoluteCodingSchemeVersionReference codingScheme)
                                   throws LBParameterException
Gets the coding scheme entry.

Parameters:
codingScheme - the coding scheme
Returns:
the coding scheme entry
Throws:
LBParameterException - the LB parameter exception

getNonCodingSchemeEntry

RegistryEntry getNonCodingSchemeEntry(java.lang.String uri)
                                      throws LBParameterException
Gets the non coding scheme entry.

Parameters:
uri - the uri
Returns:
the non coding scheme entry
Throws:
LBParameterException - the LB parameter exception

containsCodingSchemeEntry

boolean containsCodingSchemeEntry(AbsoluteCodingSchemeVersionReference codingScheme)
Contains coding scheme entry.

Parameters:
codingScheme - the coding scheme
Returns:
true, if successful

containsNonCodingSchemeEntry

boolean containsNonCodingSchemeEntry(java.lang.String uri)
Contains non coding scheme entry.

Parameters:
uri - the uri
Returns:
true, if successful

addNewItem

void addNewItem(RegistryEntry entry)
                throws java.lang.Exception
Adds the new item.

Parameters:
entry - the entry
Throws:
java.lang.Exception - the exception

getAllRegistryEntries

java.util.List<RegistryEntry> getAllRegistryEntries()
Gets the all registry entries.

Returns:
the all registry entries

getAllRegistryEntriesOfType

java.util.List<RegistryEntry> getAllRegistryEntriesOfType(Registry.ResourceType type)
Gets the all registry entries of type.

Parameters:
type - the type
Returns:
the all registry entries of type

getAllRegistryEntriesOfTypeAndURI

java.util.List<RegistryEntry> getAllRegistryEntriesOfTypeAndURI(Registry.ResourceType type,
                                                                java.lang.String uri)
Gets the all registry entries of type and URI.

Parameters:
type - the resource type
uri - the resource uri
Returns:
the all registry entries of type and URI

getAllRegistryEntriesOfTypeURIAndVersion

java.util.List<RegistryEntry> getAllRegistryEntriesOfTypeURIAndVersion(Registry.ResourceType type,
                                                                       java.lang.String uri,
                                                                       java.lang.String version)
Gets the all registry entries of type, URI and version.

Parameters:
type - the resource type
uri - the resource uri
version - the verion
Returns:
the all registry entries of type and URI

getLastUpdateTime

java.util.Date getLastUpdateTime()
Gets the last update time.

Returns:
the last update time

removeEntry

void removeEntry(RegistryEntry entry)
                 throws LBParameterException
Removes the entry.

Parameters:
entry - the entry
Throws:
LBParameterException - the LB parameter exception

updateEntry

void updateEntry(RegistryEntry entry)
                 throws LBParameterException
Update entry.

Parameters:
entry - the entry
Throws:
LBParameterException - the LB parameter exception

getNextDBIdentifier

java.lang.String getNextDBIdentifier()
                                     throws LBInvocationException
Gets the next db identifier.

Returns:
the next db identifier
Throws:
LBInvocationException - the LB invocation exception

getNextHistoryIdentifier

java.lang.String getNextHistoryIdentifier()
                                          throws LBInvocationException
Gets the next history identifier.

Returns:
the next history identifier
Throws:
LBInvocationException - the LB invocation exception

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.