X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FOwnIdentity.java;h=23845205c33355952f21adecb41ef696f8b2abac;hb=5e474d0d5ee39c2fd3dfd4376308ad7f8e55dd5d;hp=74b5f6aa9d99817b9e394d0a9fed2be71b4ef9bf;hpb=5e6c39b23a0aa59d39cf7432c8763a37c839de91;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/OwnIdentity.java b/src/main/java/net/pterodactylus/sone/freenet/wot/OwnIdentity.java index 74b5f6a..2384520 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/OwnIdentity.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/OwnIdentity.java @@ -65,11 +65,12 @@ public class OwnIdentity extends Identity { * * @param context * The context to add + * @throws PluginException + * if an error occured communicating with the Web of Trust + * plugin */ - public void addContext(String context) { - if (contexts.add(context)) { - /* TODO - add. */ - } + public void addContext(String context) throws PluginException { + webOfTrustConnector.addContext(this, context); } /** @@ -77,11 +78,12 @@ public class OwnIdentity extends Identity { * * @param context * The context to remove + * @throws PluginException + * if an error occured communicating with the Web of Trust + * plugin */ - public void removeContext(String context) { - if (contexts.remove(context)) { - /* TODO - remove */ - } + public void removeContext(String context) throws PluginException { + webOfTrustConnector.removeContext(this, context); } /**