-//
-// various methods to retrieve content entities
-
-// 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 ModuleExc, ModuleFailure {
-// return getContent("is_published=true AND to_article_type = 1",
-// "webdb_create desc",offset,limit);
-// }
-
-// 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);
-
-// return returnList;
-// }
-
-/*
- public EntityList getContent(Map searchValues, boolean concat, int offset, EntityUsers user) throws ModuleException {
-
- try {
-
- String whereClause ="", aField, aValue;
- boolean first = true;
-
- Set set = searchValues.keySet();
- Iterator it = set.iterator();
- for (int i=0;i<set.size();i++) {
- aField = (String)it.next();
- aValue = (String)searchValues.get(aField);
-
- if (first == false)
- whereClause += (concat) ? " and " : " or ";
- else
- first = false;
-
- whereClause += "(";
-
-// default: hier splitten der eintraege und verknupfung mit AND OR NOT
- StringTokenizer st = new StringTokenizer(aValue);
- boolean firstToken = true;
- while(st.hasMoreTokens()) {
- String notString = "";
- String tokenConcat = " OR ";
- String nextToken = st.nextToken();
-
- if (nextToken.startsWith("+")) {
- nextToken = nextToken.substring(1);
- tokenConcat = " AND ";
- }
- if (nextToken.startsWith("-")) {
- nextToken = nextToken.substring(1);
- tokenConcat = " AND ";
- notString = " NOT ";
- }
- if (firstToken == true) {
- tokenConcat = "";
- firstToken = false;
- }
-
-
- whereClause += tokenConcat + aField + notString + " like '";
- whereClause += nextToken + "%'";
- }
- whereClause += ") ";
- }
- return theStorage.selectByWhereClause(whereClause, offset);
- }
- catch (StorageObjectFailure e){
- throw new ModuleException(e.toString());