Fixed code due to APIs changes in service
This commit is contained in:
parent
667aad14dc
commit
ba7ac1e105
|
@ -9,6 +9,7 @@ import org.gcube.common.scope.impl.ScopeBean;
|
|||
import org.gcube.context.ContextElaborator;
|
||||
import org.gcube.informationsystem.context.impl.entities.ContextImpl;
|
||||
import org.gcube.informationsystem.context.reference.entities.Context;
|
||||
import org.gcube.informationsystem.resourceregistry.api.contexts.ContextCache;
|
||||
import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException;
|
||||
import org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException;
|
||||
import org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException;
|
||||
|
@ -45,7 +46,7 @@ public class ContextCreator extends ContextElaborator {
|
|||
try {
|
||||
UUID uuid = contexts.get(scopeBean.toString());
|
||||
if(uuid==null) {
|
||||
uuid = ContextUtility.getInstance().getContextUUIDFromFullName(scopeBean.toString());
|
||||
uuid = ContextCache.getInstance().getUUIDByFullName(scopeBean.toString());
|
||||
if(uuid!=null) {
|
||||
contexts.put(scopeBean.toString(), uuid);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue