1 package mircoders.module;
7 import javax.servlet.*;
8 import javax.servlet.http.*;
10 import freemarker.template.*;
18 import mircoders.storage.*;
27 public class ModuleTopics extends AbstractModule
30 static Logfile theLog;
32 public ModuleTopics(StorageObject theStorage) {
33 this.theStorage = theStorage;
35 theLog = Logfile.getInstance(MirConfig.getProp("Home") + MirConfig.getProp("Module.Themen.Logfile"));
38 public SimpleList getTopicsAsSimpleList() throws ModuleException {
40 return ((DatabaseTopics)theStorage).getPopupData();
41 } catch(StorageObjectException e) {
42 throw new ModuleException(e.toString());
50 * @return SimpleList of all Topics sorted by title
53 public EntityList getTopicsList()
55 EntityList returnList=null;
57 returnList=getByWhereClause("","title",-1);
61 theLog.printWarning("--getTopicsList: topics could not be fetched");