From c5708999783223b63de14f220409ec3a782b0a6f Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 17 May 2008 18:26:18 +0000 Subject: [PATCH] add getProjects git-svn-id: http://trooper/svn/projects/jSite/trunk@915 c3eda9e8-030b-0410-8277-bc7414b0a119 --- src/net/pterodactylus/jsite/core/Core.java | 7 +++++++ src/net/pterodactylus/jsite/core/CoreImpl.java | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) 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 // -- 2.7.4