com.googlecode.fascinator.portal.services.impl
Class IndexerServiceImpl

java.lang.Object
  extended by com.googlecode.fascinator.portal.services.impl.IndexerServiceImpl
All Implemented Interfaces:
Indexer, Plugin, IndexerService

public class IndexerServiceImpl
extends Object
implements IndexerService


Constructor Summary
IndexerServiceImpl(Indexer indexer, org.apache.tapestry5.services.ApplicationStateManager asm)
           
 
Method Summary
 void annotate(String oid, String pid)
           
 void annotateRemove(String oid)
           
 void annotateRemove(String oid, String pid)
           
 void annotateSearch(SearchRequest request, OutputStream result)
           
 void commit()
           
 String getId()
           
 String getName()
           
 PluginDescription getPluginDetails()
          Gets a PluginDescription object relating to this plugin.
 void index(String oid)
           
 void index(String oid, String pid)
           
 void init(File jsonFile)
           
 void init(String jsonString)
           
 void remove(String oid)
           
 void remove(String oid, String pid)
           
 void search(SearchRequest request, OutputStream result)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexerServiceImpl

public IndexerServiceImpl(Indexer indexer,
                          org.apache.tapestry5.services.ApplicationStateManager asm)
Method Detail

index

public void index(String oid)
           throws IndexerException
Specified by:
index in interface Indexer
Throws:
IndexerException

index

public void index(String oid,
                  String pid)
           throws IndexerException
Specified by:
index in interface Indexer
Throws:
IndexerException

commit

public void commit()
Specified by:
commit in interface Indexer

annotate

public void annotate(String oid,
                     String pid)
              throws IndexerException
Specified by:
annotate in interface Indexer
Throws:
IndexerException

annotateSearch

public void annotateSearch(SearchRequest request,
                           OutputStream result)
                    throws IndexerException
Specified by:
annotateSearch in interface Indexer
Throws:
IndexerException

annotateRemove

public void annotateRemove(String oid)
                    throws IndexerException
Specified by:
annotateRemove in interface Indexer
Throws:
IndexerException

annotateRemove

public void annotateRemove(String oid,
                           String pid)
                    throws IndexerException
Specified by:
annotateRemove in interface Indexer
Throws:
IndexerException

remove

public void remove(String oid)
            throws IndexerException
Specified by:
remove in interface Indexer
Throws:
IndexerException

remove

public void remove(String oid,
                   String pid)
            throws IndexerException
Specified by:
remove in interface Indexer
Throws:
IndexerException

search

public void search(SearchRequest request,
                   OutputStream result)
            throws IndexerException
Specified by:
search in interface Indexer
Throws:
IndexerException

getId

public String getId()
Specified by:
getId in interface Plugin

getName

public String getName()
Specified by:
getName in interface Plugin

getPluginDetails

public PluginDescription getPluginDetails()
Gets a PluginDescription object relating to this plugin.

Specified by:
getPluginDetails in interface Plugin
Returns:
a PluginDescription

init

public void init(File jsonFile)
          throws PluginException
Specified by:
init in interface Plugin
Throws:
PluginException

shutdown

public void shutdown()
              throws PluginException
Specified by:
shutdown in interface Plugin
Throws:
PluginException

init

public void init(String jsonString)
          throws PluginException
Specified by:
init in interface Plugin
Throws:
PluginException


Copyright © 2009-2011. All Rights Reserved.