Initial revision
[mir.git] / source / mircoders / module / ModuleComment.java
1 package mircoders.module;
2
3 import java.io.*;
4 import java.lang.*;
5 import java.util.*;
6 import java.sql.*;
7 import javax.servlet.*;
8 import javax.servlet.http.*;
9
10 import freemarker.template.*;
11
12 import webdb.servlet.*;
13 import webdb.module.*;
14 import webdb.entity.*;
15 import webdb.misc.*;
16 import webdb.storage.*;
17
18 import mir.entity.*;
19 import mir.storage.*;
20
21
22 /*
23  *  ModuleComment - methods and access for comments
24  *
25  * @author RK
26  */
27
28 public class ModuleComment extends AbstractModule
29 {
30         static Logfile theLog;
31
32         // Contructor
33         public ModuleComment(StorageObject theStorage)
34         {
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;
38         }
39
40         // Methoden
41         public SimpleList getCommentAsSimpleList() {
42                 return ((DatabaseComment)theStorage).getPopupData();
43         }
44 }