//# 0 errors, 295 messages
//#
/*
    //#AddEntryOperation.java:1:1: class: org.apache.roller.weblogger.business.search.operations.AddEntryOperation
 * 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.
 */
/* Created on Jul 16, 2003 */
package org.apache.roller.weblogger.business.search.operations;

import java.io.IOException;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.lucene.index.IndexWriter;
import org.apache.roller.weblogger.WebloggerException;
import org.apache.roller.weblogger.business.search.IndexManagerImpl;
import org.apache.roller.weblogger.business.Weblogger;
import org.apache.roller.weblogger.business.WeblogManager;
import org.apache.roller.weblogger.pojos.WeblogEntry;

/**
 * An operation that adds a new log entry into the index.
 * @author Mindaugas Idzelis  (min@idzelis.com)
 */
public class AddEntryOperation extends WriteToIndexOperation {
    
    //~ Static fields/initializers =============================================
    
    private static Log mLogger =
    //#AddEntryOperation.java:40: method: org.apache.roller.weblogger.business.search.operations.AddEntryOperation.org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init
    //#AddEntryOperation.java:40: Warning: method not available
    //#    -- call on LogFactory org.apache.commons.logging.LogFactory:getFactory()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.business.search.operations.AddEntryOperation
    //#    method: org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init
    //#    unanalyzed callee: LogFactory org.apache.commons.logging.LogFactory:getFactory()
    //#AddEntryOperation.java:40: Warning: method not available
    //#    -- call on Log org.apache.commons.logging.LogFactory:getInstance(Class)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.business.search.operations.AddEntryOperation
    //#    method: org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init
    //#    unanalyzed callee: Log org.apache.commons.logging.LogFactory:getInstance(Class)
    //#output(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): __Descendant_Table[org/apache/roller/weblogger/business/search/operations/AddEntryOperation]
    //#output(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): __Dispatch_Table.beginDeleting()Lorg/apache/lucene/index/IndexReader;
    //#output(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): __Dispatch_Table.beginWriting()Lorg/apache/lucene/index/IndexWriter;
    //#output(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): __Dispatch_Table.doRun()V
    //#output(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): __Dispatch_Table.endDeleting()V
    //#output(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): __Dispatch_Table.endWriting()V
    //#output(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): __Dispatch_Table.getDocument(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)Lorg/apache/lucene/document/Document;
    //#output(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): __Dispatch_Table.run()V
    //#output(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): mLogger
    //#output(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): org/apache/roller/weblogger/business/search/operations/IndexOperation.__Descendant_Table[org/apache/roller/weblogger/business/search/operations/AddEntryOperation]
    //#output(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): org/apache/roller/weblogger/business/search/operations/WriteToIndexOperation.__Descendant_Table[org/apache/roller/weblogger/business/search/operations/AddEntryOperation]
    //#presumption(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): org.apache.commons.logging.LogFactory:getFactory(...)@40 != null
    //#post(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): __Descendant_Table[org/apache/roller/weblogger/business/search/operations/AddEntryOperation] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): org/apache/roller/weblogger/business/search/operations/IndexOperation.__Descendant_Table[org/apache/roller/weblogger/business/search/operations/AddEntryOperation] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): org/apache/roller/weblogger/business/search/operations/WriteToIndexOperation.__Descendant_Table[org/apache/roller/weblogger/business/search/operations/AddEntryOperation] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): __Dispatch_Table.beginDeleting()Lorg/apache/lucene/index/IndexReader; == &org/apache/roller/weblogger/business/search/operations/IndexOperation.beginDeleting
    //#post(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): __Dispatch_Table.beginWriting()Lorg/apache/lucene/index/IndexWriter; == &org/apache/roller/weblogger/business/search/operations/IndexOperation.beginWriting
    //#post(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): __Dispatch_Table.doRun()V == &doRun
    //#post(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): __Dispatch_Table.endDeleting()V == &org/apache/roller/weblogger/business/search/operations/IndexOperation.endDeleting
    //#post(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): __Dispatch_Table.endWriting()V == &org/apache/roller/weblogger/business/search/operations/IndexOperation.endWriting
    //#post(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): __Dispatch_Table.getDocument(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)Lorg/apache/lucene/document/Document; == &org/apache/roller/weblogger/business/search/operations/IndexOperation.getDocument
    //#post(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): __Dispatch_Table.run()V == &org/apache/roller/weblogger/business/search/operations/WriteToIndexOperation.run
    //#post(org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init): init'ed(mLogger)
    //#AddEntryOperation.java:40: end of method: org.apache.roller.weblogger.business.search.operations.AddEntryOperation.org.apache.roller.weblogger.business.search.operations.AddEntryOperation__static_init
            LogFactory.getFactory().getInstance(AddEntryOperation.class);
    
