mass update mir codeswitch
[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 mir.servlet.*;
13 import mir.module.*;
14 import mir.entity.*;
15 import mir.misc.*;
16 import mir.storage.*;
17
18 import mircoders.storage.*;
19
20
21 /*
22  *  ModuleComment - methods and access for comments
23  *
24  * @author RK
25  */
26
27 public class ModuleComment extends AbstractModule
28 {
29         static Logfile theLog;
30
31         // Contructor
32         public ModuleComment(StorageObject theStorage)
33         {
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;
37         }
38
39         // Methoden
40         public SimpleList getCommentAsSimpleList() {
41                 return ((DatabaseComment)theStorage).getPopupData();
42         }
43 }