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

20 lines
580 B
Java

package org.gcube.smartgears.connector.resourceregistry;
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 {
public static UUID getContextUUID(String contextFullName) throws ResourceRegistryException {
ContextCache contextCache = ContextCache.getInstance();
UUID contextUUID = contextCache.getUUIDByFullName(contextFullName);
return contextUUID;
}
}