Change hierarchy of OwnIdentity and copy identifier, nickname, and request URI fields...
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Wed, 10 Jun 2009 22:34:26 +0000 (00:34 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Wed, 10 Jun 2009 22:34:26 +0000 (00:34 +0200)
src/net/pterodactylus/fcp/plugin/WebOfTrustPlugin.java

index ba9ad3a..233e72e 100644 (file)
@@ -269,7 +269,16 @@ public class WebOfTrustPlugin {
         *
         * @author David ‘Bombe’ Roden &lt;bombe@freenetproject.org&gt;
         */
-       public static class OwnIdentity extends Identity {
+       public static class OwnIdentity {
+
+               /** The identity’s identifier. */
+               private final String identifier;
+
+               /** The identity’s nickname. */
+               private final String nickname;
+
+               /** The identity’s request URI. */
+               private final String requestUri;
 
                /** The identity’s insert URI. */
                private final String insertUri;
@@ -287,11 +296,40 @@ public class WebOfTrustPlugin {
                 *            The insert URI of the identity
                 */
                public OwnIdentity(String identifier, String nickname, String requestUri, String insertUri) {
-                       super(identifier, nickname, requestUri);
+                       this.identifier = identifier;
+                       this.nickname = nickname;
+                       this.requestUri = requestUri;
                        this.insertUri = insertUri;
                }
 
                /**
+                * Returns the identifier of this identity.
+                *
+                * @return This identity’s identifier
+                */
+               public String getIdentifier() {
+                       return identifier;
+               }
+
+               /**
+                * Returns the nickname of this identity.
+                *
+                * @return This identity’s nickname
+                */
+               public String getNickname() {
+                       return nickname;
+               }
+
+               /**
+                * Returns the request URI of this identity.
+                *
+                * @return This identity’s request URI
+                */
+               public String getRequestUri() {
+                       return requestUri;
+               }
+
+               /**
                 * Returns the insert URI of this identity.
                 *
                 * @return This identity’s insert URI