import mir.entity.EntityList;
import mir.log.LoggerWrapper;
import mir.module.AbstractModule;
-import mir.module.ModuleException;
+import mir.module.ModuleExc;
+import mir.module.ModuleFailure;
import mir.storage.StorageObject;
import mir.storage.StorageObjectFailure;
import mir.util.JDBCStringRoutines;
/*
* ContentObjekt -
*
- * @version $Id: ModuleContent.java,v 1.16 2003/03/05 19:23:16 idfx Exp $
+ * @version $Id: ModuleContent.java,v 1.17 2003/03/09 03:53:11 zapata Exp $
*
* @author RK, mir-coders
*
//
// various methods to retrieve content entities
- public EntityList getFeatures(int offset, int limit) throws ModuleException
- {
- return getContent("is_published=true AND to_article_type=2", "webdb_create desc",
- offset, limit);
- }
+// public EntityList getFeatures(int offset, int limit) throws ModuleExc, ModuleFailure {
+// return getContent("is_published=true AND to_article_type=2", "webdb_create desc",
+// offset, limit);
+// }
- public EntityList getNewsWire(int offset, int limit) throws ModuleException
- {
- return getContent("is_published=true AND to_article_type = 1",
- "webdb_create desc",offset,limit);
- }
+// public EntityList getNewsWire(int offset, int limit) throws ModuleExc, ModuleFailure {
+// return getContent("is_published=true AND to_article_type = 1",
+// "webdb_create desc",offset,limit);
+// }
- public EntityList getStartArticle() throws ModuleException
- {
- EntityList returnList = getContent("is_published=true AND to_article_type=4",
- "webdb_create desc",0,1);
+// public EntityList getStartArticle() throws ModuleExc, ModuleFailure {
+// EntityList returnList = getContent("is_published=true AND to_article_type=4",
+// "webdb_create desc",0,1);
//if no startspecial exists
- if (returnList==null || returnList.size()==0)
- returnList = getContent("is_published=true AND to_article_type=3",
- "webdb_create desc",0,1);
+// if (returnList==null || returnList.size()==0)
+// returnList = getContent("is_published=true AND to_article_type=3",
+// "webdb_create desc",0,1);
- return returnList;
- }
+// return returnList;
+// }
- public EntityList getContent(Map searchValues, boolean concat, int offset, EntityUsers user)
- throws ModuleException {
+/*
+ public EntityList getContent(Map searchValues, boolean concat, int offset, EntityUsers user) throws ModuleException {
try {
}
}
-
+*/
+/*
public EntityList getContentByField(String aField, String aValue, String orderBy, int offset,
EntityUsers user) throws ModuleException
{
return getContent(whereClause, orderBy, offset, user);
}
+
public EntityList getContent(String whereClause, String orderBy, int offset,
int limit, EntityUsers user) throws ModuleException {
}
catch (StorageObjectFailure e){ throw new ModuleException(e.toString()); }
}
+*/
- public EntityList getContent(String whereClause, String orderBy,int offset, int limit)
- throws ModuleException {
+ public EntityList getContent(String whereClause, String orderBy,int offset, int limit) throws ModuleExc, ModuleFailure {
try {
return theStorage.selectByWhereClause(whereClause, orderBy, offset, limit);
- } catch (StorageObjectFailure e){
- throw new ModuleException(e.toString());
+ }
+ catch (Throwable e){
+ throw new ModuleFailure(e);
}
}
-
+/*
public EntityList getContent(String whereClause, String orderBy, int offset, EntityUsers user)
throws ModuleException
{
throw new ModuleException(e.toString());
}
}
+*/
}