    //~ Instance fields ========================================================
    
    private WeblogEntry data;
    private Weblogger roller;
    
    //~ Constructors ===========================================================
    
    /**
     * Adds a web log entry into the index.
     */
    public AddEntryOperation(Weblogger roller, IndexManagerImpl mgr,WeblogEntry data) {
        super(mgr);
    //#AddEntryOperation.java:54: method: void org.apache.roller.weblogger.business.search.operations.AddEntryOperation.org.apache.roller.weblogger.business.search.operations.AddEntryOperation(Weblogger, IndexManagerImpl, WeblogEntry)
    //#input(void org.apache.roller.weblogger.business.search.operations.AddEntryOperation(Weblogger, IndexManagerImpl, WeblogEntry)): data
    //#input(void org.apache.roller.weblogger.business.search.operations.AddEntryOperation(Weblogger, IndexManagerImpl, WeblogEntry)): mgr
    //#input(void org.apache.roller.weblogger.business.search.operations.AddEntryOperation(Weblogger, IndexManagerImpl, WeblogEntry)): roller
    //#input(void org.apache.roller.weblogger.business.search.operations.AddEntryOperation(Weblogger, IndexManagerImpl, WeblogEntry)): this
    //#output(void org.apache.roller.weblogger.business.search.operations.AddEntryOperation(Weblogger, IndexManagerImpl, WeblogEntry)): this.data
    //#output(void org.apache.roller.weblogger.business.search.operations.AddEntryOperation(Weblogger, IndexManagerImpl, WeblogEntry)): this.manager
    //#output(void org.apache.roller.weblogger.business.search.operations.AddEntryOperation(Weblogger, IndexManagerImpl, WeblogEntry)): this.roller
    //#post(void org.apache.roller.weblogger.business.search.operations.AddEntryOperation(Weblogger, IndexManagerImpl, WeblogEntry)): this.data == data
    //#post(void org.apache.roller.weblogger.business.search.operations.AddEntryOperation(Weblogger, IndexManagerImpl, WeblogEntry)): init'ed(this.data)
    //#post(void org.apache.roller.weblogger.business.search.operations.AddEntryOperation(Weblogger, IndexManagerImpl, WeblogEntry)): this.manager == mgr
    //#post(void org.apache.roller.weblogger.business.search.operations.AddEntryOperation(Weblogger, IndexManagerImpl, WeblogEntry)): init'ed(this.manager)
    //#post(void org.apache.roller.weblogger.business.search.operations.AddEntryOperation(Weblogger, IndexManagerImpl, WeblogEntry)): this.roller == roller
    //#post(void org.apache.roller.weblogger.business.search.operations.AddEntryOperation(Weblogger, IndexManagerImpl, WeblogEntry)): init'ed(this.roller)
    //#unanalyzed(void org.apache.roller.weblogger.business.search.operations.AddEntryOperation(Weblogger, IndexManagerImpl, WeblogEntry)): Effects-of-calling:org.apache.roller.weblogger.business.search.operations.IndexOperation
        this.roller = roller;
        this.data = data;
    }
    //#AddEntryOperation.java:57: end of method: void org.apache.roller.weblogger.business.search.operations.AddEntryOperation.org.apache.roller.weblogger.business.search.operations.AddEntryOperation(Weblogger, IndexManagerImpl, WeblogEntry)
    
    //~ Methods ================================================================
    
