Porting code to redesigned E/R format

This commit is contained in:
Luca Frosini 2023-04-19 11:38:01 +02:00
parent f41f244747
commit 00a2e2efe7
2 changed files with 4 additions and 4 deletions

View File

@ -88,7 +88,7 @@ public class ContextCreator extends ContextElaborator {
context.setParent(parentUUID);
}
context = create(context);
contexts.put(scopeBean.toString(), context.getHeader().getUUID());
contexts.put(scopeBean.toString(), context.getUUID());
}else {
logger.info("Context {} is already present with UUID {}", scopeBean, uuid.toString());
if(oldISResourceUUID==null || uuid.compareTo(oldISResourceUUID)!=0) {
@ -117,7 +117,7 @@ public class ContextCreator extends ContextElaborator {
context.setParent(parentUUID);
}
context = create(context);
contexts.put(scopeBean.toString(), context.getHeader().getUUID());
contexts.put(scopeBean.toString(), context.getUUID());
}else {
logger.info("Context {} is already present with UUID {}", scopeBean, uuid.toString());
}

View File

@ -15,7 +15,7 @@ import org.gcube.common.authorization.utils.secret.SecretUtility;
import org.gcube.common.keycloak.KeycloakClientFactory;
import org.gcube.common.keycloak.model.TokenResponse;
import org.gcube.common.scope.api.ScopeProvider;
import org.gcube.informationsystem.model.reference.properties.Header;
import org.gcube.informationsystem.model.reference.properties.Metadata;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.slf4j.Logger;
@ -99,7 +99,7 @@ public class ContextTest {
}
public static String getUser() {
String user = Header.UNKNOWN_USER;
String user = Metadata.UNKNOWN_USER;
try {
user = SecretManagerProvider.instance.get().getUser().getUsername();
} catch(Exception e) {