//# 0 errors, 336 messages
//#
/*
    //#CommentsBean.java:1:1: class: org.apache.roller.weblogger.ui.struts2.editor.CommentsBean
    //#CommentsBean.java:1:1: method: org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init
 * 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.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.apache.roller.weblogger.pojos.WeblogEntryComment;
import org.apache.roller.weblogger.util.Utilities;


/**
 * A bean for managing comments.
 */
public class CommentsBean {
    //#CommentsBean.java:35: method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()
    //#input(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): new String[](CommentsBean#1) num objects
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.approvedComments.length
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): new String[](CommentsBean#2) num objects
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.spamComments.length
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): new String[](CommentsBean#3) num objects
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.deleteComments.length
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.approvedComments
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.approvedString
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.deleteComments
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.endDateString
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.entryId
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.ids
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.page
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.searchString
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.spamComments
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.spamString
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.startDateString
    //#new obj(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): new String[](CommentsBean#1)
    //#new obj(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): new String[](CommentsBean#2)
    //#new obj(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): new String[](CommentsBean#3)
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.approvedComments == &new String[](CommentsBean#1)
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.approvedString == &"ALL"
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.spamString == &"ALL"
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.deleteComments == &new String[](CommentsBean#3)
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.endDateString == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.entryId == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.ids == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.searchString == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.startDateString == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.page == 0
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.approvedComments.length == 0
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.spamComments.length == 0
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.deleteComments.length == 0
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): this.spamComments == &new String[](CommentsBean#2)
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): new String[](CommentsBean#1) num objects == 1
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): new String[](CommentsBean#2) num objects == 1
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()): new String[](CommentsBean#3) num objects == 1
    
    private String entryId = null;
    private String searchString = null;
    private String startDateString = null;
    private String endDateString = null;
    private String spamString = "ALL";
    private String approvedString = "ALL";
    private int page = 0;
    
    private String[] approvedComments = new String[0];
    private String[] spamComments = new String[0];
    private String[] deleteComments = new String[0];
    
    // Limit updates to just this set of comma-separated IDs
    private String ids = null;
    //#CommentsBean.java:50: end of method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.org.apache.roller.weblogger.ui.struts2.editor.CommentsBean()
    
    
    public void loadCheckboxes(List comments) {
        
        List<String> allComments = new ArrayList();
    //#CommentsBean.java:55: method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.loadCheckboxes(List)
    //#input(void loadCheckboxes(List)): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/CommentsBean]
    //#input(void loadCheckboxes(List)): __Descendant_Table[others]
    //#input(void loadCheckboxes(List)): __Dispatch_Table.setApprovedComments([Ljava/lang/String;)V
    //#input(void loadCheckboxes(List)): __Dispatch_Table.setIds(Ljava/lang/String;)V
    //#input(void loadCheckboxes(List)): __Dispatch_Table.setSpamComments([Ljava/lang/String;)V
    //#input(void loadCheckboxes(List)): comments
    //#input(void loadCheckboxes(List)): this
    //#input(void loadCheckboxes(List)): this.__Tag
    //#output(void loadCheckboxes(List)): this.approvedComments
    //#output(void loadCheckboxes(List)): this.ids
    //#output(void loadCheckboxes(List)): this.spamComments
    //#pre[1] (void loadCheckboxes(List)): comments != null
    //#pre[3] (void loadCheckboxes(List)): this.__Tag == org/apache/roller/weblogger/ui/struts2/editor/CommentsBean
    //#presumption(void loadCheckboxes(List)): java.util.Iterator:next(...)@61 != null
    //#presumption(void loadCheckboxes(List)): java.util.List:size(...)@72 >= 0
    //#presumption(void loadCheckboxes(List)): java.util.List:size(...)@76 >= 0
    //#presumption(void loadCheckboxes(List)): java.util.List:size(...)@79 >= 0
    //#post(void loadCheckboxes(List)): init'ed(this.approvedComments)
    //#post(void loadCheckboxes(List)): init'ed(this.ids)
    //#post(void loadCheckboxes(List)): init'ed(this.spamComments)
    //#test_vector(void loadCheckboxes(List)): java.lang.String:equals(...)@64: {0}, {1}
    //#test_vector(void loadCheckboxes(List)): java.lang.String:equals(...)@66: {0}, {1}
    //#test_vector(void loadCheckboxes(List)): java.util.Iterator:hasNext(...)@60: {0}, {1}
        List<String> approvedList = new ArrayList();
        List<String> spamList = new ArrayList();
        
        Iterator it = comments.iterator();
        while (it.hasNext()) {
            WeblogEntryComment comment = (WeblogEntryComment)it.next();
            allComments.add(comment.getId());
    //#CommentsBean.java:62: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogEntryComment:getId()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.CommentsBean
    //#    method: void loadCheckboxes(List)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogEntryComment:getId()
            
            if(WeblogEntryComment.APPROVED.equals(comment.getStatus())) {
    //#CommentsBean.java:64: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogEntryComment:getStatus()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.CommentsBean
    //#    method: void loadCheckboxes(List)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogEntryComment:getStatus()
                approvedList.add(comment.getId());
    //#CommentsBean.java:65: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogEntryComment:getId()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.CommentsBean
    //#    method: void loadCheckboxes(List)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogEntryComment:getId()
            } else if(WeblogEntryComment.SPAM.equals(comment.getStatus())) {
    //#CommentsBean.java:66: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogEntryComment:getStatus()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.CommentsBean
    //#    method: void loadCheckboxes(List)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogEntryComment:getStatus()
                spamList.add(comment.getId());
    //#CommentsBean.java:67: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogEntryComment:getId()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.CommentsBean
    //#    method: void loadCheckboxes(List)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogEntryComment:getId()
            }
        }
        
        // list of ids we are working on
        String[] idArray = (String[]) allComments.toArray(new String[allComments.size()]);
        setIds(Utilities.stringArrayToString(idArray,","));
    //#CommentsBean.java:73: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.util.Utilities:stringArrayToString(String[], String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.CommentsBean
    //#    method: void loadCheckboxes(List)
    //#    unanalyzed callee: String org.apache.roller.weblogger.util.Utilities:stringArrayToString(String[], String)
        
        // approved ids list
        setApprovedComments((String[])approvedList.toArray(new String[approvedList.size()]));
        
        // spam ids list
        setSpamComments((String[])spamList.toArray(new String[spamList.size()]));
    }
    //#CommentsBean.java:80: end of method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.loadCheckboxes(List)
    
    
    public String getStatus() {
        if (approvedString.equals("ONLY_APPROVED")) {
    //#CommentsBean.java:84: method: String org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getStatus()
    //#input(String getStatus()): this
    //#input(String getStatus()): this.approvedString
    //#input(String getStatus()): this.spamString
    //#output(String getStatus()): return_value
    //#pre[2] (String getStatus()): this.approvedString != null
    //#pre[3] (String getStatus()): (soft) this.spamString != null
    //#post(String getStatus()): return_value in Addr_Set{null,&"ALL_IGNORE_SPAM",&"SPAM",&"PENDING",&"DISAPPROVED",&"APPROVED"}
    //#test_vector(String getStatus()): java.lang.String:equals(...)@84: {0}, {1}
    //#test_vector(String getStatus()): java.lang.String:equals(...)@86: {0}, {1}
    //#test_vector(String getStatus()): java.lang.String:equals(...)@88: {0}, {1}
    //#test_vector(String getStatus()): java.lang.String:equals(...)@90: {0}, {1}
    //#test_vector(String getStatus()): java.lang.String:equals(...)@92: {0}, {1}
            return WeblogEntryComment.APPROVED;
        } else if (approvedString.equals("ONLY_DISAPPROVED")) {
            return WeblogEntryComment.DISAPPROVED;
        } else if (approvedString.equals("ONLY_PENDING")) {
            return WeblogEntryComment.PENDING;
        } else if (spamString.equals("ONLY_SPAM")) {
            return WeblogEntryComment.SPAM;
        } else if (spamString.equals("NO_SPAM")) {
            // all status' except spam
            // special situation, so this doesn't map to a persisted comment status
            return "ALL_IGNORE_SPAM";
        } else {
            // shows *all* comments, regardless of status
            return null;
    //#CommentsBean.java:98: end of method: String org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getStatus()
        }
    }
    
    public Date getStartDate() {
        if(!StringUtils.isEmpty(getStartDateString())) try {
    //#CommentsBean.java:103: method: Date org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getStartDate()
    //#CommentsBean.java:103: Warning: method not available
    //#    -- call on bool org.apache.commons.lang.StringUtils:isEmpty(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.CommentsBean
    //#    method: Date getStartDate()
    //#    unanalyzed callee: bool org.apache.commons.lang.StringUtils:isEmpty(String)
    //#input(Date getStartDate()): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/CommentsBean]
    //#input(Date getStartDate()): __Descendant_Table[others]
    //#input(Date getStartDate()): __Dispatch_Table.getStartDateString()Ljava/lang/String;
    //#input(Date getStartDate()): this
    //#input(Date getStartDate()): this.__Tag
    //#input(Date getStartDate()): this.startDateString
    //#output(Date getStartDate()): return_value
    //#pre[2] (Date getStartDate()): this.__Tag == org/apache/roller/weblogger/ui/struts2/editor/CommentsBean
    //#pre[3] (Date getStartDate()): init'ed(this.startDateString)
    //#post(Date getStartDate()): init'ed(return_value)
    //#test_vector(Date getStartDate()): org.apache.commons.lang.StringUtils:isEmpty(...)@103: {1}, {0}
            DateFormat df = new SimpleDateFormat("MM/dd/yy");
            return df.parse(getStartDateString());
        } catch(Exception e) { }
        return null;
    //#CommentsBean.java:107: end of method: Date org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getStartDate()
    }

    public Date getEndDate() {
        if(!StringUtils.isEmpty(getEndDateString())) try {
    //#CommentsBean.java:111: method: Date org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getEndDate()
    //#CommentsBean.java:111: Warning: method not available
    //#    -- call on bool org.apache.commons.lang.StringUtils:isEmpty(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.CommentsBean
    //#    method: Date getEndDate()
    //#    unanalyzed callee: bool org.apache.commons.lang.StringUtils:isEmpty(String)
    //#input(Date getEndDate()): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/CommentsBean]
    //#input(Date getEndDate()): __Descendant_Table[others]
    //#input(Date getEndDate()): __Dispatch_Table.getEndDateString()Ljava/lang/String;
    //#input(Date getEndDate()): this
    //#input(Date getEndDate()): this.__Tag
    //#input(Date getEndDate()): this.endDateString
    //#output(Date getEndDate()): return_value
    //#pre[2] (Date getEndDate()): this.__Tag == org/apache/roller/weblogger/ui/struts2/editor/CommentsBean
    //#pre[3] (Date getEndDate()): init'ed(this.endDateString)
    //#post(Date getEndDate()): init'ed(return_value)
    //#test_vector(Date getEndDate()): org.apache.commons.lang.StringUtils:isEmpty(...)@111: {1}, {0}
            DateFormat df = new SimpleDateFormat("MM/dd/yy");
            return df.parse(getEndDateString());
        } catch(Exception e) { }
        return null;
    //#CommentsBean.java:115: end of method: Date org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getEndDate()
    }
    
    
    public String getSpamString() {
        return spamString;
    //#CommentsBean.java:120: method: String org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getSpamString()
    //#input(String getSpamString()): this
    //#input(String getSpamString()): this.spamString
    //#output(String getSpamString()): return_value
    //#pre[2] (String getSpamString()): init'ed(this.spamString)
    //#post(String getSpamString()): return_value == this.spamString
    //#post(String getSpamString()): init'ed(return_value)
    //#CommentsBean.java:120: end of method: String org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getSpamString()
    }
    
    public void setSpamString(String spamString) {
        this.spamString = spamString;
    //#CommentsBean.java:124: method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setSpamString(String)
    //#input(void setSpamString(String)): spamString
    //#input(void setSpamString(String)): this
    //#output(void setSpamString(String)): this.spamString
    //#post(void setSpamString(String)): this.spamString == spamString
    //#post(void setSpamString(String)): init'ed(this.spamString)
    }
    //#CommentsBean.java:125: end of method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setSpamString(String)
    
    public String getIds() {
        return ids;
    //#CommentsBean.java:128: method: String org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getIds()
    //#input(String getIds()): this
    //#input(String getIds()): this.ids
    //#output(String getIds()): return_value
    //#pre[2] (String getIds()): init'ed(this.ids)
    //#post(String getIds()): return_value == this.ids
    //#post(String getIds()): init'ed(return_value)
    //#CommentsBean.java:128: end of method: String org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getIds()
    }
    
    public void setIds(String ids) {
        this.ids = ids;
    //#CommentsBean.java:132: method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setIds(String)
    //#input(void setIds(String)): ids
    //#input(void setIds(String)): this
    //#output(void setIds(String)): this.ids
    //#post(void setIds(String)): this.ids == ids
    //#post(void setIds(String)): init'ed(this.ids)
    }
    //#CommentsBean.java:133: end of method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setIds(String)
    
    public String getSearchString() {
        return searchString;
    //#CommentsBean.java:136: method: String org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getSearchString()
    //#input(String getSearchString()): this
    //#input(String getSearchString()): this.searchString
    //#output(String getSearchString()): return_value
    //#pre[2] (String getSearchString()): init'ed(this.searchString)
    //#post(String getSearchString()): return_value == this.searchString
    //#post(String getSearchString()): init'ed(return_value)
    //#CommentsBean.java:136: end of method: String org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getSearchString()
    }
    
    public void setSearchString(String searchString) {
        this.searchString = searchString;
    //#CommentsBean.java:140: method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setSearchString(String)
    //#input(void setSearchString(String)): searchString
    //#input(void setSearchString(String)): this
    //#output(void setSearchString(String)): this.searchString
    //#post(void setSearchString(String)): this.searchString == searchString
    //#post(void setSearchString(String)): init'ed(this.searchString)
    }
    //#CommentsBean.java:141: end of method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setSearchString(String)

    public String[] getApprovedComments() {
        return approvedComments;
    //#CommentsBean.java:144: method: String[] org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getApprovedComments()
    //#input(String[] getApprovedComments()): this
    //#input(String[] getApprovedComments()): this.approvedComments
    //#output(String[] getApprovedComments()): return_value
    //#pre[2] (String[] getApprovedComments()): init'ed(this.approvedComments)
    //#post(String[] getApprovedComments()): return_value == this.approvedComments
    //#post(String[] getApprovedComments()): init'ed(return_value)
    //#CommentsBean.java:144: end of method: String[] org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getApprovedComments()
    }

    public void setApprovedComments(String[] approvedComments) {
        this.approvedComments = approvedComments;
    //#CommentsBean.java:148: method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setApprovedComments(String[])
    //#input(void setApprovedComments(String[])): approvedComments
    //#input(void setApprovedComments(String[])): this
    //#output(void setApprovedComments(String[])): this.approvedComments
    //#post(void setApprovedComments(String[])): this.approvedComments == approvedComments
    //#post(void setApprovedComments(String[])): init'ed(this.approvedComments)
    }
    //#CommentsBean.java:149: end of method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setApprovedComments(String[])
    
    public String[] getSpamComments() {
        return spamComments;
    //#CommentsBean.java:152: method: String[] org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getSpamComments()
    //#input(String[] getSpamComments()): this
    //#input(String[] getSpamComments()): this.spamComments
    //#output(String[] getSpamComments()): return_value
    //#pre[2] (String[] getSpamComments()): init'ed(this.spamComments)
    //#post(String[] getSpamComments()): return_value == this.spamComments
    //#post(String[] getSpamComments()): init'ed(return_value)
    //#CommentsBean.java:152: end of method: String[] org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getSpamComments()
    }

    public void setSpamComments(String[] spamComments) {
        this.spamComments = spamComments;
    //#CommentsBean.java:156: method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setSpamComments(String[])
    //#input(void setSpamComments(String[])): spamComments
    //#input(void setSpamComments(String[])): this
    //#output(void setSpamComments(String[])): this.spamComments
    //#post(void setSpamComments(String[])): this.spamComments == spamComments
    //#post(void setSpamComments(String[])): init'ed(this.spamComments)
    }
    //#CommentsBean.java:157: end of method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setSpamComments(String[])

    public String[] getDeleteComments() {
        return deleteComments;
    //#CommentsBean.java:160: method: String[] org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getDeleteComments()
    //#input(String[] getDeleteComments()): this
    //#input(String[] getDeleteComments()): this.deleteComments
    //#output(String[] getDeleteComments()): return_value
    //#pre[2] (String[] getDeleteComments()): init'ed(this.deleteComments)
    //#post(String[] getDeleteComments()): return_value == this.deleteComments
    //#post(String[] getDeleteComments()): init'ed(return_value)
    //#CommentsBean.java:160: end of method: String[] org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getDeleteComments()
    }

    public void setDeleteComments(String[] deleteComments) {
        this.deleteComments = deleteComments;
    //#CommentsBean.java:164: method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setDeleteComments(String[])
    //#input(void setDeleteComments(String[])): deleteComments
    //#input(void setDeleteComments(String[])): this
    //#output(void setDeleteComments(String[])): this.deleteComments
    //#post(void setDeleteComments(String[])): this.deleteComments == deleteComments
    //#post(void setDeleteComments(String[])): init'ed(this.deleteComments)
    }
    //#CommentsBean.java:165: end of method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setDeleteComments(String[])

    public String getApprovedString() {
        return approvedString;
    //#CommentsBean.java:168: method: String org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getApprovedString()
    //#input(String getApprovedString()): this
    //#input(String getApprovedString()): this.approvedString
    //#output(String getApprovedString()): return_value
    //#pre[2] (String getApprovedString()): init'ed(this.approvedString)
    //#post(String getApprovedString()): return_value == this.approvedString
    //#post(String getApprovedString()): init'ed(return_value)
    //#CommentsBean.java:168: end of method: String org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getApprovedString()
    }

    public void setApprovedString(String approvedString) {
        this.approvedString = approvedString;
    //#CommentsBean.java:172: method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setApprovedString(String)
    //#input(void setApprovedString(String)): approvedString
    //#input(void setApprovedString(String)): this
    //#output(void setApprovedString(String)): this.approvedString
    //#post(void setApprovedString(String)): this.approvedString == approvedString
    //#post(void setApprovedString(String)): init'ed(this.approvedString)
    }
    //#CommentsBean.java:173: end of method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setApprovedString(String)

    public int getPage() {
        return page;
    //#CommentsBean.java:176: method: int org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getPage()
    //#input(int getPage()): this
    //#input(int getPage()): this.page
    //#output(int getPage()): return_value
    //#pre[2] (int getPage()): init'ed(this.page)
    //#post(int getPage()): return_value == this.page
    //#post(int getPage()): init'ed(return_value)
    //#CommentsBean.java:176: end of method: int org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getPage()
    }

    public void setPage(int page) {
        this.page = page;
    //#CommentsBean.java:180: method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setPage(int)
    //#input(void setPage(int)): page
    //#input(void setPage(int)): this
    //#output(void setPage(int)): this.page
    //#post(void setPage(int)): this.page == page
    //#post(void setPage(int)): init'ed(this.page)
    }
    //#CommentsBean.java:181: end of method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setPage(int)

    public String getStartDateString() {
        return startDateString;
    //#CommentsBean.java:184: method: String org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getStartDateString()
    //#input(String getStartDateString()): this
    //#input(String getStartDateString()): this.startDateString
    //#output(String getStartDateString()): return_value
    //#pre[2] (String getStartDateString()): init'ed(this.startDateString)
    //#post(String getStartDateString()): return_value == this.startDateString
    //#post(String getStartDateString()): init'ed(return_value)
    //#CommentsBean.java:184: end of method: String org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getStartDateString()
    }

    public void setStartDateString(String startDateString) {
        this.startDateString = startDateString;
    //#CommentsBean.java:188: method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setStartDateString(String)
    //#input(void setStartDateString(String)): startDateString
    //#input(void setStartDateString(String)): this
    //#output(void setStartDateString(String)): this.startDateString
    //#post(void setStartDateString(String)): this.startDateString == startDateString
    //#post(void setStartDateString(String)): init'ed(this.startDateString)
    }
    //#CommentsBean.java:189: end of method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setStartDateString(String)

    public String getEndDateString() {
        return endDateString;
    //#CommentsBean.java:192: method: String org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getEndDateString()
    //#input(String getEndDateString()): this
    //#input(String getEndDateString()): this.endDateString
    //#output(String getEndDateString()): return_value
    //#pre[2] (String getEndDateString()): init'ed(this.endDateString)
    //#post(String getEndDateString()): return_value == this.endDateString
    //#post(String getEndDateString()): init'ed(return_value)
    //#CommentsBean.java:192: end of method: String org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getEndDateString()
    }

    public void setEndDateString(String endDateString) {
        this.endDateString = endDateString;
    //#CommentsBean.java:196: method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setEndDateString(String)
    //#input(void setEndDateString(String)): endDateString
    //#input(void setEndDateString(String)): this
    //#output(void setEndDateString(String)): this.endDateString
    //#post(void setEndDateString(String)): this.endDateString == endDateString
    //#post(void setEndDateString(String)): init'ed(this.endDateString)
    }
    //#CommentsBean.java:197: end of method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setEndDateString(String)

    public String getEntryId() {
        return entryId;
    //#CommentsBean.java:200: method: String org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getEntryId()
    //#input(String getEntryId()): this
    //#input(String getEntryId()): this.entryId
    //#output(String getEntryId()): return_value
    //#pre[2] (String getEntryId()): init'ed(this.entryId)
    //#post(String getEntryId()): return_value == this.entryId
    //#post(String getEntryId()): init'ed(return_value)
    //#CommentsBean.java:200: end of method: String org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.getEntryId()
    }

    public void setEntryId(String entryId) {
        this.entryId = entryId;
    //#CommentsBean.java:204: method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setEntryId(String)
    //#input(void setEntryId(String)): entryId
    //#input(void setEntryId(String)): this
    //#output(void setEntryId(String)): this.entryId
    //#post(void setEntryId(String)): this.entryId == entryId
    //#post(void setEntryId(String)): init'ed(this.entryId)
    }
    //#CommentsBean.java:205: end of method: void org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.setEntryId(String)
    
}
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/CommentsBean]
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getApprovedComments()[Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getApprovedString()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getDeleteComments()[Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getEndDate()Ljava/util/Date;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getEndDateString()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getEntryId()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getIds()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getPage()I
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getSearchString()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getSpamComments()[Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getSpamString()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getStartDate()Ljava/util/Date;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getStartDateString()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getStatus()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.loadCheckboxes(Ljava/util/List;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setApprovedComments([Ljava/lang/String;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setApprovedString(Ljava/lang/String;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setDeleteComments([Ljava/lang/String;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setEndDateString(Ljava/lang/String;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setEntryId(Ljava/lang/String;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setIds(Ljava/lang/String;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setPage(I)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setSearchString(Ljava/lang/String;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setSpamComments([Ljava/lang/String;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setSpamString(Ljava/lang/String;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setStartDateString(Ljava/lang/String;)V
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/CommentsBean] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getApprovedComments()[Ljava/lang/String; == &getApprovedComments
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getApprovedString()Ljava/lang/String; == &getApprovedString
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getDeleteComments()[Ljava/lang/String; == &getDeleteComments
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getEndDate()Ljava/util/Date; == &getEndDate
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getEndDateString()Ljava/lang/String; == &getEndDateString
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getEntryId()Ljava/lang/String; == &getEntryId
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getIds()Ljava/lang/String; == &getIds
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getPage()I == &getPage
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getSearchString()Ljava/lang/String; == &getSearchString
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getSpamComments()[Ljava/lang/String; == &getSpamComments
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getSpamString()Ljava/lang/String; == &getSpamString
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getStartDate()Ljava/util/Date; == &getStartDate
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getStartDateString()Ljava/lang/String; == &getStartDateString
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.getStatus()Ljava/lang/String; == &getStatus
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.loadCheckboxes(Ljava/util/List;)V == &loadCheckboxes
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setApprovedComments([Ljava/lang/String;)V == &setApprovedComments
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setApprovedString(Ljava/lang/String;)V == &setApprovedString
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setDeleteComments([Ljava/lang/String;)V == &setDeleteComments
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setEndDateString(Ljava/lang/String;)V == &setEndDateString
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setEntryId(Ljava/lang/String;)V == &setEntryId
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setIds(Ljava/lang/String;)V == &setIds
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setPage(I)V == &setPage
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setSearchString(Ljava/lang/String;)V == &setSearchString
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setSpamComments([Ljava/lang/String;)V == &setSpamComments
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setSpamString(Ljava/lang/String;)V == &setSpamString
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init): __Dispatch_Table.setStartDateString(Ljava/lang/String;)V == &setStartDateString
    //#CommentsBean.java:: end of method: org.apache.roller.weblogger.ui.struts2.editor.CommentsBean.org.apache.roller.weblogger.ui.struts2.editor.CommentsBean__static_init
    //#CommentsBean.java:: end of class: org.apache.roller.weblogger.ui.struts2.editor.CommentsBean