    public void doRun() {
        IndexWriter writer = beginWriting();
    //#AddEntryOperation.java:62: method: void org.apache.roller.weblogger.business.search.operations.AddEntryOperation.doRun()
    //#AddEntryOperation.java:62: Warning: suspicious precondition
    //#    the precondition for this.roller.__Tag is not a contiguous range of values
    //#    severity: SUPPRESSED
    //#    class: org.apache.roller.weblogger.business.search.operations.AddEntryOperation
    //#    method: void doRun()
    //#    suspicious precondition index: [17]
    //#    Attribs:  Soft
    //#AddEntryOperation.java:62: Warning: suspicious precondition
    //#    the precondition for this.roller.autoPingManager.__Tag is not a contiguous range of values
    //#    severity: SUPPRESSED
    //#    class: org.apache.roller.weblogger.business.search.operations.AddEntryOperation
    //#    method: void doRun()
    //#    suspicious precondition index: [19]
    //#    Attribs:  Soft
    //#AddEntryOperation.java:62: Warning: suspicious precondition
    //#    the precondition for this.roller.bookmarkManager.__Tag is not a contiguous range of values
    //#    severity: SUPPRESSED
    //#    class: org.apache.roller.weblogger.business.search.operations.AddEntryOperation
    //#    method: void doRun()
    //#    suspicious precondition index: [21]
    //#    Attribs:  Soft
    //#AddEntryOperation.java:62: Warning: suspicious precondition
    //#    the precondition for this.roller.fileManager.__Tag is not a contiguous range of values
    //#    severity: SUPPRESSED
    //#    class: org.apache.roller.weblogger.business.search.operations.AddEntryOperation
    //#    method: void doRun()
    //#    suspicious precondition index: [23]
    //#    Attribs:  Soft
    //#AddEntryOperation.java:62: Warning: suspicious precondition
    //#    the precondition for this.roller.pingQueueManager.__Tag is not a contiguous range of values
    //#    severity: SUPPRESSED
    //#    class: org.apache.roller.weblogger.business.search.operations.AddEntryOperation
    //#    method: void doRun()
    //#    suspicious precondition index: [25]
    //#    Attribs:  Soft
    //#AddEntryOperation.java:62: Warning: suspicious precondition
    //#    the precondition for this.roller.pingTargetManager.__Tag is not a contiguous range of values
    //#    severity: SUPPRESSED
    //#    class: org.apache.roller.weblogger.business.search.operations.AddEntryOperation
    //#    method: void doRun()
    //#    suspicious precondition index: [27]
    //#    Attribs:  Soft
    //#AddEntryOperation.java:62: Warning: suspicious precondition
    //#    the precondition for this.roller.pluginManager.__Tag is not a contiguous range of values
    //#    severity: SUPPRESSED
    //#    class: org.apache.roller.weblogger.business.search.operations.AddEntryOperation
    //#    method: void doRun()
    //#    suspicious precondition index: [29]
    //#    Attribs:  Soft
    //#AddEntryOperation.java:62: Warning: suspicious precondition
    //#    the precondition for this.roller.refererManager.__Tag is not a contiguous range of values
    //#    severity: SUPPRESSED
    //#    class: org.apache.roller.weblogger.business.search.operations.AddEntryOperation
    //#    method: void doRun()
    //#    suspicious precondition index: [31]
    //#    Attribs:  Soft
    //#AddEntryOperation.java:62: Warning: suspicious precondition
    //#    the precondition for this.roller.threadManager.__Tag is not a contiguous range of values
    //#    severity: SUPPRESSED
    //#    class: org.apache.roller.weblogger.business.search.operations.AddEntryOperation
    //#    method: void doRun()
    //#    suspicious precondition index: [37]
    //#    Attribs:  Soft
    //#AddEntryOperation.java:62: Warning: suspicious precondition
    //#    the precondition for this.roller.userManager.__Tag is not a contiguous range of values
    //#    severity: SUPPRESSED
    //#    class: org.apache.roller.weblogger.business.search.operations.AddEntryOperation
    //#    method: void doRun()
    //#    suspicious precondition index: [39]
    //#    Attribs:  Soft
    //#AddEntryOperation.java:62: Warning: suspicious precondition
    //#    the precondition for this.roller.weblogManager.__Tag is not a contiguous range of values
    //#    severity: SUPPRESSED
    //#    class: org.apache.roller.weblogger.business.search.operations.AddEntryOperation
    //#    method: void doRun()
    //#    suspicious precondition index: [41]
    //#    Attribs:  Soft
    //#input(void doRun()): ","._tainted
    //#input(void doRun()): "="._tainted
    //#input(void doRun()): "Fetching property ["._tainted
    //#input(void doRun()): "]"._tainted
    //#input(void doRun()): "search.index.comments"._tainted
    //#input(void doRun()): __Descendant_Table[org/apache/roller/weblogger/business/search/operations/AddEntryOperation]
    //#input(void doRun()): __Descendant_Table[others]
    //#input(void doRun()): __Dispatch_Table.beginWriting()Lorg/apache/lucene/index/IndexWriter;
    //#input(void doRun()): __Dispatch_Table.endWriting()V
    //#input(void doRun()): __Dispatch_Table.getDocument(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)Lorg/apache/lucene/document/Document;
    //#input(void doRun()): mLogger
    //#input(void doRun()): org/apache/roller/weblogger/business/BookmarkManager.__Descendant_Table[org/apache/roller/weblogger/business/BookmarkManager]
    //#input(void doRun()): org/apache/roller/weblogger/business/BookmarkManager.__Descendant_Table[org/apache/roller/weblogger/business/jpa/JPABookmarkManagerImpl]
    //#input(void doRun()): org/apache/roller/weblogger/business/BookmarkManager.__Descendant_Table[others]
    //#input(void doRun()): org/apache/roller/weblogger/business/BookmarkManager.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/FileManager.__Descendant_Table[org/apache/roller/weblogger/business/FileManagerImpl]
    //#input(void doRun()): org/apache/roller/weblogger/business/FileManager.__Descendant_Table[org/apache/roller/weblogger/business/FileManager]
    //#input(void doRun()): org/apache/roller/weblogger/business/FileManager.__Descendant_Table[others]
    //#input(void doRun()): org/apache/roller/weblogger/business/FileManager.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/FileManagerImpl.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/UserManager.__Descendant_Table[org/apache/roller/weblogger/business/UserManager]
    //#input(void doRun()): org/apache/roller/weblogger/business/UserManager.__Descendant_Table[org/apache/roller/weblogger/business/jpa/JPAUserManagerImpl]
    //#input(void doRun()): org/apache/roller/weblogger/business/UserManager.__Descendant_Table[others]
    //#input(void doRun()): org/apache/roller/weblogger/business/UserManager.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/WeblogManager.__Descendant_Table[org/apache/roller/weblogger/business/WeblogManager]
    //#input(void doRun()): org/apache/roller/weblogger/business/WeblogManager.__Descendant_Table[org/apache/roller/weblogger/business/jpa/JPAWeblogManagerImpl]
    //#input(void doRun()): org/apache/roller/weblogger/business/WeblogManager.__Descendant_Table[others]
    //#input(void doRun()): org/apache/roller/weblogger/business/WeblogManager.__Dispatch_Table.getWeblogEntry(Ljava/lang/String;)Lorg/apache/roller/weblogger/pojos/WeblogEntry;
    //#input(void doRun()): org/apache/roller/weblogger/business/WeblogManager.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/Weblogger.__Descendant_Table[org/apache/roller/weblogger/business/WebloggerImpl]
    //#input(void doRun()): org/apache/roller/weblogger/business/Weblogger.__Descendant_Table[org/apache/roller/weblogger/business/Weblogger]
    //#input(void doRun()): org/apache/roller/weblogger/business/Weblogger.__Descendant_Table[org/apache/roller/weblogger/business/jpa/JPAWebloggerImpl]
    //#input(void doRun()): org/apache/roller/weblogger/business/Weblogger.__Descendant_Table[others]
    //#input(void doRun()): org/apache/roller/weblogger/business/Weblogger.__Dispatch_Table.getWeblogManager()Lorg/apache/roller/weblogger/business/WeblogManager;
    //#input(void doRun()): org/apache/roller/weblogger/business/Weblogger.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/WebloggerImpl.__Dispatch_Table.getWeblogManager()Lorg/apache/roller/weblogger/business/WeblogManager;
    //#input(void doRun()): org/apache/roller/weblogger/business/WebloggerImpl.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/WebloggerImpl.log
    //#input(void doRun()): org/apache/roller/weblogger/business/jpa/JPAAutoPingManagerImpl.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/jpa/JPABookmarkManagerImpl.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/jpa/JPAPersistenceStrategy.__Descendant_Table[org/apache/roller/weblogger/business/jpa/JPAPersistenceStrategy]
    //#input(void doRun()): org/apache/roller/weblogger/business/jpa/JPAPersistenceStrategy.__Descendant_Table[others]
    //#input(void doRun()): org/apache/roller/weblogger/business/jpa/JPAPersistenceStrategy.__Dispatch_Table.load(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
    //#input(void doRun()): org/apache/roller/weblogger/business/jpa/JPAPersistenceStrategy.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/jpa/JPAPingQueueManagerImpl.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/jpa/JPAPingTargetManagerImpl.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/jpa/JPARefererManagerImpl.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/jpa/JPAThreadManagerImpl.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/jpa/JPAUserManagerImpl.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/jpa/JPAWeblogManagerImpl.__Dispatch_Table.getWeblogEntry(Ljava/lang/String;)Lorg/apache/roller/weblogger/pojos/WeblogEntry;
    //#input(void doRun()): org/apache/roller/weblogger/business/jpa/JPAWeblogManagerImpl.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/jpa/JPAWebloggerImpl.__Dispatch_Table.getWeblogManager()Lorg/apache/roller/weblogger/business/WeblogManager;
    //#input(void doRun()): org/apache/roller/weblogger/business/jpa/JPAWebloggerImpl.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/pings/AutoPingManager.__Descendant_Table[org/apache/roller/weblogger/business/jpa/JPAAutoPingManagerImpl]
    //#input(void doRun()): org/apache/roller/weblogger/business/pings/AutoPingManager.__Descendant_Table[org/apache/roller/weblogger/business/pings/AutoPingManager]
    //#input(void doRun()): org/apache/roller/weblogger/business/pings/AutoPingManager.__Descendant_Table[others]
    //#input(void doRun()): org/apache/roller/weblogger/business/pings/AutoPingManager.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/pings/PingQueueManager.__Descendant_Table[org/apache/roller/weblogger/business/jpa/JPAPingQueueManagerImpl]
    //#input(void doRun()): org/apache/roller/weblogger/business/pings/PingQueueManager.__Descendant_Table[org/apache/roller/weblogger/business/pings/PingQueueManager]
    //#input(void doRun()): org/apache/roller/weblogger/business/pings/PingQueueManager.__Descendant_Table[others]
    //#input(void doRun()): org/apache/roller/weblogger/business/pings/PingQueueManager.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/pings/PingTargetManager.__Descendant_Table[org/apache/roller/weblogger/business/jpa/JPAPingTargetManagerImpl]
    //#input(void doRun()): org/apache/roller/weblogger/business/pings/PingTargetManager.__Descendant_Table[org/apache/roller/weblogger/business/pings/PingTargetManager]
    //#input(void doRun()): org/apache/roller/weblogger/business/pings/PingTargetManager.__Descendant_Table[others]
    //#input(void doRun()): org/apache/roller/weblogger/business/pings/PingTargetManager.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/plugins/PluginManager.__Descendant_Table[org/apache/roller/weblogger/business/plugins/PluginManagerImpl]
    //#input(void doRun()): org/apache/roller/weblogger/business/plugins/PluginManager.__Descendant_Table[org/apache/roller/weblogger/business/plugins/PluginManager]
    //#input(void doRun()): org/apache/roller/weblogger/business/plugins/PluginManager.__Descendant_Table[others]
    //#input(void doRun()): org/apache/roller/weblogger/business/plugins/PluginManager.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/plugins/PluginManagerImpl.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/referrers/RefererManager.__Descendant_Table[org/apache/roller/weblogger/business/jpa/JPARefererManagerImpl]
    //#input(void doRun()): org/apache/roller/weblogger/business/referrers/RefererManager.__Descendant_Table[org/apache/roller/weblogger/business/referrers/RefererManager]
    //#input(void doRun()): org/apache/roller/weblogger/business/referrers/RefererManager.__Descendant_Table[others]
    //#input(void doRun()): org/apache/roller/weblogger/business/referrers/RefererManager.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/runnable/ThreadManager.__Descendant_Table[org/apache/roller/weblogger/business/jpa/JPAThreadManagerImpl]
    //#input(void doRun()): org/apache/roller/weblogger/business/runnable/ThreadManager.__Descendant_Table[org/apache/roller/weblogger/business/runnable/ThreadManagerImpl]
    //#input(void doRun()): org/apache/roller/weblogger/business/runnable/ThreadManager.__Descendant_Table[org/apache/roller/weblogger/business/runnable/ThreadManager]
    //#input(void doRun()): org/apache/roller/weblogger/business/runnable/ThreadManager.__Descendant_Table[others]
    //#input(void doRun()): org/apache/roller/weblogger/business/runnable/ThreadManager.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/runnable/ThreadManagerImpl.__Dispatch_Table.release()V
    //#input(void doRun()): org/apache/roller/weblogger/business/search/IndexManagerImpl.__Descendant_Table[org/apache/roller/weblogger/business/search/IndexManagerImpl]
    //#input(void doRun()): org/apache/roller/weblogger/business/search/IndexManagerImpl.__Descendant_Table[others]
    //#input(void doRun()): org/apache/roller/weblogger/business/search/IndexManagerImpl.__Dispatch_Table.getFSDirectory(Z)Lorg/apache/lucene/store/Directory;
    //#input(void doRun()): org/apache/roller/weblogger/business/search/IndexManagerImpl.__Dispatch_Table.getIndexDirectory()Lorg/apache/lucene/store/Directory;
    //#input(void doRun()): org/apache/roller/weblogger/business/search/IndexManagerImpl.mLogger
    //#input(void doRun()): org/apache/roller/weblogger/business/search/operations/IndexOperation.mLogger
    //#input(void doRun()): org/apache/roller/weblogger/config/WebloggerConfig.config
    //#input(void doRun()): org/apache/roller/weblogger/config/WebloggerConfig.log
    //#input(void doRun()): this
    //#input(void doRun()): this.__Tag
    //#input(void doRun()): this.data
    //#input(void doRun()): this.manager
    //#input(void doRun()): this.manager.__Tag
    //#input(void doRun()): this.manager.fRAMindex
    //#input(void doRun()): this.manager.indexDir
    //#input(void doRun()): this.manager.useRAMIndex
    //#input(void doRun()): this.roller
    //#input(void doRun()): this.roller.__Tag
    //#input(void doRun()): this.roller.autoPingManager
    //#input(void doRun()): this.roller.autoPingManager.__Tag
    //#input(void doRun()): this.roller.bookmarkManager
    //#input(void doRun()): this.roller.bookmarkManager.__Tag
    //#input(void doRun()): this.roller.fileManager
    //#input(void doRun()): this.roller.fileManager.__Tag
    //#input(void doRun()): this.roller.pingQueueManager
    //#input(void doRun()): this.roller.pingQueueManager.__Tag
    //#input(void doRun()): this.roller.pingTargetManager
    //#input(void doRun()): this.roller.pingTargetManager.__Tag
    //#input(void doRun()): this.roller.pluginManager
    //#input(void doRun()): this.roller.pluginManager.__Tag
    //#input(void doRun()): this.roller.refererManager
    //#input(void doRun()): this.roller.refererManager.__Tag
    //#input(void doRun()): this.roller.strategy
    //#input(void doRun()): this.roller.strategy.__Tag
    //#input(void doRun()): this.roller.strategy.threadLocalEntityManager
    //#input(void doRun()): this.roller.threadManager
    //#input(void doRun()): this.roller.threadManager.__Tag
    //#input(void doRun()): this.roller.userManager
    //#input(void doRun()): this.roller.userManager.__Tag
    //#input(void doRun()): this.roller.weblogManager
    //#input(void doRun()): this.roller.weblogManager.__Tag
    //#input(void doRun()): this.roller.weblogManager.strategy
    //#input(void doRun()): this.roller.weblogManager.strategy.__Tag
    //#input(void doRun()): this.roller.weblogManager.strategy.emf
    //#input(void doRun()): this.roller.weblogManager.strategy.threadLocalEntityManager
    //#input(void doRun()): this.writer
    //#output(void doRun()): new IndexWriter(beginWriting#1) num objects
    //#output(void doRun()): this.data
    //#output(void doRun()): this.writer
    //#new obj(void doRun()): new IndexWriter(beginWriting#1)
    //#pre[10] (void doRun()): this.__Tag == org/apache/roller/weblogger/business/search/operations/AddEntryOperation
    //#pre[1] (void doRun()): (soft) mLogger != null
    //#pre[2] (void doRun()): (soft) this.data != null
    //#pre[3] (void doRun()): (soft) init'ed(this.writer)
    //#pre[4] (void doRun()): (soft) org/apache/roller/weblogger/business/WebloggerImpl.log != null
    //#pre[5] (void doRun()): (soft) org/apache/roller/weblogger/business/search/IndexManagerImpl.mLogger != null
    //#pre[6] (void doRun()): (soft) org/apache/roller/weblogger/business/search/operations/IndexOperation.mLogger != null
    //#pre[7] (void doRun()): (soft) org/apache/roller/weblogger/config/WebloggerConfig.config != null
    //#pre[8] (void doRun()): (soft) org/apache/roller/weblogger/config/WebloggerConfig.log != null
    //#pre[11] (void doRun()): (soft) this.manager != null
    //#pre[12] (void doRun()): (soft) this.manager.__Tag == org/apache/roller/weblogger/business/search/IndexManagerImpl
    //#pre[13] (void doRun()): (soft) init'ed(this.manager.fRAMindex)
    //#pre[14] (void doRun()): (soft) init'ed(this.manager.indexDir)
    //#pre[15] (void doRun()): (soft) init'ed(this.manager.useRAMIndex)
    //#pre[16] (void doRun()): (soft) this.roller != null
    //#pre[17] (void doRun()): (soft) this.roller.__Tag in {org/apache/roller/weblogger/business/Weblogger, org/apache/roller/weblogger/business/WebloggerImpl, org/apache/roller/weblogger/business/jpa/JPAWebloggerImpl}
    //#pre[18] (void doRun()): (soft) this.roller.autoPingManager != null
    //#pre[19] (void doRun()): (soft) this.roller.autoPingManager.__Tag in {org/apache/roller/weblogger/business/jpa/JPAAutoPingManagerImpl, org/apache/roller/weblogger/business/pings/AutoPingManager}
    //#pre[20] (void doRun()): (soft) this.roller.bookmarkManager != null
    //#pre[21] (void doRun()): (soft) this.roller.bookmarkManager.__Tag in {org/apache/roller/weblogger/business/BookmarkManager, org/apache/roller/weblogger/business/jpa/JPABookmarkManagerImpl}
    //#pre[22] (void doRun()): (soft) this.roller.fileManager != null
    //#pre[23] (void doRun()): (soft) this.roller.fileManager.__Tag in {org/apache/roller/weblogger/business/FileManager, org/apache/roller/weblogger/business/FileManagerImpl}
    //#pre[24] (void doRun()): (soft) this.roller.pingQueueManager != null
    //#pre[25] (void doRun()): (soft) this.roller.pingQueueManager.__Tag in {org/apache/roller/weblogger/business/jpa/JPAPingQueueManagerImpl, org/apache/roller/weblogger/business/pings/PingQueueManager}
    //#pre[26] (void doRun()): (soft) this.roller.pingTargetManager != null
    //#pre[27] (void doRun()): (soft) this.roller.pingTargetManager.__Tag in {org/apache/roller/weblogger/business/jpa/JPAPingTargetManagerImpl, org/apache/roller/weblogger/business/pings/PingTargetManager}
    //#pre[28] (void doRun()): (soft) this.roller.pluginManager != null
    //#pre[29] (void doRun()): (soft) this.roller.pluginManager.__Tag in {org/apache/roller/weblogger/business/plugins/PluginManager, org/apache/roller/weblogger/business/plugins/PluginManagerImpl}
    //#pre[30] (void doRun()): (soft) this.roller.refererManager != null
    //#pre[31] (void doRun()): (soft) this.roller.refererManager.__Tag in {org/apache/roller/weblogger/business/jpa/JPARefererManagerImpl, org/apache/roller/weblogger/business/referrers/RefererManager}
    //#pre[36] (void doRun()): (soft) this.roller.threadManager != null
    //#pre[37] (void doRun()): (soft) this.roller.threadManager.__Tag in {org/apache/roller/weblogger/business/jpa/JPAThreadManagerImpl, org/apache/roller/weblogger/business/runnable/ThreadManager, org/apache/roller/weblogger/business/runnable/ThreadManagerImpl}
    //#pre[38] (void doRun()): (soft) this.roller.userManager != null
    //#pre[39] (void doRun()): (soft) this.roller.userManager.__Tag in {org/apache/roller/weblogger/business/UserManager, org/apache/roller/weblogger/business/jpa/JPAUserManagerImpl}
    //#pre[40] (void doRun()): (soft) this.roller.weblogManager != null
    //#pre[41] (void doRun()): (soft) this.roller.weblogManager.__Tag in {org/apache/roller/weblogger/business/WeblogManager, org/apache/roller/weblogger/business/jpa/JPAWeblogManagerImpl}
    //#presumption(void doRun()): javax.persistence.EntityManager:find(...)@216 != null
    //#presumption(void doRun()): wMgr.__Tag@62 in {org/apache/roller/weblogger/business/WeblogManager, org/apache/roller/weblogger/business/jpa/JPAWeblogManagerImpl}
    //#presumption(void doRun()): wMgr.strategy.__Tag@62 == org/apache/roller/weblogger/business/jpa/JPAPersistenceStrategy
    //#presumption(void doRun()): wMgr.strategy.emf@62 != null
    //#presumption(void doRun()): wMgr.strategy.threadLocalEntityManager@62 != null
    //#presumption(void doRun()): wMgr.strategy@62 != null
    //#post(void doRun()): (soft) this.data != null
    //#post(void doRun()): this.writer == One-of{&new IndexWriter(beginWriting#1), old this.writer}
    //#post(void doRun()): (soft) init'ed(this.writer)
    //#post(void doRun()): new IndexWriter(beginWriting#1) num objects <= 1
    //#unanalyzed(void doRun()): Effects-of-calling:java.lang.Throwable:__curr_excep_obj
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.commons.logging.Log:error
    //#unanalyzed(void doRun()): Effects-of-calling:getIndexDirectory
    //#unanalyzed(void doRun()): Effects-of-calling:getAnalyzer
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.lucene.index.IndexWriter
    //#unanalyzed(void doRun()): Effects-of-calling:java.lang.ThreadLocal:get
    //#unanalyzed(void doRun()): Effects-of-calling:javax.persistence.EntityManagerFactory:createEntityManager
    //#unanalyzed(void doRun()): Effects-of-calling:java.lang.ThreadLocal:set
    //#unanalyzed(void doRun()): Effects-of-calling:javax.persistence.EntityManager:getTransaction
    //#unanalyzed(void doRun()): Effects-of-calling:javax.persistence.EntityTransaction:isActive
    //#unanalyzed(void doRun()): Effects-of-calling:javax.persistence.EntityTransaction:begin
    //#unanalyzed(void doRun()): Effects-of-calling:javax.persistence.EntityManager:find
    //#unanalyzed(void doRun()): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(void doRun()): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(void doRun()): Effects-of-calling:java.lang.StringBuilder:toString
    //#unanalyzed(void doRun()): Effects-of-calling:java.lang.String:trim
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.commons.logging.Log:debug
    //#unanalyzed(void doRun()): Effects-of-calling:java.util.Properties:getProperty
    //#unanalyzed(void doRun()): Effects-of-calling:java.lang.Boolean
    //#unanalyzed(void doRun()): Effects-of-calling:java.lang.Boolean:booleanValue
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:getComments
    //#unanalyzed(void doRun()): Effects-of-calling:java.lang.StringBuffer
    //#unanalyzed(void doRun()): Effects-of-calling:java.util.List:iterator
    //#unanalyzed(void doRun()): Effects-of-calling:java.util.Iterator:hasNext
    //#unanalyzed(void doRun()): Effects-of-calling:java.util.Iterator:next
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntryComment:getContent
    //#unanalyzed(void doRun()): Effects-of-calling:java.lang.StringBuffer:append
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntryComment:getEmail
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntryComment:getName
    //#unanalyzed(void doRun()): Effects-of-calling:java.lang.StringBuffer:toString
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.lucene.document.Document
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:getId
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.lucene.document.Field:Keyword
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.lucene.document.Document:add
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:getWebsite
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.roller.weblogger.pojos.Weblog:getHandle
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:getAnchor
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.lucene.document.Field:UnIndexed
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:getCreator
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.roller.weblogger.pojos.User:getUserName
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.lucene.document.Field:Text
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:getTitle
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:getText
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.lucene.document.Field:UnStored
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.roller.weblogger.util.Utilities:removeHTML
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.roller.weblogger.util.Utilities:truncateNicely
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:getUpdateTime
    //#unanalyzed(void doRun()): Effects-of-calling:java.sql.Timestamp:toString
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:getPubTime
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:getCategory
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogCategory:getName
    //#unanalyzed(void doRun()): Effects-of-calling:release
    //#unanalyzed(void doRun()): Effects-of-calling:javax.persistence.EntityTransaction:rollback
    //#unanalyzed(void doRun()): Effects-of-calling:javax.persistence.EntityManager:close
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.lucene.index.IndexWriter:close
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.lucene.store.FSDirectory:getDirectory
    //#unanalyzed(void doRun()): Effects-of-calling:org.apache.lucene.analysis.standard.StandardAnalyzer
        
        // since this operation can be run on a separate thread we must treat
        // the weblog object passed in as a detached object which is proned to
        // lazy initialization problems, so requery for the object now
        try {
            WeblogManager wMgr = roller.getWeblogManager();
            this.data = wMgr.getWeblogEntry(this.data.getId());
    //#AddEntryOperation.java:69: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogEntry:getId()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.business.search.operations.AddEntryOperation
    //#    method: void doRun()
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogEntry:getId()
        } catch (WebloggerException ex) {
            mLogger.error("Error getting weblogentry object", ex);
    //#AddEntryOperation.java:71: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:error(Object, Throwable)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.business.search.operations.AddEntryOperation
    //#    method: void doRun()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object, Throwable)
            return;
        }
        
        try {
            if (writer != null) {
                writer.addDocument(getDocument(data));
    //#AddEntryOperation.java:77: Warning: method not available
    //#    -- call on void org.apache.lucene.index.IndexWriter:addDocument(Document)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.business.search.operations.AddEntryOperation
    //#    method: void doRun()
    //#    unanalyzed callee: void org.apache.lucene.index.IndexWriter:addDocument(Document)
            }
        } catch (IOException e) {
            mLogger.error("Problems adding doc to index", e);
    //#AddEntryOperation.java:80: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:error(Object, Throwable)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.business.search.operations.AddEntryOperation
    //#    method: void doRun()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object, Throwable)
        } finally {
            if (roller != null) roller.release();
            endWriting();
        }
    }   
    //#AddEntryOperation.java:85: end of method: void org.apache.roller.weblogger.business.search.operations.AddEntryOperation.doRun()
}
    //#AddEntryOperation.java:: end of class: org.apache.roller.weblogger.business.search.operations.AddEntryOperation
