first cut of merge of STABLE-pre1_0 into HEAD. I won't even guarantee that it
[mir.git] / source / mircoders / module / ModuleFeature.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  *  SchwerpunktObjekt -
21  *
22  *
23  * @author RK
24  */
25
26 public class ModuleFeature extends AbstractModule
27 {
28                 static Logfile theLog;
29
30                 public ModuleFeature(StorageObject theStorage) {
31
32                         this.theStorage = theStorage;
33
34         if (theLog == null)
35         theLog = Logfile.getInstance(MirConfig.getProp("Home") + MirConfig.getProp("Module.Feature.Logfile"));
36
37                 }
38
39                 public SimpleList getSchwerpunktAsSimpleList()
40       throws ModuleException {
41       try {
42                           return ((DatabaseFeature)theStorage).getPopupData();
43       } catch (StorageObjectException e) {
44         throw new ModuleException(e.toString());
45       }
46                 }
47 }
48
49