Add method to set the trust received by an OwnIdentity.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 3 Jan 2011 06:22:35 +0000 (07:22 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 3 Jan 2011 12:39:06 +0000 (13:39 +0100)
src/main/java/net/pterodactylus/sone/freenet/wot/DefaultIdentity.java

index 00caf48..dcafb18 100644 (file)
@@ -248,6 +248,18 @@ public class DefaultIdentity implements Identity {
                }
        }
 
+       /**
+        * Sets the trust received for this identity by the given own identity.
+        *
+        * @param ownIdentity
+        *            The own identity that gives the trust
+        * @param trust
+        *            The trust received for this identity
+        */
+       void setTrustPrivate(OwnIdentity ownIdentity, Trust trust) {
+               trustCache.put(ownIdentity, trust);
+       }
+
        //
        // OBJECT METHODS
        //