Improving ServerContextCache

This commit is contained in:
Luca Frosini 2023-05-10 17:43:36 +02:00
parent a424844dce
commit a21b1d9173
1 changed files with 2 additions and 0 deletions

View File

@ -151,6 +151,7 @@ public class ServerContextCache extends ContextCache {
this.uuidToContextMetaPrivacy.put(uuid, contextMetaPrivacy);
Context contextNoMeta = new ContextImpl(c.getName());
contextNoMeta.setMetadata(null);
contextWithMeta.setID(uuid);
this.contextsNoMeta.add(contextNoMeta);
this.uuidToContextNoMeta.put(uuid, contextNoMeta);
@ -186,6 +187,7 @@ public class ServerContextCache extends ContextCache {
Context parentNoMeta = this.uuidToContextNoMeta.get(parentUUID);
IsParentOf isParentOfNoMeta = new IsParentOfImpl(parentNoMeta, contextNoMeta);
isParentOfNoMeta.setMetadata(null);
isParentOfNoMeta.setID(parentUUID);
parentNoMeta.addChild(isParentOfNoMeta);
contextNoMeta.setParent(isParentOfNoMeta);