//# 0 errors, 432 messages
//#
/*
    //#EntryAdd.java:1:1: class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
 * 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.sql.Timestamp;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.roller.weblogger.WebloggerException;
import org.apache.roller.weblogger.business.WebloggerFactory;
import org.apache.roller.weblogger.business.WeblogManager;
import org.apache.roller.weblogger.pojos.WeblogPermission;
import org.apache.roller.weblogger.pojos.WeblogEntry;
import org.apache.roller.weblogger.util.MediacastException;
import org.apache.roller.weblogger.util.cache.CacheManager;
import org.apache.roller.weblogger.util.MailUtil;
import org.apache.commons.lang.StringUtils;
import org.apache.roller.weblogger.pojos.WeblogCategory;
import org.apache.roller.weblogger.util.MediacastResource;
import org.apache.roller.weblogger.util.MediacastUtil;
import org.apache.struts2.interceptor.validation.SkipValidation;


/**
 * Add a new weblog entry.
 */
public final class EntryAdd extends EntryBase {
    
    private static Log log = LogFactory.getLog(EntryAdd.class);
    //#EntryAdd.java:47: method: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd.org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init
    //#EntryAdd.java:47: Warning: method not available
    //#    -- call on Log org.apache.commons.logging.LogFactory:getLog(Class)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init
    //#    unanalyzed callee: Log org.apache.commons.logging.LogFactory:getLog(Class)
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/EntryAdd]
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.execute()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.getBean()Lorg/apache/roller/weblogger/ui/struts2/editor/EntryBean;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.getCategories()Ljava/util/List;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.getEditor()Lorg/apache/roller/weblogger/ui/core/plugins/WeblogEntryEditor;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.getEntryPlugins()Ljava/util/List;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.getJsonAutocompleteUrl()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.getRecentDraftEntries()Ljava/util/List;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.getRecentPendingEntries()Ljava/util/List;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.getRecentPublishedEntries()Ljava/util/List;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.getRecentScheduledEntries()Ljava/util/List;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.isUserAnAuthor()Z
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.reindexEntry(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.requiredWeblogPermissions()S
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.save()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.setBean(Lorg/apache/roller/weblogger/ui/struts2/editor/EntryBean;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): log
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): org/apache/roller/weblogger/ui/struts2/editor/EntryBase.__Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/EntryAdd]
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/EntryAdd] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): org/apache/roller/weblogger/ui/struts2/editor/EntryBase.__Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/EntryAdd] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.execute()Ljava/lang/String; == &execute
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.getBean()Lorg/apache/roller/weblogger/ui/struts2/editor/EntryBean; == &getBean
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.getCategories()Ljava/util/List; == &getCategories
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.getEditor()Lorg/apache/roller/weblogger/ui/core/plugins/WeblogEntryEditor; == &org/apache/roller/weblogger/ui/struts2/editor/EntryBase.getEditor
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.getEntryPlugins()Ljava/util/List; == &org/apache/roller/weblogger/ui/struts2/editor/EntryBase.getEntryPlugins
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.getJsonAutocompleteUrl()Ljava/lang/String; == &org/apache/roller/weblogger/ui/struts2/editor/EntryBase.getJsonAutocompleteUrl
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.getRecentDraftEntries()Ljava/util/List; == &org/apache/roller/weblogger/ui/struts2/editor/EntryBase.getRecentDraftEntries
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.getRecentPendingEntries()Ljava/util/List; == &org/apache/roller/weblogger/ui/struts2/editor/EntryBase.getRecentPendingEntries
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.getRecentPublishedEntries()Ljava/util/List; == &org/apache/roller/weblogger/ui/struts2/editor/EntryBase.getRecentPublishedEntries
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.getRecentScheduledEntries()Ljava/util/List; == &org/apache/roller/weblogger/ui/struts2/editor/EntryBase.getRecentScheduledEntries
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.isUserAnAuthor()Z == &org/apache/roller/weblogger/ui/struts2/editor/EntryBase.isUserAnAuthor
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.reindexEntry(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V == &org/apache/roller/weblogger/ui/struts2/editor/EntryBase.reindexEntry
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.requiredWeblogPermissions()S == &requiredWeblogPermissions
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.save()Ljava/lang/String; == &save
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): __Dispatch_Table.setBean(Lorg/apache/roller/weblogger/ui/struts2/editor/EntryBean;)V == &setBean
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init): init'ed(log)
    //#EntryAdd.java:47: end of method: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd.org.apache.roller.weblogger.ui.struts2.editor.EntryAdd__static_init
    
    // bean for managing form data
    private EntryBean bean = new EntryBean();
    
    
    public EntryAdd() {
    //#EntryAdd.java:53: method: void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd.org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()
    //#input(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): new EntryBean(EntryAdd#1) num objects
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.__Tag
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.allowComments
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.categoryId
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.commentCount
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.commentDays
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.dateString
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.enclosureURL
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.hours
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.id
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.locale
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.minutes
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.pinnedToMain
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.plugins
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.rightToLeft
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.seconds
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.status
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.summary
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.tagsString
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.text
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.title
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.weblogHandle
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): new Integer(EntryBean#1) num objects
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.actionName
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.desiredMenu
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.pageTitle
    //#new obj(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): new EntryBean(EntryAdd#1)
    //#new obj(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): new Integer(EntryBean#1)
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.actionName == &"entryAdd"
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean == &new EntryBean(EntryAdd#1)
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.desiredMenu == &"editor"
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.pageTitle == &"weblogEdit.title.newEntry"
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): new EntryBean(EntryAdd#1) num objects == 1
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.allowComments == 1
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): new Integer(EntryBean#1) num objects == 1
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.__Tag == org/apache/roller/weblogger/ui/struts2/editor/EntryBean
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.categoryId == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.dateString == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.enclosureURL == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.id == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.locale == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.plugins == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.status == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.summary == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.tagsString == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.text == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.title == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.weblogHandle == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.commentCount == 0
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.hours == 0
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.minutes == 0
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.pinnedToMain == 0
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.rightToLeft == 0
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.seconds == 0
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): this.bean.commentDays == &new Integer(EntryBean#1)
    //#unanalyzed(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): Effects-of-calling:org.apache.roller.weblogger.ui.struts2.util.UIAction
    //#unanalyzed(void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()): Effects-of-calling:java.lang.Integer
        this.actionName = "entryAdd";
        this.desiredMenu = "editor";
        this.pageTitle = "weblogEdit.title.newEntry";
    }
    //#EntryAdd.java:57: end of method: void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd.org.apache.roller.weblogger.ui.struts2.editor.EntryAdd()
    
    
    @Override
    public short requiredWeblogPermissions() {
        return WeblogPermission.LIMITED;
    //#EntryAdd.java:62: method: short org.apache.roller.weblogger.ui.struts2.editor.EntryAdd.requiredWeblogPermissions()
    //#input(short requiredWeblogPermissions()): org.apache.roller.weblogger.pojos.WeblogPermission.LIMITED
    //#output(short requiredWeblogPermissions()): return_value
    //#presumption(short requiredWeblogPermissions()): init'ed(org.apache.roller.weblogger.pojos.WeblogPermission.LIMITED)
    //#post(short requiredWeblogPermissions()): return_value == org.apache.roller.weblogger.pojos.WeblogPermission.LIMITED
    //#post(short requiredWeblogPermissions()): (soft) init'ed(return_value)
    //#EntryAdd.java:62: end of method: short org.apache.roller.weblogger.ui.struts2.editor.EntryAdd.requiredWeblogPermissions()
    }
    
    
    /**
     * Show form for adding a new weblog entry.
     * 
     * @return String The result of the action.
     */
    @SkipValidation
    public String execute() {
        
        // if user is an author then post status defaults to PUBLISHED, otherwise PENDING
        if(getActionWeblog().hasUserPermissions(getAuthenticatedUser(),WeblogPermission.AUTHOR)) {
    //#EntryAdd.java:75: method: String org.apache.roller.weblogger.ui.struts2.editor.EntryAdd.execute()
    //#EntryAdd.java:75: Warning: method not available
    //#    -- call on Weblog org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String execute()
    //#    unanalyzed callee: Weblog org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog()
    //#EntryAdd.java:75: Warning: method not available
    //#    -- call on User org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getAuthenticatedUser()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String execute()
    //#    unanalyzed callee: User org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getAuthenticatedUser()
    //#EntryAdd.java:75: Warning: method not available
    //#    -- call on bool org.apache.roller.weblogger.pojos.Weblog:hasUserPermissions(User, short)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String execute()
    //#    unanalyzed callee: bool org.apache.roller.weblogger.pojos.Weblog:hasUserPermissions(User, short)
    //#input(String execute()): org.apache.roller.weblogger.pojos.WeblogPermission.AUTHOR
    //#input(String execute()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/EntryBean]
    //#input(String execute()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Descendant_Table[others]
    //#input(String execute()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.setAllowComments(Z)V
    //#input(String execute()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.setCommentDays(Ljava/lang/Integer;)V
    //#input(String execute()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.setLocale(Ljava/lang/String;)V
    //#input(String execute()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.setPlugins([Ljava/lang/String;)V
    //#input(String execute()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.setStatus(Ljava/lang/String;)V
    //#input(String execute()): this
    //#input(String execute()): this.bean
    //#input(String execute()): this.bean.__Tag
    //#output(String execute()): new Integer(execute#1) num objects
    //#output(String execute()): return_value
    //#output(String execute()): this.bean.allowComments
    //#output(String execute()): this.bean.commentDays
    //#output(String execute()): this.bean.locale
    //#output(String execute()): this.bean.plugins
    //#output(String execute()): this.bean.status
    //#new obj(String execute()): new Integer(execute#1)
    //#pre[3] (String execute()): this.bean != null
    //#pre[4] (String execute()): this.bean.__Tag == org/apache/roller/weblogger/ui/struts2/editor/EntryBean
    //#presumption(String execute()): org.apache.roller.weblogger.pojos.Weblog:getDefaultAllowComments(...)@85 != null
    //#presumption(String execute()): init'ed(org.apache.roller.weblogger.pojos.WeblogPermission.AUTHOR)
    //#presumption(String execute()): org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog(...)@75 != null
    //#presumption(String execute()): org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog(...)@82 != null
    //#presumption(String execute()): org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog(...)@85 != null
    //#presumption(String execute()): org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog(...)@86 != null
    //#presumption(String execute()): org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog(...)@89 != null
    //#presumption(String execute()): org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog(...)@90 != null
    //#post(String execute()): return_value == &"input"
    //#post(String execute()): init'ed(this.bean.allowComments)
    //#post(String execute()): this.bean.commentDays == &new Integer(execute#1)
    //#post(String execute()): init'ed(this.bean.locale)
    //#post(String execute()): possibly_updated(this.bean.plugins)
    //#post(String execute()): this.bean.status in Addr_Set{&"PENDING",&"PUBLISHED"}
    //#post(String execute()): new Integer(execute#1) num objects == 1
    //#test_vector(String execute()): org.apache.roller.weblogger.pojos.Weblog:getDefaultPlugins(...)@89: Addr_Set{null}, Inverse{null}
    //#test_vector(String execute()): org.apache.roller.weblogger.pojos.Weblog:hasUserPermissions(...)@75: {0}, {1}
            getBean().setStatus(WeblogEntry.PUBLISHED);
        } else {
            getBean().setStatus(WeblogEntry.PENDING);
        }
        
        // set entry locale based on weblog locale
        getBean().setLocale(getActionWeblog().getLocale());
    //#EntryAdd.java:82: Warning: method not available
    //#    -- call on Weblog org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String execute()
    //#    unanalyzed callee: Weblog org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog()
    //#EntryAdd.java:82: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.Weblog:getLocale()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String execute()
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.Weblog:getLocale()
        
        // set comment defaults
        getBean().setAllowComments(getActionWeblog().getDefaultAllowComments());
    //#EntryAdd.java:85: Warning: method not available
    //#    -- call on Weblog org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String execute()
    //#    unanalyzed callee: Weblog org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog()
    //#EntryAdd.java:85: Warning: method not available
    //#    -- call on Boolean org.apache.roller.weblogger.pojos.Weblog:getDefaultAllowComments()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String execute()
    //#    unanalyzed callee: Boolean org.apache.roller.weblogger.pojos.Weblog:getDefaultAllowComments()
        getBean().setCommentDays(new Integer(getActionWeblog().getDefaultCommentDays()));
    //#EntryAdd.java:86: Warning: method not available
    //#    -- call on Weblog org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String execute()
    //#    unanalyzed callee: Weblog org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog()
    //#EntryAdd.java:86: Warning: method not available
    //#    -- call on int org.apache.roller.weblogger.pojos.Weblog:getDefaultCommentDays()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String execute()
    //#    unanalyzed callee: int org.apache.roller.weblogger.pojos.Weblog:getDefaultCommentDays()
        
        // apply weblog default plugins
        if(getActionWeblog().getDefaultPlugins() != null) {
    //#EntryAdd.java:89: Warning: method not available
    //#    -- call on Weblog org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String execute()
    //#    unanalyzed callee: Weblog org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog()
    //#EntryAdd.java:89: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.Weblog:getDefaultPlugins()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String execute()
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.Weblog:getDefaultPlugins()
            getBean().setPlugins(StringUtils.split(getActionWeblog().getDefaultPlugins(), ","));
    //#EntryAdd.java:90: Warning: method not available
    //#    -- call on Weblog org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String execute()
    //#    unanalyzed callee: Weblog org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog()
    //#EntryAdd.java:90: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.Weblog:getDefaultPlugins()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String execute()
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.Weblog:getDefaultPlugins()
    //#EntryAdd.java:90: Warning: method not available
    //#    -- call on String[] org.apache.commons.lang.StringUtils:split(String, String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String execute()
    //#    unanalyzed callee: String[] org.apache.commons.lang.StringUtils:split(String, String)
        }
        
        return INPUT;
    //#EntryAdd.java:93: end of method: String org.apache.roller.weblogger.ui.struts2.editor.EntryAdd.execute()
    }
    
    
    /**
     * Save a new weblog entry.
     * 
     * @return String The result of the action.
     */
    public String save() {
        
        if(!hasActionErrors()) try {
    //#EntryAdd.java:104: method: String org.apache.roller.weblogger.ui.struts2.editor.EntryAdd.save()
    //#EntryAdd.java:104: Warning: method not available
    //#    -- call on bool org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:hasActionErrors()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: bool org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:hasActionErrors()
    //#input(String save()): ""._tainted
    //#input(String save()): "&#10;"._tainted
    //#input(String save()): ", "._tainted
    //#input(String save()): "Category could not be found - "._tainted
    //#input(String save()): "catId = "._tainted
    //#input(String save()): "commentDays = "._tainted
    //#input(String save()): "comments = "._tainted
    //#input(String save()): "date = "._tainted
    //#input(String save()): "dateString yields date - "._tainted
    //#input(String save()): "entry bean is ...&#10;"._tainted
    //#input(String save()): "final status = "._tainted
    //#input(String save()): "hours = "._tainted
    //#input(String save()): "locale = "._tainted
    //#input(String save()): "minutes = "._tainted
    //#input(String save()): "plugins = "._tainted
    //#input(String save()): "pubtime = "._tainted
    //#input(String save()): "pubtime is "._tainted
    //#input(String save()): "pubtime vals are "._tainted
    //#input(String save()): "seconds = "._tainted
    //#input(String save()): "status = "._tainted
    //#input(String save()): "summary size = "._tainted
    //#input(String save()): "tags = "._tainted
    //#input(String save()): "title = "._tainted
    //#input(String save()): "txt size = "._tainted
    //#input(String save()): "updtime = "._tainted
    //#input(String save()): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/EntryAdd]
    //#input(String save()): __Descendant_Table[others]
    //#input(String save()): __Dispatch_Table.reindexEntry(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V
    //#input(String save()): log
    //#input(String save()): org.apache.roller.weblogger.pojos.WeblogPermission.AUTHOR
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBase.log
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/EntryBean]
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Descendant_Table[others]
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.copyTo(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.getAllowComments()Z
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.getCategoryId()Ljava/lang/String;
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.getCommentDays()Ljava/lang/Integer;
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.getDateString()Ljava/lang/String;
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.getEnclosureURL()Ljava/lang/String;
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.getHours()I
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.getLocale()Ljava/lang/String;
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.getMinutes()I
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.getPinnedToMain()Z
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.getPlugins()[Ljava/lang/String;
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.getPubTime(Ljava/util/Locale;Ljava/util/TimeZone;)Ljava/sql/Timestamp;
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.getRightToLeft()Z
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.getSeconds()I
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.getStatus()Ljava/lang/String;
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.getSummary()Ljava/lang/String;
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.getTagsAsString()Ljava/lang/String;
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.getText()Ljava/lang/String;
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.getTitle()Ljava/lang/String;
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.setId(Ljava/lang/String;)V
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.__Dispatch_Table.toString()Ljava/lang/String;
    //#input(String save()): org/apache/roller/weblogger/ui/struts2/editor/EntryBean.log
    //#input(String save()): this
    //#input(String save()): this.__Tag
    //#input(String save()): this.bean
    //#input(String save()): this.bean.__Tag
    //#input(String save()): this.bean.allowComments
    //#input(String save()): this.bean.categoryId
    //#input(String save()): this.bean.categoryId._tainted
    //#input(String save()): this.bean.commentDays
    //#input(String save()): this.bean.commentDays._tainted
    //#input(String save()): this.bean.dateString
    //#input(String save()): this.bean.dateString._tainted
    //#input(String save()): this.bean.enclosureURL
    //#input(String save()): this.bean.hours
    //#input(String save()): this.bean.locale
    //#input(String save()): this.bean.locale._tainted
    //#input(String save()): this.bean.minutes
    //#input(String save()): this.bean.pinnedToMain
    //#input(String save()): this.bean.plugins
    //#input(String save()): this.bean.plugins._tainted
    //#input(String save()): this.bean.rightToLeft
    //#input(String save()): this.bean.seconds
    //#input(String save()): this.bean.status
    //#input(String save()): this.bean.status._tainted
    //#input(String save()): this.bean.summary
    //#input(String save()): this.bean.summary._tainted
    //#input(String save()): this.bean.tagsString
    //#input(String save()): this.bean.tagsString._tainted
    //#input(String save()): this.bean.text
    //#input(String save()): this.bean.text._tainted
    //#input(String save()): this.bean.title
    //#input(String save()): this.bean.title._tainted
    //#output(String save()): return_value
    //#output(String save()): this.bean.id
    //#pre[1] (String save()): (soft) log != null
    //#pre[3] (String save()): (soft) org/apache/roller/weblogger/ui/struts2/editor/EntryBase.log != null
    //#pre[4] (String save()): (soft) org/apache/roller/weblogger/ui/struts2/editor/EntryBean.log != null
    //#pre[6] (String save()): (soft) this.__Tag == org/apache/roller/weblogger/ui/struts2/editor/EntryAdd
    //#pre[7] (String save()): (soft) this.bean != null
    //#pre[8] (String save()): (soft) this.bean.__Tag == org/apache/roller/weblogger/ui/struts2/editor/EntryBean
    //#pre[9] (String save()): (soft) init'ed(this.bean.allowComments)
    //#pre[10] (String save()): (soft) this.bean.categoryId != null
    //#pre[13] (String save()): (soft) init'ed(this.bean.commentDays)
    //#pre[15] (String save()): (soft) init'ed(this.bean.dateString)
    //#pre[18] (String save()): (soft) init'ed(this.bean.enclosureURL)
    //#pre[19] (String save()): (soft) init'ed(this.bean.hours)
    //#pre[20] (String save()): (soft) init'ed(this.bean.locale)
    //#pre[22] (String save()): (soft) init'ed(this.bean.minutes)
    //#pre[23] (String save()): (soft) init'ed(this.bean.pinnedToMain)
    //#pre[24] (String save()): (soft) init'ed(this.bean.plugins)
    //#pre[26] (String save()): (soft) init'ed(this.bean.rightToLeft)
    //#pre[27] (String save()): (soft) init'ed(this.bean.seconds)
    //#pre[28] (String save()): (soft) init'ed(this.bean.status)
    //#pre[31] (String save()): (soft) init'ed(this.bean.summary)
    //#pre[33] (String save()): (soft) init'ed(this.bean.tagsString)
    //#pre[36] (String save()): (soft) init'ed(this.bean.text)
    //#pre[38] (String save()): (soft) init'ed(this.bean.title)
    //#presumption(String save()): org.apache.roller.weblogger.business.Weblogger:getAutopingManager(...)@169 != null
    //#presumption(String save()): org.apache.roller.weblogger.business.Weblogger:getWeblogManager(...)@105 != null
    //#presumption(String save()): org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger(...)@105 != null
    //#presumption(String save()): org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger(...)@159 != null
    //#presumption(String save()): org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger(...)@169 != null
    //#presumption(String save()): init'ed(org.apache.roller.weblogger.pojos.WeblogPermission.AUTHOR)
    //#presumption(String save()): org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog(...)@113 != null
    //#presumption(String save()): org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog(...)@126 != null
    //#presumption(String save()): org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getAuthenticatedUser(...)@132 != null
    //#presumption(String save()): org.apache.roller.weblogger.util.MediacastUtil:lookupResource(...)@139 != null
    //#post(String save()): return_value in Addr_Set{&"success",&"input"}
    //#post(String save()): possibly_updated(this.bean.id)
    //#unanalyzed(String save()): Effects-of-calling:java.lang.Throwable:__curr_excep_obj
    //#unanalyzed(String save()): Effects-of-calling:org.apache.commons.logging.Log:error
    //#unanalyzed(String save()): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(String save()): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(String save()): Effects-of-calling:java.lang.StringBuilder:toString
    //#unanalyzed(String save()): Effects-of-calling:org.apache.commons.logging.Log:debug
    //#unanalyzed(String save()): Effects-of-calling:java.util.Calendar:setTime
    //#unanalyzed(String save()): Effects-of-calling:java.text.SimpleDateFormat
    //#unanalyzed(String save()): Effects-of-calling:java.text.DateFormat:setTimeZone
    //#unanalyzed(String save()): Effects-of-calling:org.apache.commons.lang.StringUtils:isEmpty
    //#unanalyzed(String save()): Effects-of-calling:java.text.DateFormat:parse
    //#unanalyzed(String save()): Effects-of-calling:java.util.Calendar:getInstance
    //#unanalyzed(String save()): Effects-of-calling:java.util.Calendar:set
    //#unanalyzed(String save()): Effects-of-calling:java.util.Calendar:getTimeInMillis
    //#unanalyzed(String save()): Effects-of-calling:java.sql.Timestamp
    //#unanalyzed(String save()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:setTitle
    //#unanalyzed(String save()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:setStatus
    //#unanalyzed(String save()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:setLocale
    //#unanalyzed(String save()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:setSummary
    //#unanalyzed(String save()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:setText
    //#unanalyzed(String save()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:setTagsAsString
    //#unanalyzed(String save()): Effects-of-calling:org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger
    //#unanalyzed(String save()): Effects-of-calling:org.apache.roller.weblogger.business.Weblogger:getWeblogManager
    //#unanalyzed(String save()): Effects-of-calling:org.apache.roller.weblogger.business.WeblogManager:getWeblogCategory
    //#unanalyzed(String save()): Effects-of-calling:org.apache.roller.weblogger.WebloggerException
    //#unanalyzed(String save()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:getWebsite
    //#unanalyzed(String save()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogCategory:getWebsite
    //#unanalyzed(String save()): Effects-of-calling:org.apache.roller.weblogger.pojos.Weblog:equals
    //#unanalyzed(String save()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:setCategory
    //#unanalyzed(String save()): Effects-of-calling:org.apache.commons.lang.StringUtils:join
    //#unanalyzed(String save()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:setPlugins
    //#unanalyzed(String save()): Effects-of-calling:java.lang.Boolean:valueOf
    //#unanalyzed(String save()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:setAllowComments
    //#unanalyzed(String save()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:setCommentDays
    //#unanalyzed(String save()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:setRightToLeft
    //#unanalyzed(String save()): Effects-of-calling:java.lang.StringBuffer
    //#unanalyzed(String save()): Effects-of-calling:java.lang.StringBuffer:append
    //#unanalyzed(String save()): Effects-of-calling:java.lang.StringBuffer:toString
    //#unanalyzed(String save()): Effects-of-calling:org.apache.roller.weblogger.business.Weblogger:getIndexManager
    //#unanalyzed(String save()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:isPublished
    //#unanalyzed(String save()): Effects-of-calling:org.apache.roller.weblogger.business.search.IndexManager:addEntryReIndexOperation
    //#unanalyzed(String save()): Effects-of-calling:org.apache.commons.logging.Log:warn
    //#test_vector(String save()): org.apache.commons.lang.StringUtils:isEmpty(...)@136: {1}, {0}
    //#test_vector(String save()): org.apache.commons.logging.Log:isDebugEnabled(...)@150: {0}, {1}
    //#test_vector(String save()): org.apache.roller.weblogger.pojos.User:hasRole(...)@132: {0}, {1}
    //#test_vector(String save()): org.apache.roller.weblogger.pojos.Weblog:hasUserPermissions(...)@126: {1}, {0}
    //#test_vector(String save()): org.apache.roller.weblogger.pojos.WeblogEntry:getPubTime(...)@120: Inverse{null}, Addr_Set{null}
    //#test_vector(String save()): org.apache.roller.weblogger.pojos.WeblogEntry:isPending(...)@172: {0}, {1}
    //#test_vector(String save()): org.apache.roller.weblogger.pojos.WeblogEntry:isPublished(...)@119: {0}, {1}
    //#test_vector(String save()): org.apache.roller.weblogger.pojos.WeblogEntry:isPublished(...)@168: {0}, {1}
    //#test_vector(String save()): org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:hasActionErrors(...)@104: {1}, {0}
            WeblogManager weblogMgr = WebloggerFactory.getWeblogger().getWeblogManager();
    //#EntryAdd.java:105: Warning: method not available
    //#    -- call on Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#EntryAdd.java:105: Warning: method not available
    //#    -- call on WeblogManager org.apache.roller.weblogger.business.Weblogger:getWeblogManager()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: WeblogManager org.apache.roller.weblogger.business.Weblogger:getWeblogManager()
            
            WeblogEntry entry = new WeblogEntry();
    //#EntryAdd.java:107: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.pojos.WeblogEntry()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.roller.weblogger.pojos.WeblogEntry()
            entry.setCreator(getAuthenticatedUser());
    //#EntryAdd.java:108: Warning: method not available
    //#    -- call on User org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getAuthenticatedUser()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: User org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getAuthenticatedUser()
    //#EntryAdd.java:108: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.pojos.WeblogEntry:setCreator(User)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.roller.weblogger.pojos.WeblogEntry:setCreator(User)
            entry.setWebsite(getActionWeblog());
    //#EntryAdd.java:109: Warning: method not available
    //#    -- call on Weblog org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: Weblog org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog()
    //#EntryAdd.java:109: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.pojos.WeblogEntry:setWebsite(Weblog)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.roller.weblogger.pojos.WeblogEntry:setWebsite(Weblog)
            
            // set updatetime & pubtime if it was specified
            entry.setUpdateTime(new Timestamp(new Date().getTime()));
    //#EntryAdd.java:112: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.pojos.WeblogEntry:setUpdateTime(Timestamp)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.roller.weblogger.pojos.WeblogEntry:setUpdateTime(Timestamp)
            entry.setPubTime(getBean().getPubTime(getLocale(), getActionWeblog().getTimeZoneInstance()));
    //#EntryAdd.java:113: Warning: method not available
    //#    -- call on Locale org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getLocale()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: Locale org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getLocale()
    //#EntryAdd.java:113: Warning: method not available
    //#    -- call on Weblog org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: Weblog org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog()
    //#EntryAdd.java:113: Warning: method not available
    //#    -- call on TimeZone org.apache.roller.weblogger.pojos.Weblog:getTimeZoneInstance()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: TimeZone org.apache.roller.weblogger.pojos.Weblog:getTimeZoneInstance()
    //#EntryAdd.java:113: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.pojos.WeblogEntry:setPubTime(Timestamp)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.roller.weblogger.pojos.WeblogEntry:setPubTime(Timestamp)
            
            // copy data to new entry pojo
            getBean().copyTo(entry);
            
            // handle pubtime auto set
            if(entry.isPublished()) {
    //#EntryAdd.java:119: Warning: method not available
    //#    -- call on bool org.apache.roller.weblogger.pojos.WeblogEntry:isPublished()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: bool org.apache.roller.weblogger.pojos.WeblogEntry:isPublished()
                if(entry.getPubTime() == null) {
    //#EntryAdd.java:120: Warning: method not available
    //#    -- call on Timestamp org.apache.roller.weblogger.pojos.WeblogEntry:getPubTime()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: Timestamp org.apache.roller.weblogger.pojos.WeblogEntry:getPubTime()
                    // no time specified, use current time
                    entry.setPubTime(entry.getUpdateTime());
    //#EntryAdd.java:122: Warning: method not available
    //#    -- call on Timestamp org.apache.roller.weblogger.pojos.WeblogEntry:getUpdateTime()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: Timestamp org.apache.roller.weblogger.pojos.WeblogEntry:getUpdateTime()
    //#EntryAdd.java:122: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.pojos.WeblogEntry:setPubTime(Timestamp)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.roller.weblogger.pojos.WeblogEntry:setPubTime(Timestamp)
                }
                
                // if user does not have author perms then force PENDING status
                if(!getActionWeblog().hasUserPermissions(getAuthenticatedUser(),WeblogPermission.AUTHOR)) {
    //#EntryAdd.java:126: Warning: method not available
    //#    -- call on Weblog org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: Weblog org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog()
    //#EntryAdd.java:126: Warning: method not available
    //#    -- call on User org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getAuthenticatedUser()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: User org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getAuthenticatedUser()
    //#EntryAdd.java:126: Warning: method not available
    //#    -- call on bool org.apache.roller.weblogger.pojos.Weblog:hasUserPermissions(User, short)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: bool org.apache.roller.weblogger.pojos.Weblog:hasUserPermissions(User, short)
                    entry.setStatus(WeblogEntry.PENDING);
    //#EntryAdd.java:127: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.pojos.WeblogEntry:setStatus(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.roller.weblogger.pojos.WeblogEntry:setStatus(String)
                }
            }
            
            // if user is an admin then apply pinned to main value as well
            if(getAuthenticatedUser().hasRole("admin")) {
    //#EntryAdd.java:132: Warning: method not available
    //#    -- call on User org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getAuthenticatedUser()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: User org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getAuthenticatedUser()
    //#EntryAdd.java:132: Warning: method not available
    //#    -- call on bool org.apache.roller.weblogger.pojos.User:hasRole(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: bool org.apache.roller.weblogger.pojos.User:hasRole(String)
                entry.setPinnedToMain(getBean().getPinnedToMain());
    //#EntryAdd.java:133: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.pojos.WeblogEntry:setPinnedToMain(Boolean)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.roller.weblogger.pojos.WeblogEntry:setPinnedToMain(Boolean)
            }
            
            if(!StringUtils.isEmpty(getBean().getEnclosureURL())) try {
    //#EntryAdd.java:136: Warning: method not available
    //#    -- call on bool org.apache.commons.lang.StringUtils:isEmpty(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: bool org.apache.commons.lang.StringUtils:isEmpty(String)
                // Fetch MediaCast resource
                log.debug("Checking MediaCast attributes");
    //#EntryAdd.java:138: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:debug(Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:debug(Object)
                MediacastResource mediacast = MediacastUtil.lookupResource(getBean().getEnclosureURL());
    //#EntryAdd.java:139: Warning: method not available
    //#    -- call on MediacastResource org.apache.roller.weblogger.util.MediacastUtil:lookupResource(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: MediacastResource org.apache.roller.weblogger.util.MediacastUtil:lookupResource(String)
                
                // set mediacast attributes
                entry.putEntryAttribute("att_mediacast_url", mediacast.getUrl());
    //#EntryAdd.java:142: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.util.MediacastResource:getUrl()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: String org.apache.roller.weblogger.util.MediacastResource:getUrl()
    //#EntryAdd.java:142: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.pojos.WeblogEntry:putEntryAttribute(String, String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.roller.weblogger.pojos.WeblogEntry:putEntryAttribute(String, String)
                entry.putEntryAttribute("att_mediacast_type", mediacast.getContentType());
    //#EntryAdd.java:143: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.util.MediacastResource:getContentType()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: String org.apache.roller.weblogger.util.MediacastResource:getContentType()
    //#EntryAdd.java:143: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.pojos.WeblogEntry:putEntryAttribute(String, String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.roller.weblogger.pojos.WeblogEntry:putEntryAttribute(String, String)
                entry.putEntryAttribute("att_mediacast_length", ""+mediacast.getLength());
    //#EntryAdd.java:144: Warning: method not available
    //#    -- call on long org.apache.roller.weblogger.util.MediacastResource:getLength()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: long org.apache.roller.weblogger.util.MediacastResource:getLength()
    //#EntryAdd.java:144: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.pojos.WeblogEntry:putEntryAttribute(String, String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.roller.weblogger.pojos.WeblogEntry:putEntryAttribute(String, String)
                
            } catch (MediacastException ex) {
                addMessage(getText(ex.getErrorKey()));
    //#EntryAdd.java:147: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.util.MediacastException:getErrorKey()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: String org.apache.roller.weblogger.util.MediacastException:getErrorKey()
    //#EntryAdd.java:147: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getText(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: String org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getText(String)
    //#EntryAdd.java:147: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:addMessage(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:addMessage(String)
            }
            
            if(log.isDebugEnabled()) {
    //#EntryAdd.java:150: Warning: method not available
    //#    -- call on bool org.apache.commons.logging.Log:isDebugEnabled()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: bool org.apache.commons.logging.Log:isDebugEnabled()
                log.debug("entry bean is ...\n"+getBean().toString());
    //#EntryAdd.java:151: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:debug(Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:debug(Object)
                log.debug("final status = "+entry.getStatus());
    //#EntryAdd.java:152: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogEntry:getStatus()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogEntry:getStatus()
    //#EntryAdd.java:152: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:debug(Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:debug(Object)
                log.debug("updtime = "+entry.getUpdateTime());
    //#EntryAdd.java:153: Warning: method not available
    //#    -- call on Timestamp org.apache.roller.weblogger.pojos.WeblogEntry:getUpdateTime()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: Timestamp org.apache.roller.weblogger.pojos.WeblogEntry:getUpdateTime()
    //#EntryAdd.java:153: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:debug(Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:debug(Object)
                log.debug("pubtime = "+entry.getPubTime());
    //#EntryAdd.java:154: Warning: method not available
    //#    -- call on Timestamp org.apache.roller.weblogger.pojos.WeblogEntry:getPubTime()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: Timestamp org.apache.roller.weblogger.pojos.WeblogEntry:getPubTime()
    //#EntryAdd.java:154: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:debug(Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:debug(Object)
            }
            
            log.debug("Saving entry");
    //#EntryAdd.java:157: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:debug(Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:debug(Object)
            weblogMgr.saveWeblogEntry(entry);
    //#EntryAdd.java:158: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.business.WeblogManager:saveWeblogEntry(WeblogEntry)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.roller.weblogger.business.WeblogManager:saveWeblogEntry(WeblogEntry)
            WebloggerFactory.getWeblogger().flush();
    //#EntryAdd.java:159: Warning: method not available
    //#    -- call on Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#EntryAdd.java:159: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.business.Weblogger:flush()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.roller.weblogger.business.Weblogger:flush()
            
            // notify search of the new entry
            reindexEntry(entry);
            
            // notify caches
            CacheManager.invalidate(entry);
    //#EntryAdd.java:165: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.util.cache.CacheManager:invalidate(WeblogEntry)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.roller.weblogger.util.cache.CacheManager:invalidate(WeblogEntry)
            
            // Queue applicable pings for this update.
            if(entry.isPublished()) {
    //#EntryAdd.java:168: Warning: method not available
    //#    -- call on bool org.apache.roller.weblogger.pojos.WeblogEntry:isPublished()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: bool org.apache.roller.weblogger.pojos.WeblogEntry:isPublished()
                WebloggerFactory.getWeblogger().getAutopingManager().queueApplicableAutoPings(entry);
    //#EntryAdd.java:169: Warning: method not available
    //#    -- call on Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#EntryAdd.java:169: Warning: method not available
    //#    -- call on AutoPingManager org.apache.roller.weblogger.business.Weblogger:getAutopingManager()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: AutoPingManager org.apache.roller.weblogger.business.Weblogger:getAutopingManager()
    //#EntryAdd.java:169: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.business.pings.AutoPingManager:queueApplicableAutoPings(WeblogEntry)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.roller.weblogger.business.pings.AutoPingManager:queueApplicableAutoPings(WeblogEntry)
            }
            
            if(entry.isPending()) {
    //#EntryAdd.java:172: Warning: method not available
    //#    -- call on bool org.apache.roller.weblogger.pojos.WeblogEntry:isPending()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: bool org.apache.roller.weblogger.pojos.WeblogEntry:isPending()
                // implies that entry just changed to pending
                MailUtil.sendPendingEntryNotice(entry);
    //#EntryAdd.java:174: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.util.MailUtil:sendPendingEntryNotice(WeblogEntry)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.roller.weblogger.util.MailUtil:sendPendingEntryNotice(WeblogEntry)
                addMessage("weblogEdit.submittedForReview");
    //#EntryAdd.java:175: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:addMessage(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:addMessage(String)
            } else {
                addMessage("weblogEdit.changesSaved");
    //#EntryAdd.java:177: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:addMessage(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:addMessage(String)
            }
            
            // now that entry is saved we want to store the id in the bean
            // so that our success action can use it properly
            getBean().setId(entry.getId());
    //#EntryAdd.java:182: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogEntry:getId()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogEntry:getId()
            
            return SUCCESS;
            
        } catch (Exception e) {
            log.error("Error saving new entry", e);
    //#EntryAdd.java:187: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:error(Object, Throwable)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object, Throwable)
            // TODO: i18n
            addError("Error saving new entry");
    //#EntryAdd.java:189: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:addError(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: String save()
    //#    unanalyzed callee: void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:addError(String)
        }


        
        return INPUT;
    //#EntryAdd.java:194: end of method: String org.apache.roller.weblogger.ui.struts2.editor.EntryAdd.save()
    }
    
    
    /**
     * Get the list of all categories for the action weblog, not including root.
     */
    public List<WeblogCategory> getCategories() {
        try {
            WeblogManager wmgr = WebloggerFactory.getWeblogger().getWeblogManager();
    //#EntryAdd.java:203: method: List org.apache.roller.weblogger.ui.struts2.editor.EntryAdd.getCategories()
    //#EntryAdd.java:203: Warning: method not available
    //#    -- call on Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: List getCategories()
    //#    unanalyzed callee: Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#EntryAdd.java:203: Warning: method not available
    //#    -- call on WeblogManager org.apache.roller.weblogger.business.Weblogger:getWeblogManager()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: List getCategories()
    //#    unanalyzed callee: WeblogManager org.apache.roller.weblogger.business.Weblogger:getWeblogManager()
    //#input(List getCategories()): "Error getting category list for weblog - "._tainted
    //#input(List getCategories()): java.util.Collections.EMPTY_LIST
    //#input(List getCategories()): log
    //#input(List getCategories()): this
    //#output(List getCategories()): return_value
    //#pre[1] (List getCategories()): (soft) log != null
    //#presumption(List getCategories()): init'ed(java.util.Collections.EMPTY_LIST)
    //#presumption(List getCategories()): org.apache.roller.weblogger.business.Weblogger:getWeblogManager(...)@203 != null
    //#presumption(List getCategories()): org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger(...)@203 != null
    //#post(List getCategories()): init'ed(return_value)
            return wmgr.getWeblogCategories(getActionWeblog(), false);
    //#EntryAdd.java:204: Warning: method not available
    //#    -- call on Weblog org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: List getCategories()
    //#    unanalyzed callee: Weblog org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getActionWeblog()
    //#EntryAdd.java:204: Warning: method not available
    //#    -- call on List org.apache.roller.weblogger.business.WeblogManager:getWeblogCategories(Weblog, bool)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: List getCategories()
    //#    unanalyzed callee: List org.apache.roller.weblogger.business.WeblogManager:getWeblogCategories(Weblog, bool)
        } catch (WebloggerException ex) {
            log.error("Error getting category list for weblog - "+getWeblog(), ex);
    //#EntryAdd.java:206: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getWeblog()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: List getCategories()
    //#    unanalyzed callee: String org.apache.roller.weblogger.ui.struts2.editor.EntryAdd:getWeblog()
    //#EntryAdd.java:206: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:error(Object, Throwable)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
    //#    method: List getCategories()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object, Throwable)
            return Collections.EMPTY_LIST;
    //#EntryAdd.java:207: end of method: List org.apache.roller.weblogger.ui.struts2.editor.EntryAdd.getCategories()
        }
    }
    
    
    public EntryBean getBean() {
        return bean;
    //#EntryAdd.java:213: method: EntryBean org.apache.roller.weblogger.ui.struts2.editor.EntryAdd.getBean()
    //#input(EntryBean getBean()): this
    //#input(EntryBean getBean()): this.bean
    //#output(EntryBean getBean()): return_value
    //#pre[2] (EntryBean getBean()): init'ed(this.bean)
    //#post(EntryBean getBean()): return_value == this.bean
    //#post(EntryBean getBean()): init'ed(return_value)
    //#EntryAdd.java:213: end of method: EntryBean org.apache.roller.weblogger.ui.struts2.editor.EntryAdd.getBean()
    }

    public void setBean(EntryBean bean) {
        this.bean = bean;
    //#EntryAdd.java:217: method: void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd.setBean(EntryBean)
    //#input(void setBean(EntryBean)): bean
    //#input(void setBean(EntryBean)): this
    //#output(void setBean(EntryBean)): this.bean
    //#post(void setBean(EntryBean)): this.bean == bean
    //#post(void setBean(EntryBean)): init'ed(this.bean)
    }
    //#EntryAdd.java:218: end of method: void org.apache.roller.weblogger.ui.struts2.editor.EntryAdd.setBean(EntryBean)
    
}
    //#EntryAdd.java:: end of class: org.apache.roller.weblogger.ui.struts2.editor.EntryAdd
