//# 0 errors, 197 messages
//#
/*
    //#viewlogsummaryaction.java:1:1: class: net.sourceforge.pebble.web.action.ViewLogSummaryAction
    //#viewlogsummaryaction.java:1:1: method: net.sourceforge.pebble.web.action.ViewLogSummaryAction.net.sourceforge.pebble.web.action.ViewLogSummaryAction__static_init
 * Copyright (c) 2003-2006, Simon Brown
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *   - Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *
 *   - Redistributions in binary form must reproduce the above copyright
 *     notice, this list of conditions and the following disclaimer in
 *     the documentation and/or other materials provided with the
 *     distribution.
 *
 *   - Neither the name of Pebble nor the names of its contributors may
 *     be used to endorse or promote products derived from this software
 *     without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
package net.sourceforge.pebble.web.action;

import net.sourceforge.pebble.Constants;
import net.sourceforge.pebble.domain.Blog;
import net.sourceforge.pebble.domain.Month;
import net.sourceforge.pebble.logging.LogSummary;
import net.sourceforge.pebble.web.view.View;
import net.sourceforge.pebble.web.view.impl.LogSummaryByMonthView;
import net.sourceforge.pebble.web.view.impl.LogSummaryByYearView;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Locale;

/**
 * Gets the contents of the specified log file.
 *
 * @author    Simon Brown
 */
public class ViewLogSummaryAction extends SecureAction {
    //#viewlogsummaryaction.java:54: method: void net.sourceforge.pebble.web.action.ViewLogSummaryAction.net.sourceforge.pebble.web.action.ViewLogSummaryAction()
    //#input(void net.sourceforge.pebble.web.action.ViewLogSummaryAction()): this
    //#viewlogsummaryaction.java:54: end of method: void net.sourceforge.pebble.web.action.ViewLogSummaryAction.net.sourceforge.pebble.web.action.ViewLogSummaryAction()

