//# 0 errors, 366 messages
//#
/*
    //#Entries.java:1:1: class: org.apache.roller.weblogger.ui.struts2.editor.Entries
 * Licensed to the Apache Software Foundation (ASF) under one or more
 *  contributor license agreements.  The ASF licenses this file to You
 * under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.  For additional information regarding
 * copyright in this work, please see the NOTICE file in the top level
 * directory of this distribution.
 */

package org.apache.roller.weblogger.ui.struts2.editor;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.roller.weblogger.WebloggerException;
import org.apache.roller.weblogger.business.WebloggerFactory;
import org.apache.roller.weblogger.business.WeblogManager;
import org.apache.roller.weblogger.pojos.WeblogCategory;
import org.apache.roller.weblogger.pojos.WeblogPermission;
import org.apache.roller.weblogger.pojos.WeblogEntry;
import org.apache.roller.weblogger.ui.struts2.pagers.EntriesPager;
import org.apache.roller.weblogger.ui.struts2.util.KeyValueObject;
import org.apache.roller.weblogger.ui.struts2.util.UIAction;


/**
 * A list view of entries in a weblog.
 */
public class Entries extends UIAction {
    
    private static Log log = LogFactory.getLog(Entries.class);
    //#Entries.java:45: method: org.apache.roller.weblogger.ui.struts2.editor.Entries.org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init
    //#Entries.java:45: Warning: method not available
    //#    -- call on Log org.apache.commons.logging.LogFactory:getLog(Class)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init
    //#    unanalyzed callee: Log org.apache.commons.logging.LogFactory:getLog(Class)
    //#output(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/Entries]
    //#output(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.buildBaseUrl()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.execute()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.getBean()Lorg/apache/roller/weblogger/ui/struts2/editor/EntriesBean;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.getCategories()Ljava/util/List;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.getFirstEntry()Lorg/apache/roller/weblogger/pojos/WeblogEntry;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.getLastEntry()Lorg/apache/roller/weblogger/pojos/WeblogEntry;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.getPager()Lorg/apache/roller/weblogger/ui/struts2/pagers/EntriesPager;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.getSortByOptions()Ljava/util/List;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.getStatusOptions()Ljava/util/List;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.requiredWeblogPermissions()S
    //#output(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.setBean(Lorg/apache/roller/weblogger/ui/struts2/editor/EntriesBean;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.setFirstEntry(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.setLastEntry(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.setPager(Lorg/apache/roller/weblogger/ui/struts2/pagers/EntriesPager;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): log
    //#post(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/Entries] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.buildBaseUrl()Ljava/lang/String; == &buildBaseUrl
    //#post(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.execute()Ljava/lang/String; == &execute
    //#post(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.getBean()Lorg/apache/roller/weblogger/ui/struts2/editor/EntriesBean; == &getBean
    //#post(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.getCategories()Ljava/util/List; == &getCategories
    //#post(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.getFirstEntry()Lorg/apache/roller/weblogger/pojos/WeblogEntry; == &getFirstEntry
    //#post(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.getLastEntry()Lorg/apache/roller/weblogger/pojos/WeblogEntry; == &getLastEntry
    //#post(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.getPager()Lorg/apache/roller/weblogger/ui/struts2/pagers/EntriesPager; == &getPager
    //#post(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.getSortByOptions()Ljava/util/List; == &getSortByOptions
    //#post(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.getStatusOptions()Ljava/util/List; == &getStatusOptions
    //#post(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.requiredWeblogPermissions()S == &requiredWeblogPermissions
    //#post(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.setBean(Lorg/apache/roller/weblogger/ui/struts2/editor/EntriesBean;)V == &setBean
    //#post(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.setFirstEntry(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V == &setFirstEntry
    //#post(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.setLastEntry(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V == &setLastEntry
    //#post(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): __Dispatch_Table.setPager(Lorg/apache/roller/weblogger/ui/struts2/pagers/EntriesPager;)V == &setPager
    //#post(org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init): init'ed(log)
    //#Entries.java:45: end of method: org.apache.roller.weblogger.ui.struts2.editor.Entries.org.apache.roller.weblogger.ui.struts2.editor.Entries__static_init
    
    // number of comments to show per page
    private static final int COUNT = 30;
    
    // bean for managing submitted data
    private EntriesBean bean = new EntriesBean();
    
    // pager for the entries we are viewing
    private EntriesPager pager = null;
    
    // first entry in the list
    private WeblogEntry firstEntry = null;
    
