org.fao.geonet.services
Class Utils
java.lang.Object
org.fao.geonet.services.Utils
public class Utils
- extends Object
|
Constructor Summary |
Utils()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
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 incontext - The service contextuuidParamName - UUID parameter nameuuidParamName - 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 incontext - The service context
- Returns:
-
- Throws:
Exception
Copyright © 2003-2013. All Rights Reserved.