Store Web of Trust connector in Core.
[Sone.git] / src / main / java / net / pterodactylus / sone / core / Core.java
index 173f1d4..6ceede0 100644 (file)
@@ -40,6 +40,7 @@ import net.pterodactylus.sone.data.Post;
 import net.pterodactylus.sone.data.Profile;
 import net.pterodactylus.sone.data.Reply;
 import net.pterodactylus.sone.data.Sone;
+import net.pterodactylus.sone.freenet.wot.WebOfTrustConnector;
 import net.pterodactylus.util.config.Configuration;
 import net.pterodactylus.util.config.ConfigurationException;
 import net.pterodactylus.util.filter.Filter;
@@ -98,6 +99,9 @@ public class Core extends AbstractService {
        /** Interface to freenet. */
        private FreenetInterface freenetInterface;
 
+       /** The WoT connector. */
+       private WebOfTrustConnector webOfTrustConnector;
+
        /** The Sone downloader. */
        private SoneDownloader soneDownloader;
 
@@ -171,6 +175,27 @@ public class Core extends AbstractService {
        }
 
        /**
+        * Returns the Web of Trust connector.
+        *
+        * @return The Web of Trust connector
+        */
+       public WebOfTrustConnector getWebOfTrustConnector() {
+               return webOfTrustConnector;
+       }
+
+       /**
+        * Sets the Web of Trust connector.
+        *
+        * @param webOfTrustConnector
+        *            The Web of Trust connector
+        * @return This core (for method chaining)
+        */
+       public Core setWebOfTrustConnector(WebOfTrustConnector webOfTrustConnector) {
+               this.webOfTrustConnector = webOfTrustConnector;
+               return this;
+       }
+
+       /**
         * Returns the local Sones.
         *
         * @return The local Sones