    // last entry in the list
    private WeblogEntry lastEntry = null;
    
    
    public Entries() {
    //#Entries.java:63: method: void org.apache.roller.weblogger.ui.struts2.editor.Entries.org.apache.roller.weblogger.ui.struts2.editor.Entries()
    //#Entries.java:63: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.ui.struts2.util.UIAction()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: void org.apache.roller.weblogger.ui.struts2.editor.Entries()
    //#    unanalyzed callee: void org.apache.roller.weblogger.ui.struts2.util.UIAction()
    //#input(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): new EntriesBean(Entries#1) num objects
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.bean.__Tag
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.bean.categoryPath
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.bean.endDateString
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.bean.page
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.bean.sortBy
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.bean.startDateString
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.bean.status
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.bean.tagsAsString
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.bean.text
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.actionName
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.bean
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.desiredMenu
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.firstEntry
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.lastEntry
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.pageTitle
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.pager
    //#new obj(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): new EntriesBean(Entries#1)
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.actionName == &"entries"
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.bean == &new EntriesBean(Entries#1)
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.desiredMenu == &"editor"
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.firstEntry == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.lastEntry == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.pager == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.bean.categoryPath == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.bean.endDateString == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.bean.startDateString == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.bean.tagsAsString == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.bean.text == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.pageTitle == &"weblogEntryQuery.title"
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): new EntriesBean(Entries#1) num objects == 1
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.bean.__Tag == org/apache/roller/weblogger/ui/struts2/editor/EntriesBean
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.bean.page == 0
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.bean.sortBy == &"updateTime"
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.Entries()): this.bean.status == &"ALL"
        this.actionName = "entries";
        this.desiredMenu = "editor";
        this.pageTitle = "weblogEntryQuery.title";
    }
    //#Entries.java:67: end of method: void org.apache.roller.weblogger.ui.struts2.editor.Entries.org.apache.roller.weblogger.ui.struts2.editor.Entries()
    
    
    @Override
    public short requiredWeblogPermissions() {
        return WeblogPermission.AUTHOR;
    //#Entries.java:72: method: short org.apache.roller.weblogger.ui.struts2.editor.Entries.requiredWeblogPermissions()
    //#input(short requiredWeblogPermissions()): org.apache.roller.weblogger.pojos.WeblogPermission.AUTHOR
    //#output(short requiredWeblogPermissions()): return_value
    //#presumption(short requiredWeblogPermissions()): init'ed(org.apache.roller.weblogger.pojos.WeblogPermission.AUTHOR)
    //#post(short requiredWeblogPermissions()): return_value == org.apache.roller.weblogger.pojos.WeblogPermission.AUTHOR
    //#post(short requiredWeblogPermissions()): (soft) init'ed(return_value)
    //#Entries.java:72: end of method: short org.apache.roller.weblogger.ui.struts2.editor.Entries.requiredWeblogPermissions()
    }
    
    
    public String execute() {
        
        if (log.isDebugEnabled()) {
    //#Entries.java:78: method: String org.apache.roller.weblogger.ui.struts2.editor.Entries.execute()
    //#Entries.java:78: Warning: method not available
    //#    -- call on bool org.apache.commons.logging.Log:isDebugEnabled()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String execute()
    //#    unanalyzed callee: bool org.apache.commons.logging.Log:isDebugEnabled()
    //#input(String execute()): " results"._tainted
    //#input(String execute()): "&#10;"._tainted
    //#input(String execute()): "catPath = "._tainted
    //#input(String execute()): "endDate = "._tainted
    //#input(String execute()): "entries bean is ...&#10;"._tainted
    //#input(String execute()): "page = "._tainted
    //#input(String execute()): "query found "._tainted
    //#input(String execute()): "sortBy = "._tainted
    //#input(String execute()): "startDate = "._tainted
    //#input(String execute()): "status = "._tainted
    //#input(String execute()): "tags = "._tainted
    //#input(String execute()): "text = "._tainted
    //#input(String execute()): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/Entries]
    //#input(String execute()): __Descendant_Table[others]
    //#input(String execute()): __Dispatch_Table.getBean()Lorg/apache/roller/weblogger/ui/struts2/editor/EntriesBean;
    //#input(String execute()): __Dispatch_Table.setFirstEntry(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V
    //#input(String execute()): __Dispatch_Table.setLastEntry(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V
    //#input(String execute()): __Dispatch_Table.setPager(Lorg/apache/roller/weblogger/ui/struts2/pagers/EntriesPager;)V
    //#input(String execute()): log
    //#input(String execute()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/EntriesBean]
    //#input(String execute()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Descendant_Table[others]
    //#input(String execute()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Dispatch_Table.getCategoryPath()Ljava/lang/String;
    //#input(String execute()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Dispatch_Table.getEndDate()Ljava/util/Date;
    //#input(String execute()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Dispatch_Table.getEndDateString()Ljava/lang/String;
    //#input(String execute()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Dispatch_Table.getPage()I
    //#input(String execute()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Dispatch_Table.getSortBy()Ljava/lang/String;
    //#input(String execute()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Dispatch_Table.getStartDate()Ljava/util/Date;
    //#input(String execute()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Dispatch_Table.getStartDateString()Ljava/lang/String;
    //#input(String execute()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Dispatch_Table.getStatus()Ljava/lang/String;
    //#input(String execute()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Dispatch_Table.getTags()Ljava/util/List;
    //#input(String execute()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Dispatch_Table.getTagsAsString()Ljava/lang/String;
    //#input(String execute()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Dispatch_Table.getText()Ljava/lang/String;
    //#input(String execute()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Dispatch_Table.toString()Ljava/lang/String;
    //#input(String execute()): this
    //#input(String execute()): this.__Tag
    //#input(String execute()): this.bean
    //#input(String execute()): this.bean.__Tag
    //#input(String execute()): this.bean.categoryPath
    //#input(String execute()): this.bean.categoryPath._tainted
    //#input(String execute()): this.bean.endDateString
    //#input(String execute()): this.bean.page
    //#input(String execute()): this.bean.sortBy
    //#input(String execute()): this.bean.sortBy._tainted
    //#input(String execute()): this.bean.startDateString
    //#input(String execute()): this.bean.status
    //#input(String execute()): this.bean.status._tainted
    //#input(String execute()): this.bean.tagsAsString
    //#input(String execute()): this.bean.tagsAsString._tainted
    //#input(String execute()): this.bean.text
    //#input(String execute()): this.bean.text._tainted
    //#output(String execute()): new EntriesPager(execute#4) num objects
    //#output(String execute()): return_value
    //#output(String execute()): this.firstEntry
    //#output(String execute()): this.lastEntry
    //#output(String execute()): this.pager
    //#new obj(String execute()): new EntriesPager(execute#4)
    //#pre[1] (String execute()): log != null
    //#pre[5] (String execute()): this.__Tag == org/apache/roller/weblogger/ui/struts2/editor/Entries
    //#pre[6] (String execute()): this.bean != null
    //#pre[7] (String execute()): this.bean.__Tag == org/apache/roller/weblogger/ui/struts2/editor/EntriesBean
    //#pre[8] (String execute()): init'ed(this.bean.categoryPath)
    //#pre[10] (String execute()): init'ed(this.bean.endDateString)
    //#pre[12] (String execute()): init'ed(this.bean.sortBy)
    //#pre[14] (String execute()): init'ed(this.bean.startDateString)
    //#pre[15] (String execute()): init'ed(this.bean.status)
    //#pre[17] (String execute()): init'ed(this.bean.tagsAsString)
    //#pre[19] (String execute()): init'ed(this.bean.text)
    //#pre[11] (String execute()): (soft) this.bean.page in -71_582_788..143_165_576
    //#presumption(String execute()): java.util.List:size(...)@108 >= -2_147_483_647
    //#presumption(String execute()): java.util.List:size(...)@113 >= -2_147_483_647
    //#presumption(String execute()): org.apache.roller.weblogger.business.WeblogManager:getWeblogEntries(...)@88 != null
    //#presumption(String execute()): org.apache.roller.weblogger.business.Weblogger:getWeblogManager(...)@87 != null
    //#presumption(String execute()): org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger(...)@87 != null
    //#post(String execute()): return_value == &"list"
    //#post(String execute()): possibly_updated(this.firstEntry)
    //#post(String execute()): possibly_updated(this.lastEntry)
    //#post(String execute()): this.pager == &new EntriesPager(execute#4)
    //#post(String execute()): new EntriesPager(execute#4) num objects == 1
    //#unanalyzed(String execute()): Effects-of-calling:org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger
    //#unanalyzed(String execute()): Effects-of-calling:org.apache.roller.weblogger.ui.struts2.editor.Entries:getActionWeblog
    //#unanalyzed(String execute()): Effects-of-calling:java.util.HashMap
    //#unanalyzed(String execute()): Effects-of-calling:org.apache.commons.lang.StringUtils:isEmpty
    //#unanalyzed(String execute()): Effects-of-calling:java.util.Map:put
    //#unanalyzed(String execute()): Effects-of-calling:org.apache.roller.weblogger.business.Weblogger:getUrlStrategy
    //#unanalyzed(String execute()): Effects-of-calling:org.apache.roller.weblogger.pojos.Weblog:getHandle
    //#unanalyzed(String execute()): Effects-of-calling:org.apache.roller.weblogger.business.URLStrategy:getActionURL
    //#unanalyzed(String execute()): Effects-of-calling:java.text.SimpleDateFormat
    //#unanalyzed(String execute()): Effects-of-calling:java.text.DateFormat:parse
    //#unanalyzed(String execute()): Effects-of-calling:java.lang.Throwable:__curr_excep_obj
    //#unanalyzed(String execute()): Effects-of-calling:java.lang.StringBuffer
    //#unanalyzed(String execute()): Effects-of-calling:java.lang.StringBuffer:append
    //#unanalyzed(String execute()): Effects-of-calling:getEndDate
    //#unanalyzed(String execute()): Effects-of-calling:java.lang.StringBuffer:toString
    //#unanalyzed(String execute()): Effects-of-calling:org.apache.roller.weblogger.util.Utilities:splitStringAsTags
    //#test_vector(String execute()): java.util.List:size(...)@104: {-2_147_483_648..0}, {1..4_294_967_295}
    //#test_vector(String execute()): java.util.List:size(...)@107: {-2_147_483_648..30}, {31..4_294_967_295}
    //#test_vector(String execute()): org.apache.commons.logging.Log:isDebugEnabled(...)@78: {0}, {1}
            log.debug("entries bean is ...\n"+getBean().toString());
    //#Entries.java:79: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:debug(Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String execute()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:debug(Object)
        }
        
        List<WeblogEntry> entries = null;
        boolean hasMore = false;
        try {
            String status = getBean().getStatus();
            
            WeblogManager wmgr = WebloggerFactory.getWeblogger().getWeblogManager();
    //#Entries.java:87: Warning: method not available
    //#    -- call on Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String execute()
    //#    unanalyzed callee: Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#Entries.java:87: Warning: method not available
    //#    -- call on WeblogManager org.apache.roller.weblogger.business.Weblogger:getWeblogManager()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String execute()
    //#    unanalyzed callee: WeblogManager org.apache.roller.weblogger.business.Weblogger:getWeblogManager()
            List<WeblogEntry> rawEntries = wmgr.getWeblogEntries(
    //#Entries.java:88: Warning: method not available
    //#    -- call on Weblog org.apache.roller.weblogger.ui.struts2.editor.Entries:getActionWeblog()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String execute()
    //#    unanalyzed callee: Weblog org.apache.roller.weblogger.ui.struts2.editor.Entries:getActionWeblog()
    //#Entries.java:88: Warning: method not available
    //#    -- call on List org.apache.roller.weblogger.business.WeblogManager:getWeblogEntries(Weblog, User, Date, Date, String, List, String, String, String, String, String, int, int)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String execute()
    //#    unanalyzed callee: List org.apache.roller.weblogger.business.WeblogManager:getWeblogEntries(Weblog, User, Date, Date, String, List, String, String, String, String, String, int, int)
                    getActionWeblog(),
                    null,
                    getBean().getStartDate(),
                    getBean().getEndDate(),
                    getBean().getCategoryPath(),
                    getBean().getTags(),
                    ("ALL".equals(status)) ? null : status,
                    getBean().getText(),
                    getBean().getSortBy(),
                    null,
                    null,
                    getBean().getPage() * COUNT,
                    COUNT + 1);
            entries = new ArrayList<WeblogEntry>();
            entries.addAll(rawEntries);
            if (entries != null && entries.size() > 0) {
    //#Entries.java:104: Warning: test always goes same way
    //#    test predetermined because entries != null
    //#    severity: LOW
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String execute()
    //#    from bb: bb_7
    //#    live edge: bb_7-->bb_8
    //#    tested vn: 0
    //#    tested vn values: {0}
                log.debug("query found "+rawEntries.size()+" results");
    //#Entries.java:105: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:debug(Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String execute()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:debug(Object)
                
                if(rawEntries.size() > COUNT) {
                    entries.remove(entries.size()-1);
                    hasMore = true;
                }
                
                setFirstEntry((WeblogEntry)entries.get(0));
                setLastEntry((WeblogEntry)entries.get(entries.size()-1));
            }
        } catch (WebloggerException ex) {
            log.error("Error looking up entries", ex);
    //#Entries.java:116: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:error(Object, Throwable)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String execute()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object, Throwable)
            // TODO: i18n
            addError("Error looking up entries");
    //#Entries.java:118: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.ui.struts2.editor.Entries:addError(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String execute()
    //#    unanalyzed callee: void org.apache.roller.weblogger.ui.struts2.editor.Entries:addError(String)
        }
        
        // build entries pager
        String baseUrl = buildBaseUrl();
        setPager(new EntriesPager(baseUrl, getBean().getPage(), entries, hasMore));
    //#Entries.java:123: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.ui.struts2.pagers.EntriesPager(String, int, List, bool)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String execute()
    //#    unanalyzed callee: void org.apache.roller.weblogger.ui.struts2.pagers.EntriesPager(String, int, List, bool)
                
        return LIST;
    //#Entries.java:125: end of method: String org.apache.roller.weblogger.ui.struts2.editor.Entries.execute()
    }
    
    
    // use the action data to build a url representing this action, including query data
    private String buildBaseUrl() {
        
        Map<String, String> params = new HashMap();
    //#Entries.java:132: method: String org.apache.roller.weblogger.ui.struts2.editor.Entries.buildBaseUrl()
    //#input(String buildBaseUrl()): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/Entries]
    //#input(String buildBaseUrl()): __Descendant_Table[others]
    //#input(String buildBaseUrl()): __Dispatch_Table.getBean()Lorg/apache/roller/weblogger/ui/struts2/editor/EntriesBean;
    //#input(String buildBaseUrl()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/EntriesBean]
    //#input(String buildBaseUrl()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Descendant_Table[others]
    //#input(String buildBaseUrl()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Dispatch_Table.getCategoryPath()Ljava/lang/String;
    //#input(String buildBaseUrl()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Dispatch_Table.getEndDateString()Ljava/lang/String;
    //#input(String buildBaseUrl()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Dispatch_Table.getSortBy()Ljava/lang/String;
    //#input(String buildBaseUrl()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Dispatch_Table.getStartDateString()Ljava/lang/String;
    //#input(String buildBaseUrl()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Dispatch_Table.getStatus()Ljava/lang/String;
    //#input(String buildBaseUrl()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Dispatch_Table.getTagsAsString()Ljava/lang/String;
    //#input(String buildBaseUrl()): org/apache/roller/weblogger/ui/struts2/editor/EntriesBean.__Dispatch_Table.getText()Ljava/lang/String;
    //#input(String buildBaseUrl()): this
    //#input(String buildBaseUrl()): this.__Tag
    //#input(String buildBaseUrl()): this.bean
    //#input(String buildBaseUrl()): this.bean.__Tag
    //#input(String buildBaseUrl()): this.bean.categoryPath
    //#input(String buildBaseUrl()): this.bean.endDateString
    //#input(String buildBaseUrl()): this.bean.sortBy
    //#input(String buildBaseUrl()): this.bean.startDateString
    //#input(String buildBaseUrl()): this.bean.status
    //#input(String buildBaseUrl()): this.bean.tagsAsString
    //#input(String buildBaseUrl()): this.bean.text
    //#output(String buildBaseUrl()): return_value
    //#pre[2] (String buildBaseUrl()): this.__Tag == org/apache/roller/weblogger/ui/struts2/editor/Entries
    //#pre[3] (String buildBaseUrl()): this.bean != null
    //#pre[4] (String buildBaseUrl()): this.bean.__Tag == org/apache/roller/weblogger/ui/struts2/editor/EntriesBean
    //#pre[5] (String buildBaseUrl()): init'ed(this.bean.categoryPath)
    //#pre[6] (String buildBaseUrl()): init'ed(this.bean.endDateString)
    //#pre[7] (String buildBaseUrl()): init'ed(this.bean.sortBy)
    //#pre[8] (String buildBaseUrl()): init'ed(this.bean.startDateString)
    //#pre[9] (String buildBaseUrl()): init'ed(this.bean.status)
    //#pre[10] (String buildBaseUrl()): init'ed(this.bean.tagsAsString)
    //#pre[11] (String buildBaseUrl()): init'ed(this.bean.text)
    //#presumption(String buildBaseUrl()): org.apache.roller.weblogger.business.Weblogger:getUrlStrategy(...)@156 != null
    //#presumption(String buildBaseUrl()): org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger(...)@156 != null
    //#presumption(String buildBaseUrl()): org.apache.roller.weblogger.ui.struts2.editor.Entries:getActionWeblog(...)@156 != null
    //#post(String buildBaseUrl()): init'ed(return_value)
    //#test_vector(String buildBaseUrl()): org.apache.commons.lang.StringUtils:isEmpty(...)@134: {1}, {0}
    //#test_vector(String buildBaseUrl()): org.apache.commons.lang.StringUtils:isEmpty(...)@137: {1}, {0}
    //#test_vector(String buildBaseUrl()): org.apache.commons.lang.StringUtils:isEmpty(...)@140: {1}, {0}
    //#test_vector(String buildBaseUrl()): org.apache.commons.lang.StringUtils:isEmpty(...)@143: {1}, {0}
    //#test_vector(String buildBaseUrl()): org.apache.commons.lang.StringUtils:isEmpty(...)@146: {1}, {0}
    //#test_vector(String buildBaseUrl()): org.apache.commons.lang.StringUtils:isEmpty(...)@149: {1}, {0}
    //#test_vector(String buildBaseUrl()): org.apache.commons.lang.StringUtils:isEmpty(...)@152: {1}, {0}
        
        if(!StringUtils.isEmpty(getBean().getCategoryPath())) {
    //#Entries.java:134: Warning: method not available
    //#    -- call on bool org.apache.commons.lang.StringUtils:isEmpty(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String buildBaseUrl()
    //#    unanalyzed callee: bool org.apache.commons.lang.StringUtils:isEmpty(String)
            params.put("bean.categoryPath", getBean().getCategoryPath());
        }
        if(!StringUtils.isEmpty(getBean().getTagsAsString())) {
    //#Entries.java:137: Warning: method not available
    //#    -- call on bool org.apache.commons.lang.StringUtils:isEmpty(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String buildBaseUrl()
    //#    unanalyzed callee: bool org.apache.commons.lang.StringUtils:isEmpty(String)
            params.put("bean.tagsAsString", getBean().getTagsAsString());
        }
        if(!StringUtils.isEmpty(getBean().getText())) {
    //#Entries.java:140: Warning: method not available
    //#    -- call on bool org.apache.commons.lang.StringUtils:isEmpty(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String buildBaseUrl()
    //#    unanalyzed callee: bool org.apache.commons.lang.StringUtils:isEmpty(String)
            params.put("bean.text", getBean().getText());
        }
        if(!StringUtils.isEmpty(getBean().getStartDateString())) {
    //#Entries.java:143: Warning: method not available
    //#    -- call on bool org.apache.commons.lang.StringUtils:isEmpty(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String buildBaseUrl()
    //#    unanalyzed callee: bool org.apache.commons.lang.StringUtils:isEmpty(String)
            params.put("bean.startDateString", getBean().getStartDateString());
        }
        if(!StringUtils.isEmpty(getBean().getEndDateString())) {
    //#Entries.java:146: Warning: method not available
    //#    -- call on bool org.apache.commons.lang.StringUtils:isEmpty(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String buildBaseUrl()
    //#    unanalyzed callee: bool org.apache.commons.lang.StringUtils:isEmpty(String)
            params.put("bean.endDateString", getBean().getEndDateString());
        }
        if(!StringUtils.isEmpty(getBean().getStatus())) {
    //#Entries.java:149: Warning: method not available
    //#    -- call on bool org.apache.commons.lang.StringUtils:isEmpty(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String buildBaseUrl()
    //#    unanalyzed callee: bool org.apache.commons.lang.StringUtils:isEmpty(String)
            params.put("bean.status", getBean().getStatus());
        }
        if(!StringUtils.isEmpty(getBean().getSortBy())) {
    //#Entries.java:152: Warning: method not available
    //#    -- call on bool org.apache.commons.lang.StringUtils:isEmpty(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String buildBaseUrl()
    //#    unanalyzed callee: bool org.apache.commons.lang.StringUtils:isEmpty(String)
            params.put("bean.sortBy", getBean().getSortBy());
        }
        
        return WebloggerFactory.getWeblogger().getUrlStrategy().getActionURL("entries", "/roller-ui/authoring", 
    //#Entries.java:156: Warning: method not available
    //#    -- call on Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String buildBaseUrl()
    //#    unanalyzed callee: Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#Entries.java:156: Warning: method not available
    //#    -- call on URLStrategy org.apache.roller.weblogger.business.Weblogger:getUrlStrategy()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String buildBaseUrl()
    //#    unanalyzed callee: URLStrategy org.apache.roller.weblogger.business.Weblogger:getUrlStrategy()
    //#Entries.java:156: Warning: method not available
    //#    -- call on Weblog org.apache.roller.weblogger.ui.struts2.editor.Entries:getActionWeblog()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String buildBaseUrl()
    //#    unanalyzed callee: Weblog org.apache.roller.weblogger.ui.struts2.editor.Entries:getActionWeblog()
    //#Entries.java:156: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.Weblog:getHandle()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String buildBaseUrl()
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.Weblog:getHandle()
    //#Entries.java:156: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.business.URLStrategy:getActionURL(String, String, String, Map, bool)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: String buildBaseUrl()
    //#    unanalyzed callee: String org.apache.roller.weblogger.business.URLStrategy:getActionURL(String, String, String, Map, bool)
    //#Entries.java:156: end of method: String org.apache.roller.weblogger.ui.struts2.editor.Entries.buildBaseUrl()
                getActionWeblog().getHandle(), params, false);
    }
    
    
    /**
     * Get the list of all categories for the action weblog, not including root.
     */
    public List<WeblogCategory> getCategories() {
        // make list of categories with first option being being a transient
        // category just meant to represent the default option of any category
        List<WeblogCategory> cats = new ArrayList();
    //#Entries.java:167: method: List org.apache.roller.weblogger.ui.struts2.editor.Entries.getCategories()
    //#input(List getCategories()): "Error getting category list for weblog - "._tainted
    //#input(List getCategories()): java.util.Collections.EMPTY_LIST
    //#input(List getCategories()): log
    //#input(List getCategories()): this
    //#output(List getCategories()): new ArrayList(getCategories#1) num objects
    //#output(List getCategories()): return_value
    //#new obj(List getCategories()): new ArrayList(getCategories#1)
    //#pre[1] (List getCategories()): (soft) log != null
    //#presumption(List getCategories()): init'ed(java.util.Collections.EMPTY_LIST)
    //#presumption(List getCategories()): org.apache.roller.weblogger.business.Weblogger:getWeblogManager(...)@176 != null
    //#presumption(List getCategories()): org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger(...)@176 != null
    //#post(List getCategories()): return_value == &new ArrayList(getCategories#1)
    //#post(List getCategories()): new ArrayList(getCategories#1) num objects == 1
        
        WeblogCategory tmpCat = new WeblogCategory();
    //#Entries.java:169: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.pojos.WeblogCategory()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getCategories()
    //#    unanalyzed callee: void org.apache.roller.weblogger.pojos.WeblogCategory()
        tmpCat.setName("Any");
    //#Entries.java:170: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.pojos.WeblogCategory:setName(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getCategories()
    //#    unanalyzed callee: void org.apache.roller.weblogger.pojos.WeblogCategory:setName(String)
        tmpCat.setPath("");
    //#Entries.java:171: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.pojos.WeblogCategory:setPath(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getCategories()
    //#    unanalyzed callee: void org.apache.roller.weblogger.pojos.WeblogCategory:setPath(String)
        cats.add(tmpCat);
        
        List<WeblogCategory> weblogCats = Collections.EMPTY_LIST;
        try {
            WeblogManager wmgr = WebloggerFactory.getWeblogger().getWeblogManager();
    //#Entries.java:176: Warning: method not available
    //#    -- call on Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getCategories()
    //#    unanalyzed callee: Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#Entries.java:176: Warning: method not available
    //#    -- call on WeblogManager org.apache.roller.weblogger.business.Weblogger:getWeblogManager()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getCategories()
    //#    unanalyzed callee: WeblogManager org.apache.roller.weblogger.business.Weblogger:getWeblogManager()
            weblogCats = wmgr.getWeblogCategories(getActionWeblog(), false);
    //#Entries.java:177: Warning: method not available
    //#    -- call on Weblog org.apache.roller.weblogger.ui.struts2.editor.Entries:getActionWeblog()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getCategories()
    //#    unanalyzed callee: Weblog org.apache.roller.weblogger.ui.struts2.editor.Entries:getActionWeblog()
    //#Entries.java:177: Warning: method not available
    //#    -- call on List org.apache.roller.weblogger.business.WeblogManager:getWeblogCategories(Weblog, bool)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getCategories()
    //#    unanalyzed callee: List org.apache.roller.weblogger.business.WeblogManager:getWeblogCategories(Weblog, bool)
        } catch (WebloggerException ex) {
            log.error("Error getting category list for weblog - "+getWeblog(), ex);
    //#Entries.java:179: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.ui.struts2.editor.Entries:getWeblog()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getCategories()
    //#    unanalyzed callee: String org.apache.roller.weblogger.ui.struts2.editor.Entries:getWeblog()
    //#Entries.java:179: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:error(Object, Throwable)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getCategories()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object, Throwable)
        }
        
        cats.addAll(weblogCats);
        
        return cats;
    //#Entries.java:184: end of method: List org.apache.roller.weblogger.ui.struts2.editor.Entries.getCategories()
    }
    
    
    public List<KeyValueObject> getSortByOptions() {
        List<KeyValueObject> opts = new ArrayList();
    //#Entries.java:189: method: List org.apache.roller.weblogger.ui.struts2.editor.Entries.getSortByOptions()
    //#input(List getSortByOptions()): this
    //#output(List getSortByOptions()): new ArrayList(getSortByOptions#1) num objects
    //#output(List getSortByOptions()): return_value
    //#new obj(List getSortByOptions()): new ArrayList(getSortByOptions#1)
    //#post(List getSortByOptions()): return_value == &new ArrayList(getSortByOptions#1)
    //#post(List getSortByOptions()): new ArrayList(getSortByOptions#1) num objects == 1
        
        opts.add(new KeyValueObject("pubTime", getText("weblogEntryQuery.label.pubTime")));
    //#Entries.java:191: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.ui.struts2.editor.Entries:getText(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getSortByOptions()
    //#    unanalyzed callee: String org.apache.roller.weblogger.ui.struts2.editor.Entries:getText(String)
    //#Entries.java:191: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.ui.struts2.util.KeyValueObject(Object, Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getSortByOptions()
    //#    unanalyzed callee: void org.apache.roller.weblogger.ui.struts2.util.KeyValueObject(Object, Object)
        opts.add(new KeyValueObject("updateTime", getText("weblogEntryQuery.label.updateTime")));
    //#Entries.java:192: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.ui.struts2.editor.Entries:getText(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getSortByOptions()
    //#    unanalyzed callee: String org.apache.roller.weblogger.ui.struts2.editor.Entries:getText(String)
    //#Entries.java:192: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.ui.struts2.util.KeyValueObject(Object, Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getSortByOptions()
    //#    unanalyzed callee: void org.apache.roller.weblogger.ui.struts2.util.KeyValueObject(Object, Object)
        
        return opts;
    //#Entries.java:194: end of method: List org.apache.roller.weblogger.ui.struts2.editor.Entries.getSortByOptions()
    }
    
