From 1d22fc422cbf5ed74df3081fe3a45b90795fb7c6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 3 Jan 2011 07:06:16 +0100 Subject: [PATCH] Forward context and property manipulation to the cache in DefaultIdentity. --- .../java/net/pterodactylus/sone/freenet/wot/DefaultOwnIdentity.java | 6 ++++++ 1 file changed, 6 insertions(+) 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); } /** -- 2.7.4