From: David ‘Bombe’ Roden Date: Mon, 3 Jan 2011 06:06:16 +0000 (+0100) Subject: Forward context and property manipulation to the cache in DefaultIdentity. X-Git-Tag: 0.4^2~8^2~24 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1d22fc422cbf5ed74df3081fe3a45b90795fb7c6;p=Sone.git Forward context and property manipulation to the cache in DefaultIdentity. --- diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultOwnIdentity.java b/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultOwnIdentity.java index 3af8b38..9a104e8 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultOwnIdentity.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultOwnIdentity.java @@ -75,6 +75,7 @@ public class DefaultOwnIdentity extends DefaultIdentity implements OwnIdentity { @Override public void addContext(String context) throws WebOfTrustException { webOfTrustConnector.addContext(this, context); + addContextPrivate(context); } /** @@ -83,6 +84,7 @@ public class DefaultOwnIdentity extends DefaultIdentity implements OwnIdentity { @Override public void removeContext(String context) throws WebOfTrustException { webOfTrustConnector.removeContext(this, context); + removeContextPrivate(context); } /** @@ -100,6 +102,7 @@ public class DefaultOwnIdentity extends DefaultIdentity implements OwnIdentity { webOfTrustConnector.addContext(this, context); } } + setContextsPrivate(contexts); } /** @@ -108,6 +111,7 @@ public class DefaultOwnIdentity extends DefaultIdentity implements OwnIdentity { @Override public void setProperty(String name, String value) throws WebOfTrustException { webOfTrustConnector.setProperty(this, name, value); + setPropertyPrivate(name, value); } /** @@ -116,6 +120,7 @@ public class DefaultOwnIdentity extends DefaultIdentity implements OwnIdentity { @Override public void removeProperty(String name) throws WebOfTrustException { webOfTrustConnector.removeProperty(this, name); + removePropertyPrivate(name); } /** @@ -135,6 +140,7 @@ public class DefaultOwnIdentity extends DefaultIdentity implements OwnIdentity { webOfTrustConnector.setProperty(this, newProperty.getKey(), newProperty.getValue()); } } + setPropertiesPrivate(properties); } /**