no.ubicollab.osgi
Class DiscoveryUtils

java.lang.Object
  extended by no.ubicollab.osgi.DiscoveryUtils

public class DiscoveryUtils
extends java.lang.Object


Constructor Summary
DiscoveryUtils()
           
 
Method Summary
static java.lang.String buildGetServiceQuery(java.lang.String searchString)
          Builds a database query based on the contents of the search string.
static java.lang.String buildRemoveServiceQuery(java.lang.String removeString)
          Builds a database query based on the content of the remove string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoveryUtils

public DiscoveryUtils()
Method Detail

buildGetServiceQuery

public static java.lang.String buildGetServiceQuery(java.lang.String searchString)
Builds a database query based on the contents of the search string.

Parameters:
searchString - tagId:<tagId> uuId:<uuId> name:<name> type:<type> protocol:<protocol> descriptionUrl:<descriptionUrl> serviceUrl:<serviceUrl> Any number of these flags may be present, but they must come in the right order. Example: "name:My Service type:no.ubicollab.service"
Returns:
A database query string matching the input search string.

buildRemoveServiceQuery

public static java.lang.String buildRemoveServiceQuery(java.lang.String removeString)
Builds a database query based on the content of the remove string.

Parameters:
removeString - tagId: uuId: name: type: protocol: descriptionUrl: serviceUrl: Any number of these flags may be present, but they must come in the right order. Example: "name:My Service type:no.ubicollab.service"
Returns:
A database query string matching the input remove string.