    public List<KeyValueObject> getStatusOptions() {
        List<KeyValueObject> opts = new ArrayList();
    //#Entries.java:198: method: List org.apache.roller.weblogger.ui.struts2.editor.Entries.getStatusOptions()
    //#input(List getStatusOptions()): this
    //#output(List getStatusOptions()): new ArrayList(getStatusOptions#1) num objects
    //#output(List getStatusOptions()): return_value
    //#new obj(List getStatusOptions()): new ArrayList(getStatusOptions#1)
    //#post(List getStatusOptions()): return_value == &new ArrayList(getStatusOptions#1)
    //#post(List getStatusOptions()): new ArrayList(getStatusOptions#1) num objects == 1
        
        opts.add(new KeyValueObject("ALL", getText("weblogEntryQuery.label.allEntries")));
    //#Entries.java:200: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.ui.struts2.editor.Entries:getText(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getStatusOptions()
    //#    unanalyzed callee: String org.apache.roller.weblogger.ui.struts2.editor.Entries:getText(String)
    //#Entries.java:200: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.ui.struts2.util.KeyValueObject(Object, Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getStatusOptions()
    //#    unanalyzed callee: void org.apache.roller.weblogger.ui.struts2.util.KeyValueObject(Object, Object)
        opts.add(new KeyValueObject("DRAFT", getText("weblogEntryQuery.label.draftOnly")));
    //#Entries.java:201: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.ui.struts2.editor.Entries:getText(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getStatusOptions()
    //#    unanalyzed callee: String org.apache.roller.weblogger.ui.struts2.editor.Entries:getText(String)
    //#Entries.java:201: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.ui.struts2.util.KeyValueObject(Object, Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getStatusOptions()
    //#    unanalyzed callee: void org.apache.roller.weblogger.ui.struts2.util.KeyValueObject(Object, Object)
        opts.add(new KeyValueObject("PUBLISHED", getText("weblogEntryQuery.label.publishedOnly")));
    //#Entries.java:202: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.ui.struts2.editor.Entries:getText(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getStatusOptions()
    //#    unanalyzed callee: String org.apache.roller.weblogger.ui.struts2.editor.Entries:getText(String)
    //#Entries.java:202: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.ui.struts2.util.KeyValueObject(Object, Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getStatusOptions()
    //#    unanalyzed callee: void org.apache.roller.weblogger.ui.struts2.util.KeyValueObject(Object, Object)
        opts.add(new KeyValueObject("PENDING", getText("weblogEntryQuery.label.pendingOnly")));
    //#Entries.java:203: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.ui.struts2.editor.Entries:getText(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getStatusOptions()
    //#    unanalyzed callee: String org.apache.roller.weblogger.ui.struts2.editor.Entries:getText(String)
    //#Entries.java:203: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.ui.struts2.util.KeyValueObject(Object, Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getStatusOptions()
    //#    unanalyzed callee: void org.apache.roller.weblogger.ui.struts2.util.KeyValueObject(Object, Object)
        opts.add(new KeyValueObject("SCHEDULED", getText("weblogEntryQuery.label.scheduledOnly")));
    //#Entries.java:204: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.ui.struts2.editor.Entries:getText(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getStatusOptions()
    //#    unanalyzed callee: String org.apache.roller.weblogger.ui.struts2.editor.Entries:getText(String)
    //#Entries.java:204: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.ui.struts2.util.KeyValueObject(Object, Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.Entries
    //#    method: List getStatusOptions()
    //#    unanalyzed callee: void org.apache.roller.weblogger.ui.struts2.util.KeyValueObject(Object, Object)
        
        return opts;
    //#Entries.java:206: end of method: List org.apache.roller.weblogger.ui.struts2.editor.Entries.getStatusOptions()
    }
    
    
    public EntriesBean getBean() {
        return bean;
    //#Entries.java:211: method: EntriesBean org.apache.roller.weblogger.ui.struts2.editor.Entries.getBean()
    //#input(EntriesBean getBean()): this
    //#input(EntriesBean getBean()): this.bean
    //#output(EntriesBean getBean()): return_value
    //#pre[2] (EntriesBean getBean()): init'ed(this.bean)
    //#post(EntriesBean getBean()): return_value == this.bean
    //#post(EntriesBean getBean()): init'ed(return_value)
    //#Entries.java:211: end of method: EntriesBean org.apache.roller.weblogger.ui.struts2.editor.Entries.getBean()
    }

