//# 0 errors, 202 messages
//#
/*
    //#utilitiesaction.java:1:1: class: net.sourceforge.pebble.web.action.UtilitiesAction$UtilitiesCondition
    //#utilitiesaction.java:1:1: method: net.sourceforge.pebble.web.action.UtilitiesAction$UtilitiesCondition.net.sourceforge.pebble.web.action.UtilitiesAction$UtilitiesCondition__static_init
    //#utilitiesaction.java:1:1: class: net.sourceforge.pebble.web.action.UtilitiesAction
    //#utilitiesaction.java:1:1: method: net.sourceforge.pebble.web.action.UtilitiesAction.net.sourceforge.pebble.web.action.UtilitiesAction__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.Category;
import net.sourceforge.pebble.domain.Blog;
import net.sourceforge.pebble.util.Utilities;
import net.sourceforge.pebble.web.security.RequireSecurityToken;
import net.sourceforge.pebble.web.security.SecurityTokenValidatorCondition;
import net.sourceforge.pebble.web.view.ForwardView;
import net.sourceforge.pebble.web.view.View;
import net.sourceforge.pebble.web.view.impl.UtilitiesView;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Utilities for the current blog, such as those useful for moving
 * between versions of Pebble.
 *
 * @author    Simon Brown
 */
@RequireSecurityToken(UtilitiesAction.UtilitiesCondition.class)
public class UtilitiesAction extends SecureAction {
    //#utilitiesaction.java:55: method: void net.sourceforge.pebble.web.action.UtilitiesAction.net.sourceforge.pebble.web.action.UtilitiesAction()
    //#input(void net.sourceforge.pebble.web.action.UtilitiesAction()): this
    //#utilitiesaction.java:55: end of method: void net.sourceforge.pebble.web.action.UtilitiesAction.net.sourceforge.pebble.web.action.UtilitiesAction()

