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=ecb8f251c82ff99527616bd7021f6dbe3f7b3256;hpb=40058abe80bf8a55b5c5eb6594b87d98bef8d0ce;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 ecb8f25..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 (getContexts().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 (getContexts().remove(context)) { - /* TODO - remove */ - } + public void removeContext(String context) throws PluginException { + webOfTrustConnector.removeContext(this, context); } /**