org.fao.geonet.services
Class Utils

java.lang.Object
  extended by org.fao.geonet.services.Utils

public class Utils
extends Object


Constructor Summary
Utils()
           
 
Method Summary
static String getIdentifierFromParameters(org.jdom.Element params, ServiceContext context)
          Search for a UUID or an internal identifier parameter and return an internal identifier using default UUID and identifier parameter names (ie.
static String getIdentifierFromParameters(org.jdom.Element params, ServiceContext context, String uuidParamName, String idParamName)
          Search for a UUID or an internal identifier parameter and return an internal identifier using default UUID and identifier parameter names (ie.
static String lookupMetadataIdFromFileId(GeonetContext gc, String fileId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

getIdentifierFromParameters

public static String getIdentifierFromParameters(org.jdom.Element params,
                                                 ServiceContext context,
                                                 String uuidParamName,
                                                 String idParamName)
                                          throws Exception
Search for a UUID or an internal identifier parameter and return an internal identifier using default UUID and identifier parameter names (ie. uuid and id).

Parameters:
params - The params to search ids in
context - The service context
uuidParamName - UUID parameter name
uuidParamName - Id parameter name
Returns:
Throws:
Exception

lookupMetadataIdFromFileId

public static String lookupMetadataIdFromFileId(GeonetContext gc,
                                                String fileId)
                                         throws IOException,
                                                InterruptedException
Throws:
IOException
InterruptedException

getIdentifierFromParameters

public static String getIdentifierFromParameters(org.jdom.Element params,
                                                 ServiceContext context)
                                          throws Exception
Search for a UUID or an internal identifier parameter and return an internal identifier using default UUID and identifier parameter names (ie. uuid and id).

Parameters:
params - The params to search ids in
context - The service context
Returns:
Throws:
Exception


Copyright © 2003-2013. All Rights Reserved.