  /**
   * 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);
    //#utilitiesaction.java:65: method: View net.sourceforge.pebble.web.action.UtilitiesAction.process(HttpServletRequest, HttpServletResponse)
    //#input(View process(HttpServletRequest, HttpServletResponse)): __Descendant_Table[net/sourceforge/pebble/web/action/UtilitiesAction]
    //#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)): net/sourceforge/pebble/util/Utilities.log
    //#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)): 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 ForwardView(process#1) num objects
    //#output(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#1).__Tag
    //#output(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#1).uri
    //#output(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#2) num objects
    //#output(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#2).__Tag
    //#output(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#2).uri
    //#output(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#3) num objects
    //#output(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#3).__Tag
    //#output(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#3).uri
    //#output(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#4) num objects
    //#output(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#4).__Tag
    //#output(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#4).uri
    //#output(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#5) num objects
    //#output(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#5).__Tag
    //#output(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#5).uri
    //#output(View process(HttpServletRequest, HttpServletResponse)): new UtilitiesView(process#6) num objects
    //#output(View process(HttpServletRequest, HttpServletResponse)): return_value
    //#new obj(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#1)
    //#new obj(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#2)
    //#new obj(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#3)
    //#new obj(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#4)
    //#new obj(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#5)
    //#new obj(View process(HttpServletRequest, HttpServletResponse)): new UtilitiesView(process#6)
    //#pre[1] (View process(HttpServletRequest, HttpServletResponse)): request != null
    //#pre[3] (View process(HttpServletRequest, HttpServletResponse)): this.__Tag == net/sourceforge/pebble/web/action/UtilitiesAction
    //#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.util.HashMap:get(...)@63 != null
    //#post(View process(HttpServletRequest, HttpServletResponse)): return_value in Addr_Set{&new ForwardView(process#5),&new ForwardView(process#4),&new ForwardView(process#3),&new ForwardView(process#2),&new ForwardView(process#1),&new UtilitiesView(process#6)}
    //#post(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#1) num objects <= 1
    //#post(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#1).__Tag == net/sourceforge/pebble/web/view/ForwardView
    //#post(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#1).uri == &".reloadBlog.secureaction"
    //#post(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#2) num objects <= 1
    //#post(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#2).__Tag == net/sourceforge/pebble/web/view/ForwardView
    //#post(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#2).uri == &".reloadBlog.secureaction"
    //#post(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#3) num objects <= 1
    //#post(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#3).__Tag == net/sourceforge/pebble/web/view/ForwardView
    //#post(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#3).uri == &".reloadBlog.secureaction"
    //#post(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#4) num objects <= 1
    //#post(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#4).__Tag == net/sourceforge/pebble/web/view/ForwardView
    //#post(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#4).uri == &".reloadBlog.secureaction"
    //#post(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#5) num objects <= 1
    //#post(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#5).__Tag == net/sourceforge/pebble/web/view/ForwardView
    //#post(View process(HttpServletRequest, HttpServletResponse)): new ForwardView(process#5).uri == &".reloadBlog.secureaction"
    //#post(View process(HttpServletRequest, HttpServletResponse)): new UtilitiesView(process#6) num objects <= 1
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.HashMap:get
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:org.apache.commons.logging.Log:info
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Blog:getBlogEntries
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.List:iterator
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.event.response.IpAddressListener
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Iterator:hasNext
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Iterator:next
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.BlogEntry:getTitle
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.BlogEntry:getDate
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.lang.StringBuilder:toString
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.BlogEntry:getComments
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Comment:isApproved
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.api.event.comment.CommentEvent
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.event.response.IpAddressListener:commentApproved
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Comment:isRejected
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.event.response.IpAddressListener:commentRejected
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.BlogEntry:getTrackBacks
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.TrackBack:isApproved
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.api.event.trackback.TrackBackEvent
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.event.response.IpAddressListener:trackBackApproved
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.TrackBack:isRejected
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.event.response.IpAddressListener:trackBackRejected
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.web.view.View
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Comment:getBody
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.lang.String:replaceAll
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Comment:setBody
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.TrackBack:getExcerpt
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.TrackBack:setExcerpt
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.BlogService
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.BlogService:putBlogEntry
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:org.apache.commons.logging.Log:error
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Blog:reindex
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Properties
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Blog:getRoot
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.io.File
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.io.FileInputStream
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Properties:load
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.io.FileInputStream:close
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Properties:keySet
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Set:iterator
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Properties:getProperty
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.lang.String:startsWith
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Category
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Blog:addCategory
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.dao.DAOFactory:getConfiguredFactory
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.dao.DAOFactory:getCategoryDAO
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.dao.CategoryDAO:addCategory
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.TimeZone:getTimeZone
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.dao.file.FileBlogEntryDAO
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.dao.file.FourDigitFilenameFilter
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.io.File:listFiles
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.dao.file.TwoDigitFilenameFilter
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.dao.file.BlogEntryFilenameFilter
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.io.File:getName
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.lang.String:indexOf
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.lang.String:substring
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.dao.file.FileBlogEntryDAO:getPath
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.io.File:equals
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.io.File:getAbsolutePath
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.io.File:mkdirs
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.io.File:renameTo
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.BlogEntry:getCategories
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Collection:contains
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Collection:remove
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Collection:add
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.BlogEntry:setCategories
    //#test_vector(View process(HttpServletRequest, HttpServletResponse)): java.lang.String:equalsIgnoreCase(...)@69: {0}, {1}
    //#test_vector(View process(HttpServletRequest, HttpServletResponse)): java.lang.String:equalsIgnoreCase(...)@72: {0}, {1}
    //#test_vector(View process(HttpServletRequest, HttpServletResponse)): java.lang.String:equalsIgnoreCase(...)@75: {0}, {1}
    //#test_vector(View process(HttpServletRequest, HttpServletResponse)): java.lang.String:equalsIgnoreCase(...)@78: {0}, {1}
    //#test_vector(View process(HttpServletRequest, HttpServletResponse)): java.lang.String:equalsIgnoreCase(...)@81: {0}, {1}
    //#test_vector(View process(HttpServletRequest, HttpServletResponse)): java.lang.String:equalsIgnoreCase(...)@85: {0}, {1}
    //#test_vector(View process(HttpServletRequest, HttpServletResponse)): javax.servlet.http.HttpServletRequest:getParameter(...)@66: Addr_Set{null}, Inverse{null}
    //#test_vector(View process(HttpServletRequest, HttpServletResponse)): net.sourceforge.pebble.domain.Blog:getCategory(...)@86: Addr_Set{null}, Inverse{null}
    //#test_vector(View process(HttpServletRequest, HttpServletResponse)): net.sourceforge.pebble.domain.Blog:getCategory(...)@87: Addr_Set{null}, Inverse{null}
    String action = request.getParameter("action");
    if (action == null) {
      // do nothing
    } else if (action.equalsIgnoreCase("ipAddressListener")) {
      Utilities.buildIpAddressLists(blog);
      return new ForwardView("/reloadBlog.secureaction");
    } else if (action.equalsIgnoreCase("fixHtmlInResponses")) {
      Utilities.fixHtmlInResponses(blog);
      return new ForwardView("/reloadBlog.secureaction");
    } else if (action.equalsIgnoreCase("buildIndexes")) {
      Utilities.buildIndexes(blog);
      return new ForwardView("/reloadBlog.secureaction");
    } else if (action.equalsIgnoreCase("convertCategories")) {
      Utilities.convertCategories(blog);
      return new ForwardView("/reloadBlog.secureaction");
    } else if (action.equalsIgnoreCase("restructureBlogToGMT")) {
      Utilities.restructureBlogToGMT(blog);
      Utilities.buildIndexes(blog);
      return new ForwardView("/reloadBlog.secureaction");
    } else if (action.equalsIgnoreCase("moveBlogEntriesFromCategory")) {
      Category from = blog.getCategory(request.getParameter("from"));
    //#utilitiesaction.java:86: Warning: method not available
    //#    -- call on Category net.sourceforge.pebble.domain.Blog:getCategory(String)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.UtilitiesAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: Category net.sourceforge.pebble.domain.Blog:getCategory(String)
      Category to = blog.getCategory(request.getParameter("to"));
    //#utilitiesaction.java:87: Warning: method not available
    //#    -- call on Category net.sourceforge.pebble.domain.Blog:getCategory(String)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.UtilitiesAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: Category net.sourceforge.pebble.domain.Blog:getCategory(String)
      if (from != null && to != null) {
        Utilities.moveBlogEntriesFromCategory(blog, from, to);
      }
    }

    return new UtilitiesView();
    //#utilitiesaction.java:93: Warning: method not available
    //#    -- call on void net.sourceforge.pebble.web.view.impl.UtilitiesView()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.UtilitiesAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: void net.sourceforge.pebble.web.view.impl.UtilitiesView()
    //#utilitiesaction.java:93: end of method: View net.sourceforge.pebble.web.action.UtilitiesAction.process(HttpServletRequest, HttpServletResponse)
  }

  /**
   * 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};
    //#utilitiesaction.java:103: method: String[] net.sourceforge.pebble.web.action.UtilitiesAction.getRoles(HttpServletRequest)
    //#input(String[] getRoles(HttpServletRequest)): net.sourceforge.pebble.Constants.BLOG_ADMIN_ROLE
    //#input(String[] getRoles(HttpServletRequest)): net.sourceforge.pebble.Constants.BLOG_OWNER_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
    //#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_OWNER_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 == 2
    //#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])
    //#utilitiesaction.java:103: end of method: String[] net.sourceforge.pebble.web.action.UtilitiesAction.getRoles(HttpServletRequest)
  }

  public static class UtilitiesCondition implements SecurityTokenValidatorCondition {
    //#utilitiesaction.java:106: method: void net.sourceforge.pebble.web.action.UtilitiesAction$UtilitiesCondition.net.sourceforge.pebble.web.action.UtilitiesAction$UtilitiesCondition()
    //#utilitiesaction.java:106: end of method: void net.sourceforge.pebble.web.action.UtilitiesAction$UtilitiesCondition.net.sourceforge.pebble.web.action.UtilitiesAction$UtilitiesCondition()
    public boolean shouldValidate(HttpServletRequest request) {
      // Only validate if we have an action, so return true if the action is not null
      return request.getParameter("action") != null;
    //#utilitiesaction.java:109: method: bool net.sourceforge.pebble.web.action.UtilitiesAction$UtilitiesCondition.shouldValidate(HttpServletRequest)
    //#input(bool shouldValidate(HttpServletRequest)): request
    //#output(bool shouldValidate(HttpServletRequest)): return_value
    //#pre[1] (bool shouldValidate(HttpServletRequest)): request != null
    //#post(bool shouldValidate(HttpServletRequest)): init'ed(return_value)
    //#test_vector(bool shouldValidate(HttpServletRequest)): javax.servlet.http.HttpServletRequest:getParameter(...)@109: Addr_Set{null}, Inverse{null}
    //#utilitiesaction.java:109: end of method: bool net.sourceforge.pebble.web.action.UtilitiesAction$UtilitiesCondition.shouldValidate(HttpServletRequest)
    }
  }
}    //#output(net.sourceforge.pebble.web.action.UtilitiesAction$UtilitiesCondition__static_init): __Descendant_Table[net/sourceforge/pebble/web/action/UtilitiesAction$UtilitiesCondition]
    //#output(net.sourceforge.pebble.web.action.UtilitiesAction$UtilitiesCondition__static_init): __Dispatch_Table.shouldValidate(Ljavax/servlet/http/HttpServletRequest;)Z
    //#output(net.sourceforge.pebble.web.action.UtilitiesAction$UtilitiesCondition__static_init): net/sourceforge/pebble/web/security/SecurityTokenValidatorCondition.__Descendant_Table[net/sourceforge/pebble/web/action/UtilitiesAction$UtilitiesCondition]
    //#post(net.sourceforge.pebble.web.action.UtilitiesAction$UtilitiesCondition__static_init): __Descendant_Table[net/sourceforge/pebble/web/action/UtilitiesAction$UtilitiesCondition] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.action.UtilitiesAction$UtilitiesCondition__static_init): net/sourceforge/pebble/web/security/SecurityTokenValidatorCondition.__Descendant_Table[net/sourceforge/pebble/web/action/UtilitiesAction$UtilitiesCondition] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.action.UtilitiesAction$UtilitiesCondition__static_init): __Dispatch_Table.shouldValidate(Ljavax/servlet/http/HttpServletRequest;)Z == &shouldValidate
    //#utilitiesaction.java:: end of method: net.sourceforge.pebble.web.action.UtilitiesAction$UtilitiesCondition.net.sourceforge.pebble.web.action.UtilitiesAction$UtilitiesCondition__static_init
    //#utilitiesaction.java:: end of class: net.sourceforge.pebble.web.action.UtilitiesAction$UtilitiesCondition
    //#output(net.sourceforge.pebble.web.action.UtilitiesAction__static_init): __Descendant_Table[net/sourceforge/pebble/web/action/UtilitiesAction]
    //#output(net.sourceforge.pebble.web.action.UtilitiesAction__static_init): __Dispatch_Table.getLocalizedString(Ljava/lang/String;)Ljava/lang/String;
    //#output(net.sourceforge.pebble.web.action.UtilitiesAction__static_init): __Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#output(net.sourceforge.pebble.web.action.UtilitiesAction__static_init): __Dispatch_Table.getRoles(Ljavax/servlet/http/HttpServletRequest;)[Ljava/lang/String;
    //#output(net.sourceforge.pebble.web.action.UtilitiesAction__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.UtilitiesAction__static_init): __Dispatch_Table.setModel(Lnet/sourceforge/pebble/web/model/Model;)V
    //#output(net.sourceforge.pebble.web.action.UtilitiesAction__static_init): net/sourceforge/pebble/web/action/Action.__Descendant_Table[net/sourceforge/pebble/web/action/UtilitiesAction]
    //#output(net.sourceforge.pebble.web.action.UtilitiesAction__static_init): net/sourceforge/pebble/web/action/SecureAction.__Descendant_Table[net/sourceforge/pebble/web/action/UtilitiesAction]
    //#post(net.sourceforge.pebble.web.action.UtilitiesAction__static_init): __Descendant_Table[net/sourceforge/pebble/web/action/UtilitiesAction] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.action.UtilitiesAction__static_init): net/sourceforge/pebble/web/action/Action.__Descendant_Table[net/sourceforge/pebble/web/action/UtilitiesAction] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.action.UtilitiesAction__static_init): net/sourceforge/pebble/web/action/SecureAction.__Descendant_Table[net/sourceforge/pebble/web/action/UtilitiesAction] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.action.UtilitiesAction__static_init): __Dispatch_Table.getLocalizedString(Ljava/lang/String;)Ljava/lang/String; == &net/sourceforge/pebble/web/action/Action.getLocalizedString
    //#post(net.sourceforge.pebble.web.action.UtilitiesAction__static_init): __Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model; == &net/sourceforge/pebble/web/action/Action.getModel
    //#post(net.sourceforge.pebble.web.action.UtilitiesAction__static_init): __Dispatch_Table.getRoles(Ljavax/servlet/http/HttpServletRequest;)[Ljava/lang/String; == &getRoles
    //#post(net.sourceforge.pebble.web.action.UtilitiesAction__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.UtilitiesAction__static_init): __Dispatch_Table.setModel(Lnet/sourceforge/pebble/web/model/Model;)V == &net/sourceforge/pebble/web/action/Action.setModel
    //#utilitiesaction.java:: end of method: net.sourceforge.pebble.web.action.UtilitiesAction.net.sourceforge.pebble.web.action.UtilitiesAction__static_init
    //#utilitiesaction.java:: end of class: net.sourceforge.pebble.web.action.UtilitiesAction
