Initial revision
[mir.git] / source / mircoders / module / ModuleComment.java
diff --git a/source/mircoders/module/ModuleComment.java b/source/mircoders/module/ModuleComment.java
new file mode 100755 (executable)
index 0000000..e8173f7
--- /dev/null
@@ -0,0 +1,44 @@
+package mircoders.module;
+
+import java.io.*;
+import java.lang.*;
+import java.util.*;
+import java.sql.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+import freemarker.template.*;
+
+import webdb.servlet.*;
+import webdb.module.*;
+import webdb.entity.*;
+import webdb.misc.*;
+import webdb.storage.*;
+
+import mir.entity.*;
+import mir.storage.*;
+
+
+/*
+ *  ModuleComment - methods and access for comments
+ *
+ * @author RK
+ */
+
+public class ModuleComment extends AbstractModule
+{
+       static Logfile theLog;
+
+       // Contructor
+       public ModuleComment(StorageObject theStorage)
+       {
+               if (theLog == null) theLog = Logfile.getInstance(Configuration.getProperty("Home") + Configuration.getProperty("Module.Comment.Logfile"));
+               if (theStorage == null) theLog.printWarning("StorageObject was null!");
+               this.theStorage = theStorage;
+       }
+
+       // Methoden
+       public SimpleList getCommentAsSimpleList() {
+               return ((DatabaseComment)theStorage).getPopupData();
+       }
+}