Hi Chathura:

Chathura C. Ekanayake wrote:
I added this method as Paul proposed to have search based on media types (e.g. find all WSDLs) in yesterday's meeting. I like the method you have proposed as a way to support more advanced queries on resources. But I think we should have media type based search as an API method as we consider media type support as a main feature in the Registry.

I agree that media type support is a core feature, but I disagree that we should add this query to the Registry interface. Otherwise, what about:

  getResourcesWithTimestamp(time);
  getResourcesByAuthor(author);
  getResourcesWithDescription(description);
  getResourcesDependedOnBy(path);
  getResourcesWithProperty(property);

These are all also core features, but do we really want all these APIs in org.wso2.registry.Registry?

There are two reasons for my bringing this up. One is wanting to keep the Registry interface as clean as possible, while allowing for flexible queries. The other is to eventually be able to allow URL based queries, which will need a back-end something like this. For example (to search for any resource under wsdls/ with a property named 'color' with the value 'red'):

  http://my.com/registry/wsdls[$color$='red']

If we have a simple "dynamic query" API now, we can set it up to easily do the three or four allowed queries we want right now, and then later be able to expand it to account for deeper queries and other languages like XQuery without major API changes.

Thanks,
--Glen

_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev

Reply via email to