1 package mircoders.module;
7 import javax.servlet.*;
8 import javax.servlet.http.*;
10 import freemarker.template.*;
12 import webdb.servlet.*;
13 import webdb.module.*;
14 import webdb.entity.*;
16 import webdb.storage.*;
23 * ModuleComment - methods and access for comments
28 public class ModuleComment extends AbstractModule
30 static Logfile theLog;
33 public ModuleComment(StorageObject theStorage)
35 if (theLog == null) theLog = Logfile.getInstance(Configuration.getProperty("Home") + Configuration.getProperty("Module.Comment.Logfile"));
36 if (theStorage == null) theLog.printWarning("StorageObject was null!");
37 this.theStorage = theStorage;
41 public SimpleList getCommentAsSimpleList() {
42 return ((DatabaseComment)theStorage).getPopupData();