🔀 Merge branch 'release/v82'
[Sone.git] / src / main / java / net / pterodactylus / sone / freenet / wot / OwnIdentity.java
index d9ec160..25b77b9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - OwnIdentity.java - Copyright Â© 2010 David Roden
+ * Sone - OwnIdentity.java - Copyright Â© 2010–2020 David Roden
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
 
 package net.pterodactylus.sone.freenet.wot;
 
+
 /**
- * An own identity is an identity that the owner of the node has full control
- * over.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David â€˜Bombe’ Roden</a>
+ * Defines a local identity, an own identity.
  */
-public class OwnIdentity extends Identity {
-
-       /** The insert URI of the identity. */
-       private final String insertUri;
-
-       /**
-        * Creates a new own identity.
-        *
-        * @param id
-        *            The ID of the identity
-        * @param nickname
-        *            The nickname of the identity
-        * @param requestUri
-        *            The request URI of the identity
-        * @param insertUri
-        *            The insert URI of the identity
-        */
-       public OwnIdentity(String id, String nickname, String requestUri, String insertUri) {
-               super(id, nickname, requestUri);
-               this.insertUri = insertUri;
-       }
-
-       //
-       // ACCESSORS
-       //
+public interface OwnIdentity extends Identity {
 
        /**
         * Returns the insert URI of the identity.
         *
         * @return The insert URI of the identity
         */
-       public String getInsertUri() {
-               return insertUri;
-       }
+       public String getInsertUri();
+
+       public OwnIdentity addContext(String context);
+       public OwnIdentity removeContext(String context);
+       public OwnIdentity setProperty(String name, String value);
+       public OwnIdentity removeProperty(String name);
 
 }