1 package mircoders.module;
7 import javax.servlet.*;
8 import javax.servlet.http.*;
10 import freemarker.template.*;
18 import mircoders.storage.*;
22 * ModuleComment - methods and access for comments
27 public class ModuleComment extends AbstractModule
29 static Logfile theLog;
32 public ModuleComment(StorageObject theStorage)
34 if (theLog == null) theLog = Logfile.getInstance(Configuration.getProperty("Home") + Configuration.getProperty("Module.Comment.Logfile"));
35 if (theStorage == null) theLog.printWarning("StorageObject was null!");
36 this.theStorage = theStorage;
40 public SimpleList getCommentAsSimpleList() {
41 return ((DatabaseComment)theStorage).getPopupData();