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