    public void setBean(EntriesBean bean) {
        this.bean = bean;
    //#Entries.java:215: method: void org.apache.roller.weblogger.ui.struts2.editor.Entries.setBean(EntriesBean)
    //#input(void setBean(EntriesBean)): bean
    //#input(void setBean(EntriesBean)): this
    //#output(void setBean(EntriesBean)): this.bean
    //#post(void setBean(EntriesBean)): this.bean == bean
    //#post(void setBean(EntriesBean)): init'ed(this.bean)
    }
    //#Entries.java:216: end of method: void org.apache.roller.weblogger.ui.struts2.editor.Entries.setBean(EntriesBean)

    public WeblogEntry getFirstEntry() {
        return firstEntry;
    //#Entries.java:219: method: WeblogEntry org.apache.roller.weblogger.ui.struts2.editor.Entries.getFirstEntry()
    //#input(WeblogEntry getFirstEntry()): this
    //#input(WeblogEntry getFirstEntry()): this.firstEntry
    //#output(WeblogEntry getFirstEntry()): return_value
    //#pre[2] (WeblogEntry getFirstEntry()): init'ed(this.firstEntry)
    //#post(WeblogEntry getFirstEntry()): return_value == this.firstEntry
    //#post(WeblogEntry getFirstEntry()): init'ed(return_value)
    //#Entries.java:219: end of method: WeblogEntry org.apache.roller.weblogger.ui.struts2.editor.Entries.getFirstEntry()
    }

