//# 0 errors, 28 messages
//#
/*
    //#IndexManager.java:1:1: class: org.apache.roller.weblogger.business.search.IndexManager
    //#IndexManager.java:1:1: method: org.apache.roller.weblogger.business.search.IndexManager.org.apache.roller.weblogger.business.search.IndexManager__static_init
* 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.business.search;

import org.apache.roller.weblogger.WebloggerException;
import org.apache.roller.weblogger.business.InitializationException;
import org.apache.roller.weblogger.business.search.operations.IndexOperation;
import org.apache.roller.weblogger.pojos.WeblogEntry;
import org.apache.roller.weblogger.pojos.Weblog;

/**
 * Interface to Roller's Lucene-based search facility.
 * @author Dave Johnson
 */
public interface IndexManager
{
    /** Does index need to be rebuild */
    public abstract boolean isInconsistentAtStartup();
    
    /** Remove user from index, returns immediately and operates in background */
    public void removeWebsiteIndex(Weblog website) throws WebloggerException;
    
    /** Remove entry from index, returns immediately and operates in background */
    public void removeEntryIndexOperation(WeblogEntry entry) throws WebloggerException;
    
    /** Add entry to index, returns immediately and operates in background */
    public void addEntryIndexOperation(WeblogEntry entry) throws WebloggerException;
    
    /** R-index entry, returns immediately and operates in background */
    public void addEntryReIndexOperation(WeblogEntry entry) throws WebloggerException;
    
    /** Execute operation immediately */
    public abstract void executeIndexOperationNow(final IndexOperation op);

    /**
     * Release all resources associated with Roller session.
     */
    public abstract void release();
    
    
    /**
     * Initialize the search system.
     *
     * @throws InitializationException If there is a problem during initialization.
     */
    public void initialize() throws InitializationException;
    
    
    /** Shutdown to be called on application shutdown */
    public abstract void shutdown();

    public abstract void rebuildWebsiteIndex(Weblog website) throws WebloggerException;

    public abstract void rebuildWebsiteIndex() throws WebloggerException;

}
    //#output(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Descendant_Table[org/apache/roller/weblogger/business/search/IndexManager]
    //#output(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.addEntryIndexOperation(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V
    //#output(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.addEntryReIndexOperation(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V
    //#output(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.executeIndexOperationNow(Lorg/apache/roller/weblogger/business/search/operations/IndexOperation;)V
    //#output(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.initialize()V
    //#output(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.isInconsistentAtStartup()Z
    //#output(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.rebuildWebsiteIndex()V
    //#output(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.rebuildWebsiteIndex(Lorg/apache/roller/weblogger/pojos/Weblog;)V
    //#output(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.release()V
    //#output(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.removeEntryIndexOperation(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V
    //#output(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.removeWebsiteIndex(Lorg/apache/roller/weblogger/pojos/Weblog;)V
    //#output(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.shutdown()V
    //#post(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Descendant_Table[org/apache/roller/weblogger/business/search/IndexManager] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.addEntryIndexOperation(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V == &addEntryIndexOperation
    //#post(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.addEntryReIndexOperation(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V == &addEntryReIndexOperation
    //#post(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.executeIndexOperationNow(Lorg/apache/roller/weblogger/business/search/operations/IndexOperation;)V == &executeIndexOperationNow
    //#post(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.initialize()V == &initialize
    //#post(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.isInconsistentAtStartup()Z == &isInconsistentAtStartup
    //#post(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.rebuildWebsiteIndex()V == &rebuildWebsiteIndex
    //#post(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.rebuildWebsiteIndex(Lorg/apache/roller/weblogger/pojos/Weblog;)V == &rebuildWebsiteIndex
    //#post(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.release()V == &release
    //#post(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.removeEntryIndexOperation(Lorg/apache/roller/weblogger/pojos/WeblogEntry;)V == &removeEntryIndexOperation
    //#post(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.removeWebsiteIndex(Lorg/apache/roller/weblogger/pojos/Weblog;)V == &removeWebsiteIndex
    //#post(org.apache.roller.weblogger.business.search.IndexManager__static_init): __Dispatch_Table.shutdown()V == &shutdown
    //#IndexManager.java:: end of method: org.apache.roller.weblogger.business.search.IndexManager.org.apache.roller.weblogger.business.search.IndexManager__static_init
    //#IndexManager.java:: end of class: org.apache.roller.weblogger.business.search.IndexManager
