Fixed cache

This commit is contained in:
Luca Frosini 2023-05-15 17:33:26 +02:00
parent b32f282044
commit 20914f3f06
1 changed files with 6 additions and 6 deletions

View File

@ -169,7 +169,7 @@ public class ServerContextCache extends ContextCache {
Context contextNoMeta = new ContextImpl(c.getName());
contextNoMeta.setMetadata(null);
contextWithMeta.setID(uuid);
contextNoMeta.setID(uuid);
this.contextsNoMeta.add(contextNoMeta);
this.uuidToContextNoMeta.put(uuid, contextNoMeta);
@ -188,11 +188,11 @@ public class ServerContextCache extends ContextCache {
UUID parentUUID = ipo.getSource().getID();
Context parentWithMeta = this.uuidToContext.get(parentUUID);
IsParentOf isParentOf = new IsParentOfImpl(parentWithMeta, contextMeta);
isParentOf.setID(parentUUID);
isParentOf.setMetadata(ipo.getMetadata());
parentWithMeta.addChild(isParentOf);
contextMeta.setParent(isParentOf);
IsParentOf isParentOfWithMeta = new IsParentOfImpl(parentWithMeta, contextMeta);
isParentOfWithMeta.setID(parentUUID);
isParentOfWithMeta.setMetadata(ipo.getMetadata());
parentWithMeta.addChild(isParentOfWithMeta);
contextMeta.setParent(isParentOfWithMeta);
Context parentWithMetaPrivacy = this.uuidToContextMetaPrivacy.get(parentUUID);
IsParentOf isParentOfMetaPrivacy = new IsParentOfImpl(parentWithMetaPrivacy, contextMetaPrivacy);