1 package mircoders.module;
7 import javax.servlet.*;
8 import javax.servlet.http.*;
10 import freemarker.template.*;
12 import webdb.servlet.*;
13 import webdb.module.*;
14 import webdb.entity.*;
16 import webdb.storage.*;
29 public class ModuleGruppen extends AbstractModule
31 static Logfile theLog;
35 public ModuleGruppen(StorageObject theStorage)
38 if (theLog == null) theLog = Logfile.getInstance(Configuration.getProperty("Home") + Configuration.getProperty("Module.Gruppen.Logfile"));
39 if (theStorage == null) theLog.printWarning("StorageObject was null!");
41 this.theStorage = theStorage;
47 public EntityList getGruppen(String whereClause, int offset, int limit)
48 throws ModuleException
50 //theLog.printDebugInfo("Module.get (wc,offset, limit)" +
51 // whereClause + " offset: " + offset + " limit: " + limit);
53 return theStorage.selectByWhereClause(whereClause, null, offset, limit);
55 catch (StorageObjectException e){
56 throw new ModuleException(e.toString());
61 public SimpleList getGruppenAsSimpleList() {
62 return ((DatabaseGroups)theStorage).getPopupData();