    public void setFirstEntry(WeblogEntry firstEntry) {
        this.firstEntry = firstEntry;
    //#Entries.java:223: method: void org.apache.roller.weblogger.ui.struts2.editor.Entries.setFirstEntry(WeblogEntry)
    //#input(void setFirstEntry(WeblogEntry)): firstEntry
    //#input(void setFirstEntry(WeblogEntry)): this
    //#output(void setFirstEntry(WeblogEntry)): this.firstEntry
    //#post(void setFirstEntry(WeblogEntry)): this.firstEntry == firstEntry
    //#post(void setFirstEntry(WeblogEntry)): init'ed(this.firstEntry)
    }
    //#Entries.java:224: end of method: void org.apache.roller.weblogger.ui.struts2.editor.Entries.setFirstEntry(WeblogEntry)

    public WeblogEntry getLastEntry() {
        return lastEntry;
    //#Entries.java:227: method: WeblogEntry org.apache.roller.weblogger.ui.struts2.editor.Entries.getLastEntry()
    //#input(WeblogEntry getLastEntry()): this
    //#input(WeblogEntry getLastEntry()): this.lastEntry
    //#output(WeblogEntry getLastEntry()): return_value
    //#pre[2] (WeblogEntry getLastEntry()): init'ed(this.lastEntry)
    //#post(WeblogEntry getLastEntry()): return_value == this.lastEntry
    //#post(WeblogEntry getLastEntry()): init'ed(return_value)
    //#Entries.java:227: end of method: WeblogEntry org.apache.roller.weblogger.ui.struts2.editor.Entries.getLastEntry()
    }

