resource-registry-publisher.../src/main/java/org/gcube/smartgears/connector/resourceregistry/ContextUtility.java

20 lines
580 B
Java
Raw Normal View History

2022-06-29 09:12:36 +02:00
package org.gcube.smartgears.connector.resourceregistry;
2022-06-16 13:54:13 +02:00
import java.util.UUID;
import org.gcube.informationsystem.resourceregistry.api.contexts.ContextCache;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException;
/**
* @author Luca Frosini (ISTI-CNR)
*/
public class ContextUtility {
2022-06-29 09:11:29 +02:00
public static UUID getContextUUID(String contextFullName) throws ResourceRegistryException {
2022-06-16 13:54:13 +02:00
ContextCache contextCache = ContextCache.getInstance();
UUID contextUUID = contextCache.getUUIDByFullName(contextFullName);
return contextUUID;
}
}