change exception stuff a bit
[jSite2.git] / src / net / pterodactylus / jsite / core / Core.java
index 2815e38..ba0b452 100644 (file)
@@ -111,16 +111,22 @@ public interface Core {
        public void disconnectFromNode(Node node);
 
        /**
-        * Creates a new project with the given name. The returned {@link Project}
-        * will contain a newly generated key pair.
+        * Creates a new project. The returned {@link Project} will contain a newly
+        * generated key pair.
         * 
-        * @param projectName
-        *            The name of the project
-        * @return A newly created project, or <code>null</code> if key generation
-        *         failed
+        * @return A newly created project
         * @throws IOException
         *             if an I/O error occured communicating with the node
+        * @throws JSiteException
+        *             if there is a problem with the node
         */
-       public Project addProject(String projectName) throws IOException;
+       public Project createProject() throws IOException, JSiteException;
+
+       /**
+        * Returns a list of all projects.
+        * 
+        * @return A list of all projects
+        */
+       public List<Project> getProjects();
 
 }