1 package mircoders.module;
7 import javax.servlet.*;
8 import javax.servlet.http.*;
10 import freemarker.template.*;
18 import mircoders.storage.*;
28 public class ModuleGruppen extends AbstractModule
30 static Logfile theLog;
34 public ModuleGruppen(StorageObject theStorage)
37 if (theLog == null) theLog = Logfile.getInstance(MirConfig.getProp("Home") + MirConfig.getProp("Module.Gruppen.Logfile"));
38 if (theStorage == null) theLog.printWarning("StorageObject was null!");
40 this.theStorage = theStorage;
46 public EntityList getGruppen(String whereClause, int offset, int limit)
47 throws ModuleException
49 //theLog.printDebugInfo("Module.get (wc,offset, limit)" +
50 // whereClause + " offset: " + offset + " limit: " + limit);
52 return theStorage.selectByWhereClause(whereClause, null, offset, limit);
54 catch (StorageObjectException e){
55 throw new ModuleException(e.toString());
60 public SimpleList getGruppenAsSimpleList() {
61 return ((DatabaseGroups)theStorage).getPopupData();