    public void setLastEntry(WeblogEntry lastEntry) {
        this.lastEntry = lastEntry;
    //#Entries.java:231: method: void org.apache.roller.weblogger.ui.struts2.editor.Entries.setLastEntry(WeblogEntry)
    //#input(void setLastEntry(WeblogEntry)): lastEntry
    //#input(void setLastEntry(WeblogEntry)): this
    //#output(void setLastEntry(WeblogEntry)): this.lastEntry
    //#post(void setLastEntry(WeblogEntry)): this.lastEntry == lastEntry
    //#post(void setLastEntry(WeblogEntry)): init'ed(this.lastEntry)
    }
    //#Entries.java:232: end of method: void org.apache.roller.weblogger.ui.struts2.editor.Entries.setLastEntry(WeblogEntry)

    public EntriesPager getPager() {
        return pager;
    //#Entries.java:235: method: EntriesPager org.apache.roller.weblogger.ui.struts2.editor.Entries.getPager()
    //#input(EntriesPager getPager()): this
    //#input(EntriesPager getPager()): this.pager
    //#output(EntriesPager getPager()): return_value
    //#pre[2] (EntriesPager getPager()): init'ed(this.pager)
    //#post(EntriesPager getPager()): return_value == this.pager
    //#post(EntriesPager getPager()): init'ed(return_value)
    //#Entries.java:235: end of method: EntriesPager org.apache.roller.weblogger.ui.struts2.editor.Entries.getPager()
    }

    public void setPager(EntriesPager pager) {
        this.pager = pager;
    //#Entries.java:239: method: void org.apache.roller.weblogger.ui.struts2.editor.Entries.setPager(EntriesPager)
    //#input(void setPager(EntriesPager)): pager
    //#input(void setPager(EntriesPager)): this
    //#output(void setPager(EntriesPager)): this.pager
    //#post(void setPager(EntriesPager)): this.pager == pager
    //#post(void setPager(EntriesPager)): init'ed(this.pager)
    }
    //#Entries.java:240: end of method: void org.apache.roller.weblogger.ui.struts2.editor.Entries.setPager(EntriesPager)
    
}
    //#Entries.java:: end of class: org.apache.roller.weblogger.ui.struts2.editor.Entries
