[MOBY-guts] biomoby commit
Martin Senger
senger at pub.open-bio.org
Tue Jul 19 12:39:59 UTC 2005
senger
Tue Jul 19 08:39:59 EDT 2005
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared
In directory pub.open-bio.org:/tmp/cvs-serv19358/src/main/org/biomoby/shared
Modified Files:
Central.java
Log Message:
moby-live/Java/src/main/org/biomoby/shared Central.java,1.9,1.10
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/Central.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/Central.java 2005/04/07 16:37:02 1.9
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/Central.java 2005/07/19 12:39:59 1.10
@@ -28,20 +28,6 @@
* <a href="http://biomoby.org/" target="_top">
* http://biomoby.org</a>.
*<p>
- *
- * <H5>Last changes (in backwards order)</H5>
- * <UL>
- * <li> New methods retrieving location of a Moby registry have been added:
- * {@link #getRegistryEndpoint},
- * {@link #getRegistryNamespace},
- * <li> Added new constants defining relationship types as integers.
- * <LI> New methods retrieving various types of relationships have been added:
- * {@link #getDataTypeRelationships},
- * {@link #getServiceTypeRelationships}
- * <LI> Added constants defining recognizable relationship types
- * ({@link #ISA}, {@link #HASA}, {@link #HAS})
- * </UL>
- * <p>
* @author <A HREF="mailto:senger at ebi.ac.uk">Martin Senger</A>
* @version $Id$
*/
@@ -81,8 +67,13 @@
static final int iHAS = 3;
/**************************************************************************
- * Get a (redundant) list of all registered service names.
- *<p>
+ * Get a (redundant) list of all registered service names. <p>
+ *
+ * @deprecated Replaced by {@link
+ * #getServiceNamesByAuthority}. The reason is that this method
+ * returns a random result if there are more services with the
+ * same name but belonging to different authorities. <p>
+ *
* @return a hash table where keys are names of services while
* values are their authorities
* @throws MobyException if communication with the Moby Registry fails
@@ -91,6 +82,20 @@
throws MobyException;
/**************************************************************************
+ * Get a list of all authorities - and for each of them a list of
+ * their registered service names. <p>
+ *
+ * This method is a better replacement for the deprecated method
+ * {@link #getServiceNames}. <p>
+ *
+ * @return a hash table where keys are authority names and values
+ * are arrays of service names provided by each authority
+ * @throws MobyException if communication with the Moby Registry fails
+ *************************************************************************/
+ Map getServiceNamesByAuthority()
+ throws MobyException;
+
+ /**************************************************************************
* Get the list of all providers (each provider is represented by an
* authority's URI.
*<p>
More information about the MOBY-guts
mailing list