  /**
   * Peforms the processing associated with this action.
   *
   * @param request  the HttpServletRequest instance
   * @param response the HttpServletResponse instance
   * @return the name of the next view
   */
  public View process(HttpServletRequest request, HttpServletResponse response) throws ServletException {
    Blog blog = (Blog)getModel().get(Constants.BLOG_KEY);
    //#viewlogsummaryaction.java:64: method: View net.sourceforge.pebble.web.action.ViewLogSummaryAction.process(HttpServletRequest, HttpServletResponse)
    //#input(View process(HttpServletRequest, HttpServletResponse)): __Descendant_Table[net/sourceforge/pebble/web/action/ViewLogSummaryAction]
    //#input(View process(HttpServletRequest, HttpServletResponse)): __Descendant_Table[others]
    //#input(View process(HttpServletRequest, HttpServletResponse)): __Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(View process(HttpServletRequest, HttpServletResponse)): java.util.Locale.ENGLISH
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/AbstractLogger.__Descendant_Table[net/sourceforge/pebble/logging/AbstractLogger]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/AbstractLogger.__Descendant_Table[net/sourceforge/pebble/logging/CombinedLogFormatLogger]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/AbstractLogger.__Descendant_Table[net/sourceforge/pebble/logging/NullLogger]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/AbstractLogger.__Descendant_Table[others]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/AbstractLogger.__Dispatch_Table.getLogSummary(I)Lnet/sourceforge/pebble/logging/LogSummary;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/AbstractLogger.__Dispatch_Table.getLogSummary(II)Lnet/sourceforge/pebble/logging/LogSummary;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/AbstractLogger.__Dispatch_Table.getLogSummary(III)Lnet/sourceforge/pebble/logging/LogSummary;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/CombinedLogFormatLogger.__Dispatch_Table.getLogSummary(I)Lnet/sourceforge/pebble/logging/LogSummary;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/CombinedLogFormatLogger.__Dispatch_Table.getLogSummary(II)Lnet/sourceforge/pebble/logging/LogSummary;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/CombinedLogFormatLogger.__Dispatch_Table.getLogSummary(III)Lnet/sourceforge/pebble/logging/LogSummary;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/LogSummary.__Descendant_Table[net/sourceforge/pebble/logging/LogSummaryContainer]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/LogSummaryContainer.__Dispatch_Table.getDate()Ljava/util/Date;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/NullLogger.__Dispatch_Table.getLogSummary(I)Lnet/sourceforge/pebble/logging/LogSummary;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/NullLogger.__Dispatch_Table.getLogSummary(II)Lnet/sourceforge/pebble/logging/LogSummary;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/NullLogger.__Dispatch_Table.getLogSummary(III)Lnet/sourceforge/pebble/logging/LogSummary;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/model/Model.__Descendant_Table[net/sourceforge/pebble/web/model/Model]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/model/Model.__Descendant_Table[others]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/model/Model.__Dispatch_Table.get(Ljava/lang/String;)Ljava/lang/Object;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/model/Model.__Dispatch_Table.put(Ljava/lang/String;Ljava/lang/Object;)V
    //#input(View process(HttpServletRequest, HttpServletResponse)): request
    //#input(View process(HttpServletRequest, HttpServletResponse)): this
    //#input(View process(HttpServletRequest, HttpServletResponse)): this.__Tag
    //#input(View process(HttpServletRequest, HttpServletResponse)): this.model
    //#input(View process(HttpServletRequest, HttpServletResponse)): this.model.__Tag
    //#input(View process(HttpServletRequest, HttpServletResponse)): this.model.data
    //#output(View process(HttpServletRequest, HttpServletResponse)): new LogSummaryByMonthView(process#1) num objects
    //#output(View process(HttpServletRequest, HttpServletResponse)): new LogSummaryByMonthView(process#3) num objects
    //#output(View process(HttpServletRequest, HttpServletResponse)): new LogSummaryByYearView(process#2) num objects
    //#output(View process(HttpServletRequest, HttpServletResponse)): return_value
    //#new obj(View process(HttpServletRequest, HttpServletResponse)): new LogSummaryByMonthView(process#1)
    //#new obj(View process(HttpServletRequest, HttpServletResponse)): new LogSummaryByMonthView(process#3)
    //#new obj(View process(HttpServletRequest, HttpServletResponse)): new LogSummaryByYearView(process#2)
    //#pre[1] (View process(HttpServletRequest, HttpServletResponse)): request != null
    //#pre[3] (View process(HttpServletRequest, HttpServletResponse)): this.__Tag == net/sourceforge/pebble/web/action/ViewLogSummaryAction
    //#pre[4] (View process(HttpServletRequest, HttpServletResponse)): this.model != null
    //#pre[5] (View process(HttpServletRequest, HttpServletResponse)): this.model.__Tag == net/sourceforge/pebble/web/model/Model
    //#pre[6] (View process(HttpServletRequest, HttpServletResponse)): this.model.data != null
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): java.lang.Integer:parseInt(...)@76 >= -2_147_483_647
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): java.util.Calendar:get(...)@79 <= 4_294_967_294
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): java.util.Calendar:get(...)@88 <= 4_294_967_294
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): java.util.HashMap:get(...)@63 != null
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): init'ed(java.util.Locale.ENGLISH)
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): net.sourceforge.pebble.domain.Blog:getBlogForMonth(...)@81 != null
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): net.sourceforge.pebble.domain.Blog:getBlogForThisMonth(...)@90 != null
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): net.sourceforge.pebble.domain.Blog:getCalendar(...)@69 != null
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): net.sourceforge.pebble.domain.Blog:getLogger(...).__Tag@79 in {net/sourceforge/pebble/logging/AbstractLogger, net/sourceforge/pebble/logging/CombinedLogFormatLogger, net/sourceforge/pebble/logging/NullLogger}
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): net.sourceforge.pebble.domain.Blog:getLogger(...).__Tag@84 in {net/sourceforge/pebble/logging/AbstractLogger, net/sourceforge/pebble/logging/CombinedLogFormatLogger, net/sourceforge/pebble/logging/NullLogger}
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): net.sourceforge.pebble.domain.Blog:getLogger(...).__Tag@88 in {net/sourceforge/pebble/logging/AbstractLogger, net/sourceforge/pebble/logging/CombinedLogFormatLogger, net/sourceforge/pebble/logging/NullLogger}
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): net.sourceforge.pebble.domain.Blog:getLogger(...).blog@79 != null
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): net.sourceforge.pebble.domain.Blog:getLogger(...).blog@84 != null
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): net.sourceforge.pebble.domain.Blog:getLogger(...).blog@88 != null
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): net.sourceforge.pebble.domain.Blog:getLogger(...)@79 != null
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): net.sourceforge.pebble.domain.Blog:getLogger(...)@84 != null
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): net.sourceforge.pebble.domain.Blog:getLogger(...)@88 != null
    //#post(View process(HttpServletRequest, HttpServletResponse)): return_value == One-of{&new LogSummaryByMonthView(process#1), &new LogSummaryByYearView(process#2), &new LogSummaryByMonthView(process#3)}
    //#post(View process(HttpServletRequest, HttpServletResponse)): return_value in Addr_Set{&new LogSummaryByMonthView(process#1),&new LogSummaryByYearView(process#2),&new LogSummaryByMonthView(process#3)}
    //#post(View process(HttpServletRequest, HttpServletResponse)): new LogSummaryByMonthView(process#1) num objects <= 1
    //#post(View process(HttpServletRequest, HttpServletResponse)): new LogSummaryByMonthView(process#3) num objects <= 1
    //#post(View process(HttpServletRequest, HttpServletResponse)): new LogSummaryByYearView(process#2) num objects <= 1
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Blog:getBlogForFirstMonth
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Month:getPreviousMonth
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Month:getNextMonth
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Month:before
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.HashMap:put
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Month:getDate
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Blog:getCalendar
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Calendar:getTime
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Date:after
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.HashMap:get
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Calendar:set
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Calendar:getActualMaximum
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.text.SimpleDateFormat:format
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Blog:getLogsDirectory
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.io.File
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.io.File:exists
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.io.FileReader
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.io.BufferedReader
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.io.BufferedReader:readLine
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.io.BufferedReader:close
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.lang.Exception:printStackTrace
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:getLogSummary
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.logging.LogSummary
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.ArrayList
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.List:add
    //#test_vector(View process(HttpServletRequest, HttpServletResponse)): java.lang.String:length(...)@73: {0}, {1..4_294_967_295}
    //#test_vector(View process(HttpServletRequest, HttpServletResponse)): java.lang.String:length(...)@74: {0}, {1..4_294_967_295}
    //#test_vector(View process(HttpServletRequest, HttpServletResponse)): java.lang.String:length(...)@82: {0}, {1..4_294_967_295}
    //#test_vector(View process(HttpServletRequest, HttpServletResponse)): javax.servlet.http.HttpServletRequest:getParameter(...)@66: Addr_Set{null}, Inverse{null}
    //#test_vector(View process(HttpServletRequest, HttpServletResponse)): javax.servlet.http.HttpServletRequest:getParameter(...)@67: Addr_Set{null}, Inverse{null}

    String yearAsStriing = request.getParameter("year");
    String monthAsString = request.getParameter("month");

    Calendar cal = blog.getCalendar();
    //#viewlogsummaryaction.java:69: Warning: method not available
    //#    -- call on Calendar net.sourceforge.pebble.domain.Blog:getCalendar()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.ViewLogSummaryAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: Calendar net.sourceforge.pebble.domain.Blog:getCalendar()
    LogSummary logSummary;
    View view;

    if (yearAsStriing != null && yearAsStriing.length() > 0 &&
        monthAsString != null && monthAsString.length() > 0) {
      int year = Integer.parseInt(yearAsStriing);
      int month = Integer.parseInt(monthAsString)-1;
      cal.set(Calendar.YEAR, year);
      cal.set(Calendar.MONTH, month);
      logSummary = blog.getLogger().getLogSummary(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH)+1);
    //#viewlogsummaryaction.java:79: Warning: method not available
    //#    -- call on AbstractLogger net.sourceforge.pebble.domain.Blog:getLogger()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.ViewLogSummaryAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: AbstractLogger net.sourceforge.pebble.domain.Blog:getLogger()
      view = new LogSummaryByMonthView();
    //#viewlogsummaryaction.java:80: Warning: method not available
    //#    -- call on void net.sourceforge.pebble.web.view.impl.LogSummaryByMonthView()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.ViewLogSummaryAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: void net.sourceforge.pebble.web.view.impl.LogSummaryByMonthView()
      registerObjectsForNavigation(blog, blog.getBlogForMonth(year, month+1));
    //#viewlogsummaryaction.java:81: Warning: method not available
    //#    -- call on Month net.sourceforge.pebble.domain.Blog:getBlogForMonth(int, int)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.ViewLogSummaryAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: Month net.sourceforge.pebble.domain.Blog:getBlogForMonth(int, int)
    } else if (yearAsStriing != null && yearAsStriing.length() > 0) {
      cal.set(Calendar.YEAR, Integer.parseInt(yearAsStriing));
      logSummary = blog.getLogger().getLogSummary(cal.get(Calendar.YEAR));
    //#viewlogsummaryaction.java:84: Warning: method not available
    //#    -- call on AbstractLogger net.sourceforge.pebble.domain.Blog:getLogger()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.ViewLogSummaryAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: AbstractLogger net.sourceforge.pebble.domain.Blog:getLogger()
      view = new LogSummaryByYearView();
    //#viewlogsummaryaction.java:85: Warning: method not available
    //#    -- call on void net.sourceforge.pebble.web.view.impl.LogSummaryByYearView()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.ViewLogSummaryAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: void net.sourceforge.pebble.web.view.impl.LogSummaryByYearView()
    } else {
      // get the log for this monthAsString
      logSummary = blog.getLogger().getLogSummary(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH)+1);
    //#viewlogsummaryaction.java:88: Warning: method not available
    //#    -- call on AbstractLogger net.sourceforge.pebble.domain.Blog:getLogger()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.ViewLogSummaryAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: AbstractLogger net.sourceforge.pebble.domain.Blog:getLogger()
      view = new LogSummaryByMonthView();
    //#viewlogsummaryaction.java:89: Warning: method not available
    //#    -- call on void net.sourceforge.pebble.web.view.impl.LogSummaryByMonthView()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.ViewLogSummaryAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: void net.sourceforge.pebble.web.view.impl.LogSummaryByMonthView()
      registerObjectsForNavigation(blog, blog.getBlogForThisMonth());
    //#viewlogsummaryaction.java:90: Warning: method not available
    //#    -- call on Month net.sourceforge.pebble.domain.Blog:getBlogForThisMonth()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.ViewLogSummaryAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: Month net.sourceforge.pebble.domain.Blog:getBlogForThisMonth()
    }

    SimpleDateFormat yearFormatter = new SimpleDateFormat("yyyy", Locale.ENGLISH);
    yearFormatter.setTimeZone(blog.getTimeZone());
    //#viewlogsummaryaction.java:94: Warning: method not available
    //#    -- call on TimeZone net.sourceforge.pebble.domain.Blog:getTimeZone()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.ViewLogSummaryAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: TimeZone net.sourceforge.pebble.domain.Blog:getTimeZone()
    SimpleDateFormat monthFormatter = new SimpleDateFormat("MM", Locale.ENGLISH);
    monthFormatter.setTimeZone(blog.getTimeZone());
    //#viewlogsummaryaction.java:96: Warning: method not available
    //#    -- call on TimeZone net.sourceforge.pebble.domain.Blog:getTimeZone()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.ViewLogSummaryAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: TimeZone net.sourceforge.pebble.domain.Blog:getTimeZone()
    SimpleDateFormat dayFormatter = new SimpleDateFormat("dd", Locale.ENGLISH);
    dayFormatter.setTimeZone(blog.getTimeZone());
    //#viewlogsummaryaction.java:98: Warning: method not available
    //#    -- call on TimeZone net.sourceforge.pebble.domain.Blog:getTimeZone()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.ViewLogSummaryAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: TimeZone net.sourceforge.pebble.domain.Blog:getTimeZone()
    getModel().put("year", yearFormatter.format(logSummary.getDate()));
    getModel().put("month", monthFormatter.format(logSummary.getDate()));

    getModel().put("logAction", "viewLogSummary");
    getModel().put("logSummary", logSummary);

    return view;
    //#viewlogsummaryaction.java:105: end of method: View net.sourceforge.pebble.web.action.ViewLogSummaryAction.process(HttpServletRequest, HttpServletResponse)
  }

  private void registerObjectsForNavigation(Blog blog, Month month) {
    Month firstMonth = blog.getBlogForFirstMonth();
    //#viewlogsummaryaction.java:109: method: void net.sourceforge.pebble.web.action.ViewLogSummaryAction.registerObjectsForNavigation(Blog, Month)
    //#viewlogsummaryaction.java:109: Warning: method not available
    //#    -- call on Month net.sourceforge.pebble.domain.Blog:getBlogForFirstMonth()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.ViewLogSummaryAction
    //#    method: void registerObjectsForNavigation(Blog, Month)
    //#    unanalyzed callee: Month net.sourceforge.pebble.domain.Blog:getBlogForFirstMonth()
    //#input(void registerObjectsForNavigation(Blog, Month)): __Descendant_Table[net/sourceforge/pebble/web/action/ViewLogSummaryAction]
    //#input(void registerObjectsForNavigation(Blog, Month)): __Descendant_Table[others]
    //#input(void registerObjectsForNavigation(Blog, Month)): __Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(void registerObjectsForNavigation(Blog, Month)): blog
    //#input(void registerObjectsForNavigation(Blog, Month)): month
    //#input(void registerObjectsForNavigation(Blog, Month)): net/sourceforge/pebble/web/model/Model.__Descendant_Table[net/sourceforge/pebble/web/model/Model]
    //#input(void registerObjectsForNavigation(Blog, Month)): net/sourceforge/pebble/web/model/Model.__Descendant_Table[others]
    //#input(void registerObjectsForNavigation(Blog, Month)): net/sourceforge/pebble/web/model/Model.__Dispatch_Table.put(Ljava/lang/String;Ljava/lang/Object;)V
    //#input(void registerObjectsForNavigation(Blog, Month)): this
    //#input(void registerObjectsForNavigation(Blog, Month)): this.__Tag
    //#input(void registerObjectsForNavigation(Blog, Month)): this.model
    //#input(void registerObjectsForNavigation(Blog, Month)): this.model.__Tag
    //#input(void registerObjectsForNavigation(Blog, Month)): this.model.data
    //#pre[1] (void registerObjectsForNavigation(Blog, Month)): blog != null
    //#pre[2] (void registerObjectsForNavigation(Blog, Month)): month != null
    //#pre[4] (void registerObjectsForNavigation(Blog, Month)): this.__Tag == net/sourceforge/pebble/web/action/ViewLogSummaryAction
    //#pre[5] (void registerObjectsForNavigation(Blog, Month)): this.model != null
    //#pre[6] (void registerObjectsForNavigation(Blog, Month)): this.model.__Tag == net/sourceforge/pebble/web/model/Model
    //#pre[7] (void registerObjectsForNavigation(Blog, Month)): this.model.data != null
    //#presumption(void registerObjectsForNavigation(Blog, Month)): net.sourceforge.pebble.domain.Blog:getCalendar(...)@117 != null
    //#presumption(void registerObjectsForNavigation(Blog, Month)): net.sourceforge.pebble.domain.Month:getDate(...)@117 != null
    //#presumption(void registerObjectsForNavigation(Blog, Month)): net.sourceforge.pebble.domain.Month:getNextMonth(...)@111 != null
    //#presumption(void registerObjectsForNavigation(Blog, Month)): net.sourceforge.pebble.domain.Month:getPreviousMonth(...)@110 != null
    //#unanalyzed(void registerObjectsForNavigation(Blog, Month)): Effects-of-calling:java.util.HashMap:put
    //#test_vector(void registerObjectsForNavigation(Blog, Month)): java.util.Date:after(...)@117: {0}, {1}
    //#test_vector(void registerObjectsForNavigation(Blog, Month)): net.sourceforge.pebble.domain.Month:before(...)@113: {1}, {0}
    //#test_vector(void registerObjectsForNavigation(Blog, Month)): net.sourceforge.pebble.domain.Month:before(...)@117: {0}, {1}
    Month previousMonth = month.getPreviousMonth();
    //#viewlogsummaryaction.java:110: Warning: method not available
    //#    -- call on Month net.sourceforge.pebble.domain.Month:getPreviousMonth()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.ViewLogSummaryAction
    //#    method: void registerObjectsForNavigation(Blog, Month)
    //#    unanalyzed callee: Month net.sourceforge.pebble.domain.Month:getPreviousMonth()
    Month nextMonth = month.getNextMonth();
    //#viewlogsummaryaction.java:111: Warning: method not available
    //#    -- call on Month net.sourceforge.pebble.domain.Month:getNextMonth()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.ViewLogSummaryAction
    //#    method: void registerObjectsForNavigation(Blog, Month)
    //#    unanalyzed callee: Month net.sourceforge.pebble.domain.Month:getNextMonth()

    if (!previousMonth.before(firstMonth)) {
    //#viewlogsummaryaction.java:113: Warning: method not available
    //#    -- call on bool net.sourceforge.pebble.domain.Month:before(Month)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.ViewLogSummaryAction
    //#    method: void registerObjectsForNavigation(Blog, Month)
    //#    unanalyzed callee: bool net.sourceforge.pebble.domain.Month:before(Month)
      getModel().put("previousMonth", previousMonth);
    }

    if (!nextMonth.getDate().after(blog.getCalendar().getTime()) || nextMonth.before(firstMonth)) {
    //#viewlogsummaryaction.java:117: Warning: method not available
    //#    -- call on Date net.sourceforge.pebble.domain.Month:getDate()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.ViewLogSummaryAction
    //#    method: void registerObjectsForNavigation(Blog, Month)
    //#    unanalyzed callee: Date net.sourceforge.pebble.domain.Month:getDate()
    //#viewlogsummaryaction.java:117: Warning: method not available
    //#    -- call on Calendar net.sourceforge.pebble.domain.Blog:getCalendar()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.ViewLogSummaryAction
    //#    method: void registerObjectsForNavigation(Blog, Month)
    //#    unanalyzed callee: Calendar net.sourceforge.pebble.domain.Blog:getCalendar()
    //#viewlogsummaryaction.java:117: Warning: method not available
    //#    -- call on bool net.sourceforge.pebble.domain.Month:before(Month)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.ViewLogSummaryAction
    //#    method: void registerObjectsForNavigation(Blog, Month)
    //#    unanalyzed callee: bool net.sourceforge.pebble.domain.Month:before(Month)
      getModel().put("nextMonth", nextMonth);
    }
    getModel().put("displayMode", "logSummaryForMonth");
  }
    //#viewlogsummaryaction.java:121: end of method: void net.sourceforge.pebble.web.action.ViewLogSummaryAction.registerObjectsForNavigation(Blog, Month)

  /**
   * Gets a list of all roles that are allowed to access this action.
   *
   * @return  an array of Strings representing role names
   * @param request
   */
  public String[] getRoles(HttpServletRequest request) {
    return new String[]{Constants.BLOG_ADMIN_ROLE, Constants.BLOG_OWNER_ROLE, Constants.BLOG_PUBLISHER_ROLE, Constants.BLOG_CONTRIBUTOR_ROLE};
    //#viewlogsummaryaction.java:130: method: String[] net.sourceforge.pebble.web.action.ViewLogSummaryAction.getRoles(HttpServletRequest)
    //#input(String[] getRoles(HttpServletRequest)): net.sourceforge.pebble.Constants.BLOG_ADMIN_ROLE
    //#input(String[] getRoles(HttpServletRequest)): net.sourceforge.pebble.Constants.BLOG_CONTRIBUTOR_ROLE
    //#input(String[] getRoles(HttpServletRequest)): net.sourceforge.pebble.Constants.BLOG_OWNER_ROLE
    //#input(String[] getRoles(HttpServletRequest)): net.sourceforge.pebble.Constants.BLOG_PUBLISHER_ROLE
    //#output(String[] getRoles(HttpServletRequest)): new String[](getRoles#1) num objects
    //#output(String[] getRoles(HttpServletRequest)): return_value.length
    //#output(String[] getRoles(HttpServletRequest)): return_value[0]
    //#output(String[] getRoles(HttpServletRequest)): return_value[1]
    //#output(String[] getRoles(HttpServletRequest)): return_value[2]
    //#output(String[] getRoles(HttpServletRequest)): return_value[3]
    //#output(String[] getRoles(HttpServletRequest)): return_value
    //#new obj(String[] getRoles(HttpServletRequest)): new String[](getRoles#1)
    //#presumption(String[] getRoles(HttpServletRequest)): init'ed(net.sourceforge.pebble.Constants.BLOG_ADMIN_ROLE)
    //#presumption(String[] getRoles(HttpServletRequest)): init'ed(net.sourceforge.pebble.Constants.BLOG_CONTRIBUTOR_ROLE)
    //#presumption(String[] getRoles(HttpServletRequest)): init'ed(net.sourceforge.pebble.Constants.BLOG_OWNER_ROLE)
    //#presumption(String[] getRoles(HttpServletRequest)): init'ed(net.sourceforge.pebble.Constants.BLOG_PUBLISHER_ROLE)
    //#post(String[] getRoles(HttpServletRequest)): return_value == &new String[](getRoles#1)
    //#post(String[] getRoles(HttpServletRequest)): new String[](getRoles#1) num objects == 1
    //#post(String[] getRoles(HttpServletRequest)): return_value.length == 4
    //#post(String[] getRoles(HttpServletRequest)): return_value[0] == net.sourceforge.pebble.Constants.BLOG_ADMIN_ROLE
    //#post(String[] getRoles(HttpServletRequest)): (soft) init'ed(return_value[0])
    //#post(String[] getRoles(HttpServletRequest)): return_value[1] == net.sourceforge.pebble.Constants.BLOG_OWNER_ROLE
    //#post(String[] getRoles(HttpServletRequest)): (soft) init'ed(return_value[1])
    //#post(String[] getRoles(HttpServletRequest)): return_value[2] == net.sourceforge.pebble.Constants.BLOG_PUBLISHER_ROLE
    //#post(String[] getRoles(HttpServletRequest)): (soft) init'ed(return_value[2])
    //#post(String[] getRoles(HttpServletRequest)): return_value[3] == net.sourceforge.pebble.Constants.BLOG_CONTRIBUTOR_ROLE
    //#post(String[] getRoles(HttpServletRequest)): (soft) init'ed(return_value[3])
    //#viewlogsummaryaction.java:130: end of method: String[] net.sourceforge.pebble.web.action.ViewLogSummaryAction.getRoles(HttpServletRequest)
  }

}    //#output(net.sourceforge.pebble.web.action.ViewLogSummaryAction__static_init): __Descendant_Table[net/sourceforge/pebble/web/action/ViewLogSummaryAction]
    //#output(net.sourceforge.pebble.web.action.ViewLogSummaryAction__static_init): __Dispatch_Table.getLocalizedString(Ljava/lang/String;)Ljava/lang/String;
    //#output(net.sourceforge.pebble.web.action.ViewLogSummaryAction__static_init): __Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#output(net.sourceforge.pebble.web.action.ViewLogSummaryAction__static_init): __Dispatch_Table.getRoles(Ljavax/servlet/http/HttpServletRequest;)[Ljava/lang/String;
    //#output(net.sourceforge.pebble.web.action.ViewLogSummaryAction__static_init): __Dispatch_Table.process(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Lnet/sourceforge/pebble/web/view/View;
    //#output(net.sourceforge.pebble.web.action.ViewLogSummaryAction__static_init): __Dispatch_Table.registerObjectsForNavigation(Lnet/sourceforge/pebble/domain/Blog;Lnet/sourceforge/pebble/domain/Month;)V
    //#output(net.sourceforge.pebble.web.action.ViewLogSummaryAction__static_init): __Dispatch_Table.setModel(Lnet/sourceforge/pebble/web/model/Model;)V
    //#output(net.sourceforge.pebble.web.action.ViewLogSummaryAction__static_init): net/sourceforge/pebble/web/action/Action.__Descendant_Table[net/sourceforge/pebble/web/action/ViewLogSummaryAction]
    //#output(net.sourceforge.pebble.web.action.ViewLogSummaryAction__static_init): net/sourceforge/pebble/web/action/SecureAction.__Descendant_Table[net/sourceforge/pebble/web/action/ViewLogSummaryAction]
    //#post(net.sourceforge.pebble.web.action.ViewLogSummaryAction__static_init): __Descendant_Table[net/sourceforge/pebble/web/action/ViewLogSummaryAction] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.action.ViewLogSummaryAction__static_init): net/sourceforge/pebble/web/action/Action.__Descendant_Table[net/sourceforge/pebble/web/action/ViewLogSummaryAction] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.action.ViewLogSummaryAction__static_init): net/sourceforge/pebble/web/action/SecureAction.__Descendant_Table[net/sourceforge/pebble/web/action/ViewLogSummaryAction] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.action.ViewLogSummaryAction__static_init): __Dispatch_Table.getLocalizedString(Ljava/lang/String;)Ljava/lang/String; == &net/sourceforge/pebble/web/action/Action.getLocalizedString
    //#post(net.sourceforge.pebble.web.action.ViewLogSummaryAction__static_init): __Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model; == &net/sourceforge/pebble/web/action/Action.getModel
    //#post(net.sourceforge.pebble.web.action.ViewLogSummaryAction__static_init): __Dispatch_Table.getRoles(Ljavax/servlet/http/HttpServletRequest;)[Ljava/lang/String; == &getRoles
    //#post(net.sourceforge.pebble.web.action.ViewLogSummaryAction__static_init): __Dispatch_Table.process(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Lnet/sourceforge/pebble/web/view/View; == &process
    //#post(net.sourceforge.pebble.web.action.ViewLogSummaryAction__static_init): __Dispatch_Table.registerObjectsForNavigation(Lnet/sourceforge/pebble/domain/Blog;Lnet/sourceforge/pebble/domain/Month;)V == &registerObjectsForNavigation
    //#post(net.sourceforge.pebble.web.action.ViewLogSummaryAction__static_init): __Dispatch_Table.setModel(Lnet/sourceforge/pebble/web/model/Model;)V == &net/sourceforge/pebble/web/action/Action.setModel
    //#viewlogsummaryaction.java:: end of method: net.sourceforge.pebble.web.action.ViewLogSummaryAction.net.sourceforge.pebble.web.action.ViewLogSummaryAction__static_init
    //#viewlogsummaryaction.java:: end of class: net.sourceforge.pebble.web.action.ViewLogSummaryAction
