add more status notifications to core listener
[jSite2.git] / src / net / pterodactylus / jsite / core / CoreListener.java
index 7ded200..812ce89 100644 (file)
@@ -28,10 +28,18 @@ package net.pterodactylus.jsite.core;
 public interface CoreListener {
 
        //
-       // configuration stuff
+       // project configuration
        //
 
        /**
+        * Notifies a listener that loading the projects finished successfully.
+        *
+        * @param directory
+        *            The directory the nodes were loaded from
+        */
+       public void loadingProjectsDone(String directory);
+
+       /**
         * Notifies all listeners that loading the projects has failed.
         *
         * @param directory
@@ -61,6 +69,46 @@ public interface CoreListener {
        public void savingProjectsFailed(String directory, Throwable throwable);
 
        //
+       // node configuration
+       //
+
+       /**
+        * Notifies a listener that the nodes were successfully loaded.
+        *
+        * @param directory
+        *            The directory the nodes were loaded from
+        */
+       public void loadingNodesDone(String directory);
+
+       /**
+        * Notifies a listener that loading the nodes has failed.
+        *
+        * @param directory
+        *            The directory the nodes were loaded from
+        * @param throwable
+        *            The exception that occured while loading the nodes
+        */
+       public void loadingNodesFailed(String directory, Throwable throwable);
+
+       /**
+        * Notifies a listener that the nodes were successfully saved.
+        *
+        * @param directory
+        *            The directory the nodes were saved to
+        */
+       public void savingNodesDone(String directory);
+
+       /**
+        * Notifies a listener that saving the nodes has failed.
+        *
+        * @param directory
+        *            The directory the nodes were saved to
+        * @param throwable
+        *            The exception that occured while saving the nodes
+        */
+       public void savingNodesFailed(String directory, Throwable throwable);
+
+       //
        // basic core functionality
        //