From: David ‘Bombe’ Roden Date: Sat, 17 May 2008 18:26:18 +0000 (+0000) Subject: add getProjects X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c5708999783223b63de14f220409ec3a782b0a6f;p=jSite2.git add getProjects git-svn-id: http://trooper/svn/projects/jSite/trunk@915 c3eda9e8-030b-0410-8277-bc7414b0a119 --- diff --git a/src/net/pterodactylus/jsite/core/Core.java b/src/net/pterodactylus/jsite/core/Core.java index 3e8357d..0599a76 100644 --- a/src/net/pterodactylus/jsite/core/Core.java +++ b/src/net/pterodactylus/jsite/core/Core.java @@ -122,4 +122,11 @@ public interface Core { */ public Project createProject() throws IOException, NoNodeException; + /** + * Returns a list of all projects. + * + * @return A list of all projects + */ + public List getProjects(); + } diff --git a/src/net/pterodactylus/jsite/core/CoreImpl.java b/src/net/pterodactylus/jsite/core/CoreImpl.java index 93150f5..a59dade 100644 --- a/src/net/pterodactylus/jsite/core/CoreImpl.java +++ b/src/net/pterodactylus/jsite/core/CoreImpl.java @@ -30,7 +30,7 @@ import java.util.List; * @author David ‘Bombe’ Roden <bombe@freenetproject.org> * @version $Id$ */ -public class CoreImpl implements Core, NodeListener, RequestListener { +class CoreImpl implements Core, NodeListener, RequestListener { /** The core listeners. */ private final List coreListeners = new ArrayList(); @@ -367,6 +367,13 @@ public class CoreImpl implements Core, NodeListener, RequestListener { return nodeManager.hasNode(node); } + /** + * {@inheritDoc} + */ + public List getProjects() { + return projectManager.getProjects(); + } + // // ACTIONS //