Class ContextUtility
- java.lang.Object
-
- org.gcube.informationsystem.resourceregistry.api.contexts.ContextUtility
-
public class ContextUtility extends Object
The Class ContextUtility.- Author:
- Luca Frosini (ISTI - CNR)
-
-
Constructor Summary
Constructors Constructor Description ContextUtility()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Set<String>getContextFullNameSet(ContextCache contextCache, Collection<UUID> uuids)Gets the context full name set.static Map<UUID,String>getContextMap(String objectnode)Gets the context map.static Set<UUID>getContextUUIDSet(Collection<String> uuidStrings)Gets the context UUID set.
-
-
-
Method Detail
-
getContextMap
public static Map<UUID,String> getContextMap(String objectnode) throws org.gcube.com.fasterxml.jackson.core.JsonParseException, org.gcube.com.fasterxml.jackson.databind.JsonMappingException, IOException
Gets the context map.- Parameters:
objectnode- the objectnode- Returns:
- the context map
- Throws:
org.gcube.com.fasterxml.jackson.core.JsonParseException- the json parse exceptionorg.gcube.com.fasterxml.jackson.databind.JsonMappingException- the json mapping exceptionIOException- Signals that an I/O exception has occurred.
-
getContextUUIDSet
public static Set<UUID> getContextUUIDSet(Collection<String> uuidStrings) throws Exception
Gets the context UUID set.- Parameters:
uuidStrings- the uuid strings- Returns:
- the context UUID set
- Throws:
Exception- the exception
-
getContextFullNameSet
public static Set<String> getContextFullNameSet(ContextCache contextCache, Collection<UUID> uuids) throws Exception
Gets the context full name set.- Parameters:
contextCache- the context cacheuuids- the uuids- Returns:
- the context full name set
- Throws:
Exception- the exception
-
-