//# 0 errors, 158 messages
//#
/*
    //#EntryRemove.java:1:1: class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
 * 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 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.business.search.IndexManager;
import org.apache.roller.weblogger.pojos.WeblogEntry;
import org.apache.roller.weblogger.ui.struts2.util.UIAction;
import org.apache.roller.weblogger.util.cache.CacheManager;


/**
 * Remove a weblog entry.
 */
public class EntryRemove extends UIAction {
    
    private static Log log = LogFactory.getLog(EntryRemove.class);
    //#EntryRemove.java:37: method: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove.org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init
    //#EntryRemove.java:37: Warning: method not available
    //#    -- call on Log org.apache.commons.logging.LogFactory:getLog(Class)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init
    //#    unanalyzed callee: Log org.apache.commons.logging.LogFactory:getLog(Class)
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/EntryRemove]
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init): __Dispatch_Table.execute()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init): __Dispatch_Table.getRemoveEntry()Lorg/apache/roller/weblogger/pojos/WeblogEntry;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init): __Dispatch_Table.getRemoveId()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init): __Dispatch_Table.myPrepare()V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init): __Dispatch_Table.remove()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init): __Dispatch_Table.removeEntryIndex(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init): __Dispatch_Table.setRemoveEntry(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init): __Dispatch_Table.setRemoveId(Ljava/lang/String;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init): log
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/EntryRemove] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init): __Dispatch_Table.execute()Ljava/lang/String; == &execute
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init): __Dispatch_Table.getRemoveEntry()Lorg/apache/roller/weblogger/pojos/WeblogEntry; == &getRemoveEntry
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init): __Dispatch_Table.getRemoveId()Ljava/lang/String; == &getRemoveId
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init): __Dispatch_Table.myPrepare()V == &myPrepare
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init): __Dispatch_Table.remove()Ljava/lang/String; == &remove
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init): __Dispatch_Table.removeEntryIndex(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V == &removeEntryIndex
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init): __Dispatch_Table.setRemoveEntry(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V == &setRemoveEntry
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init): __Dispatch_Table.setRemoveId(Ljava/lang/String;)V == &setRemoveId
    //#post(org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init): init'ed(log)
    //#EntryRemove.java:37: end of method: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove.org.apache.roller.weblogger.ui.struts2.editor.EntryRemove__static_init
    
    // id of entry to remove
    private String removeId = null;
    
    // entry object to remove
    private WeblogEntry removeEntry = null;
    
    
    public EntryRemove() {
    //#EntryRemove.java:46: method: void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove.org.apache.roller.weblogger.ui.struts2.editor.EntryRemove()
    //#EntryRemove.java:46: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.ui.struts2.util.UIAction()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove()
    //#    unanalyzed callee: void org.apache.roller.weblogger.ui.struts2.util.UIAction()
    //#input(void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove()): this
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove()): this.actionName
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove()): this.desiredMenu
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove()): this.pageTitle
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove()): this.removeEntry
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove()): this.removeId
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove()): this.actionName == &"entryRemove"
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove()): this.desiredMenu == &"editor"
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove()): this.pageTitle == &"weblogEdit.title.newEntry"
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove()): this.removeEntry == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove()): this.removeId == null
        this.actionName = "entryRemove";
        this.desiredMenu = "editor";
        this.pageTitle = "weblogEdit.title.newEntry";
    }
    //#EntryRemove.java:50: end of method: void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove.org.apache.roller.weblogger.ui.struts2.editor.EntryRemove()
    
    
    public void myPrepare() {
        if(getRemoveId() != null) {
    //#EntryRemove.java:54: method: void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove.myPrepare()
    //#input(void myPrepare()): "Error looking up entry by id - "._tainted
    //#input(void myPrepare()): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/EntryRemove]
    //#input(void myPrepare()): __Descendant_Table[others]
    //#input(void myPrepare()): __Dispatch_Table.getRemoveId()Ljava/lang/String;
    //#input(void myPrepare()): __Dispatch_Table.setRemoveEntry(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V
    //#input(void myPrepare()): log
    //#input(void myPrepare()): this
    //#input(void myPrepare()): this.__Tag
    //#input(void myPrepare()): this.removeId
    //#input(void myPrepare()): this.removeId._tainted
    //#output(void myPrepare()): this.removeEntry
    //#pre[4] (void myPrepare()): this.__Tag == org/apache/roller/weblogger/ui/struts2/editor/EntryRemove
    //#pre[5] (void myPrepare()): init'ed(this.removeId)
    //#pre[1] (void myPrepare()): (soft) log != null
    //#presumption(void myPrepare()): org.apache.roller.weblogger.business.Weblogger:getWeblogManager(...)@56 != null
    //#presumption(void myPrepare()): org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger(...)@56 != null
    //#post(void myPrepare()): possibly_updated(this.removeEntry)
    //#test_vector(void myPrepare()): this.removeId: Addr_Set{null}, Inverse{null}
            try {
                WeblogManager wmgr = WebloggerFactory.getWeblogger().getWeblogManager();
    //#EntryRemove.java:56: Warning: method not available
    //#    -- call on Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: void myPrepare()
    //#    unanalyzed callee: Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#EntryRemove.java:56: Warning: method not available
    //#    -- call on WeblogManager org.apache.roller.weblogger.business.Weblogger:getWeblogManager()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: void myPrepare()
    //#    unanalyzed callee: WeblogManager org.apache.roller.weblogger.business.Weblogger:getWeblogManager()
                setRemoveEntry(wmgr.getWeblogEntry(getRemoveId()));
    //#EntryRemove.java:57: Warning: method not available
    //#    -- call on WeblogEntry org.apache.roller.weblogger.business.WeblogManager:getWeblogEntry(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: void myPrepare()
    //#    unanalyzed callee: WeblogEntry org.apache.roller.weblogger.business.WeblogManager:getWeblogEntry(String)
            } catch (WebloggerException ex) {
                log.error("Error looking up entry by id - "+getRemoveId(), ex);
    //#EntryRemove.java:59: 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.EntryRemove
    //#    method: void myPrepare()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object, Throwable)
            }
        }
    }
    //#EntryRemove.java:62: end of method: void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove.myPrepare()
    
    
    public String execute() {
        return INPUT;
    //#EntryRemove.java:66: method: String org.apache.roller.weblogger.ui.struts2.editor.EntryRemove.execute()
    //#output(String execute()): return_value
    //#post(String execute()): return_value == &"input"
    //#EntryRemove.java:66: end of method: String org.apache.roller.weblogger.ui.struts2.editor.EntryRemove.execute()
    }
    
    
    public String remove() {
        
        if(getRemoveEntry() != null) try {
    //#EntryRemove.java:72: method: String org.apache.roller.weblogger.ui.struts2.editor.EntryRemove.remove()
    //#input(String remove()): "Error removing entry "._tainted
    //#input(String remove()): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/EntryRemove]
    //#input(String remove()): __Descendant_Table[others]
    //#input(String remove()): __Dispatch_Table.getRemoveEntry()Lorg/apache/roller/weblogger/pojos/WeblogEntry;
    //#input(String remove()): __Dispatch_Table.getRemoveId()Ljava/lang/String;
    //#input(String remove()): __Dispatch_Table.removeEntryIndex(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V
    //#input(String remove()): log
    //#input(String remove()): this
    //#input(String remove()): this.__Tag
    //#input(String remove()): this.removeEntry
    //#input(String remove()): this.removeId
    //#input(String remove()): this.removeId._tainted
    //#output(String remove()): return_value
    //#pre[3] (String remove()): this.__Tag == org/apache/roller/weblogger/ui/struts2/editor/EntryRemove
    //#pre[4] (String remove()): init'ed(this.removeEntry)
    //#pre[1] (String remove()): (soft) log != null
    //#pre[5] (String remove()): (soft) init'ed(this.removeId)
    //#presumption(String remove()): org.apache.roller.weblogger.business.Weblogger:getIndexManager(...)@80 != null
    //#presumption(String remove()): org.apache.roller.weblogger.business.Weblogger:getWeblogManager(...)@93 != null
    //#presumption(String remove()): org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger(...)@80 != null
    //#presumption(String remove()): org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger(...)@93 != null
    //#presumption(String remove()): org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger(...)@95 != null
    //#post(String remove()): return_value in Addr_Set{&"error",&"success",&"input"}
    //#unanalyzed(String remove()): Effects-of-calling:org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger
    //#unanalyzed(String remove()): Effects-of-calling:org.apache.roller.weblogger.business.Weblogger:getIndexManager
    //#unanalyzed(String remove()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:isPublished
    //#unanalyzed(String remove()): Effects-of-calling:org.apache.roller.weblogger.business.search.IndexManager:removeEntryIndexOperation
    //#unanalyzed(String remove()): Effects-of-calling:java.lang.Throwable:__curr_excep_obj
    //#unanalyzed(String remove()): Effects-of-calling:org.apache.commons.logging.Log:warn
    //#test_vector(String remove()): this.removeEntry: Addr_Set{null}, Inverse{null}
            
            WeblogEntry entry = getRemoveEntry();
            
            try {
                // remove the entry from the search index
                // TODO: can we do this in a better way?
                entry.setStatus(WeblogEntry.DRAFT);
    //#EntryRemove.java:79: 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.EntryRemove
    //#    method: String remove()
    //#    unanalyzed callee: void org.apache.roller.weblogger.pojos.WeblogEntry:setStatus(String)
                IndexManager manager = WebloggerFactory.getWeblogger().getIndexManager();
    //#EntryRemove.java:80: Warning: method not available
    //#    -- call on Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: String remove()
    //#    unanalyzed callee: Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#EntryRemove.java:80: Warning: method not available
    //#    -- call on IndexManager org.apache.roller.weblogger.business.Weblogger:getIndexManager()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: String remove()
    //#    unanalyzed callee: IndexManager org.apache.roller.weblogger.business.Weblogger:getIndexManager()
                manager.addEntryReIndexOperation(entry);
    //#EntryRemove.java:81: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.business.search.IndexManager:addEntryReIndexOperation(WeblogEntry)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: String remove()
    //#    unanalyzed callee: void org.apache.roller.weblogger.business.search.IndexManager:addEntryReIndexOperation(WeblogEntry)
            } catch (WebloggerException ex) {
                log.warn("Trouble triggering entry indexing", ex);
    //#EntryRemove.java:83: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:warn(Object, Throwable)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: String remove()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:warn(Object, Throwable)
            }
            
            // remove from search index
            removeEntryIndex(entry);
            
            // flush caches
            CacheManager.invalidate(entry);
    //#EntryRemove.java:90: 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.EntryRemove
    //#    method: String remove()
    //#    unanalyzed callee: void org.apache.roller.weblogger.util.cache.CacheManager:invalidate(WeblogEntry)
            
            // remove entry itself
            WeblogManager wmgr = WebloggerFactory.getWeblogger().getWeblogManager();
    //#EntryRemove.java:93: Warning: method not available
    //#    -- call on Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: String remove()
    //#    unanalyzed callee: Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#EntryRemove.java:93: Warning: method not available
    //#    -- call on WeblogManager org.apache.roller.weblogger.business.Weblogger:getWeblogManager()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: String remove()
    //#    unanalyzed callee: WeblogManager org.apache.roller.weblogger.business.Weblogger:getWeblogManager()
            wmgr.removeWeblogEntry(entry);
    //#EntryRemove.java:94: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.business.WeblogManager:removeWeblogEntry(WeblogEntry)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: String remove()
    //#    unanalyzed callee: void org.apache.roller.weblogger.business.WeblogManager:removeWeblogEntry(WeblogEntry)
            WebloggerFactory.getWeblogger().flush();
    //#EntryRemove.java:95: Warning: method not available
    //#    -- call on Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: String remove()
    //#    unanalyzed callee: Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#EntryRemove.java:95: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.business.Weblogger:flush()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: String remove()
    //#    unanalyzed callee: void org.apache.roller.weblogger.business.Weblogger:flush()
            
            // note to user
            addMessage("weblogEdit.entryRemoved");
    //#EntryRemove.java:98: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove:addMessage(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: String remove()
    //#    unanalyzed callee: void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove:addMessage(String)
            
            return SUCCESS;
            
        } catch(Exception e) {
            log.error("Error removing entry "+getRemoveId(), e);
    //#EntryRemove.java:103: 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.EntryRemove
    //#    method: String remove()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object, Throwable)
            // TODO: i18n
            addError("Error removing entry");
    //#EntryRemove.java:105: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove:addError(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: String remove()
    //#    unanalyzed callee: void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove:addError(String)
        } else {
            addError("weblogEntry.notFound");
    //#EntryRemove.java:107: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove:addError(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: String remove()
    //#    unanalyzed callee: void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove:addError(String)
            return ERROR;
        }
        
        return INPUT;
    //#EntryRemove.java:111: end of method: String org.apache.roller.weblogger.ui.struts2.editor.EntryRemove.remove()
    }
    
    
    /**
     * Trigger reindexing of modified entry.
     */
    protected void removeEntryIndex(WeblogEntry entry) {
        IndexManager manager = WebloggerFactory.getWeblogger().getIndexManager();
    //#EntryRemove.java:119: method: void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove.removeEntryIndex(WeblogEntry)
    //#EntryRemove.java:119: Warning: method not available
    //#    -- call on Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: void removeEntryIndex(WeblogEntry)
    //#    unanalyzed callee: Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#EntryRemove.java:119: Warning: method not available
    //#    -- call on IndexManager org.apache.roller.weblogger.business.Weblogger:getIndexManager()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: void removeEntryIndex(WeblogEntry)
    //#    unanalyzed callee: IndexManager org.apache.roller.weblogger.business.Weblogger:getIndexManager()
    //#input(void removeEntryIndex(WeblogEntry)): entry
    //#input(void removeEntryIndex(WeblogEntry)): log
    //#pre[1] (void removeEntryIndex(WeblogEntry)): entry != null
    //#pre[2] (void removeEntryIndex(WeblogEntry)): (soft) log != null
    //#presumption(void removeEntryIndex(WeblogEntry)): org.apache.roller.weblogger.business.Weblogger:getIndexManager(...)@119 != null
    //#presumption(void removeEntryIndex(WeblogEntry)): org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger(...)@119 != null
    //#test_vector(void removeEntryIndex(WeblogEntry)): org.apache.roller.weblogger.pojos.WeblogEntry:isPublished(...)@122: {0}, {1}
        
        // if published, index the entry
        if (entry.isPublished()) {
    //#EntryRemove.java:122: Warning: method not available
    //#    -- call on bool org.apache.roller.weblogger.pojos.WeblogEntry:isPublished()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: void removeEntryIndex(WeblogEntry)
    //#    unanalyzed callee: bool org.apache.roller.weblogger.pojos.WeblogEntry:isPublished()
            try {
                manager.removeEntryIndexOperation(entry);
    //#EntryRemove.java:124: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.business.search.IndexManager:removeEntryIndexOperation(WeblogEntry)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: void removeEntryIndex(WeblogEntry)
    //#    unanalyzed callee: void org.apache.roller.weblogger.business.search.IndexManager:removeEntryIndexOperation(WeblogEntry)
            } catch (WebloggerException ex) {
                log.warn("Trouble triggering entry indexing", ex);
    //#EntryRemove.java:126: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:warn(Object, Throwable)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
    //#    method: void removeEntryIndex(WeblogEntry)
    //#    unanalyzed callee: void org.apache.commons.logging.Log:warn(Object, Throwable)
            }
        }
    }
    //#EntryRemove.java:129: end of method: void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove.removeEntryIndex(WeblogEntry)
    
    
    public String getRemoveId() {
        return removeId;
    //#EntryRemove.java:133: method: String org.apache.roller.weblogger.ui.struts2.editor.EntryRemove.getRemoveId()
    //#input(String getRemoveId()): this
    //#input(String getRemoveId()): this.removeId
    //#output(String getRemoveId()): return_value
    //#pre[2] (String getRemoveId()): init'ed(this.removeId)
    //#post(String getRemoveId()): return_value == this.removeId
    //#post(String getRemoveId()): init'ed(return_value)
    //#EntryRemove.java:133: end of method: String org.apache.roller.weblogger.ui.struts2.editor.EntryRemove.getRemoveId()
    }

    public void setRemoveId(String removeId) {
        this.removeId = removeId;
    //#EntryRemove.java:137: method: void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove.setRemoveId(String)
    //#input(void setRemoveId(String)): removeId
    //#input(void setRemoveId(String)): this
    //#output(void setRemoveId(String)): this.removeId
    //#post(void setRemoveId(String)): this.removeId == removeId
    //#post(void setRemoveId(String)): init'ed(this.removeId)
    }
    //#EntryRemove.java:138: end of method: void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove.setRemoveId(String)

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

    public void setRemoveEntry(WeblogEntry removeEntry) {
        this.removeEntry = removeEntry;
    //#EntryRemove.java:145: method: void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove.setRemoveEntry(WeblogEntry)
    //#input(void setRemoveEntry(WeblogEntry)): removeEntry
    //#input(void setRemoveEntry(WeblogEntry)): this
    //#output(void setRemoveEntry(WeblogEntry)): this.removeEntry
    //#post(void setRemoveEntry(WeblogEntry)): this.removeEntry == removeEntry
    //#post(void setRemoveEntry(WeblogEntry)): init'ed(this.removeEntry)
    }
    //#EntryRemove.java:146: end of method: void org.apache.roller.weblogger.ui.struts2.editor.EntryRemove.setRemoveEntry(WeblogEntry)
    
}
    //#EntryRemove.java:: end of class: org.apache.roller.weblogger.ui.struts2.editor.EntryRemove
