*/
public Project createProject() throws IOException, NoNodeException;
+ /**
+ * Returns a list of all projects.
+ *
+ * @return A list of all projects
+ */
+ public List<Project> getProjects();
+
}
* @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<CoreListener> coreListeners = new ArrayList<CoreListener>();
return nodeManager.hasNode(node);
}
+ /**
+ * {@inheritDoc}
+ */
+ public List<Project> getProjects() {
+ return projectManager.getProjects();
+ }
+
//
// ACTIONS
//