Fixed cache
This commit is contained in:
parent
b32f282044
commit
20914f3f06
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue