Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.search
Class IndexerWrapper

java.lang.Object
  extended by com.liferay.portal.kernel.search.IndexerWrapper
All Implemented Interfaces:
Indexer

public class IndexerWrapper
extends Object
implements Indexer


Field Summary
 
Fields inherited from interface com.liferay.portal.kernel.search.Indexer
DEFAULT_INTERVAL
 
Constructor Summary
IndexerWrapper(Indexer indexer)
           
 
Method Summary
 void delete(long companyId, String uid)
           
 void delete(Object obj)
           
 String[] getClassNames()
           
 Document getDocument(Object obj)
           
 BooleanQuery getFacetQuery(String className, SearchContext searchContext)
           
 BooleanQuery getFullQuery(SearchContext searchContext)
           
 IndexerPostProcessor[] getIndexerPostProcessors()
           
 String getPortletId()
           
 String getSearchEngineId()
           
 String getSortField(String orderByCol)
           
 Summary getSummary(Document document, Locale locale, String snippet, PortletURL portletURL)
           
 boolean hasPermission(PermissionChecker permissionChecker, long entryClassPK, String actionId)
           
 boolean isFilterSearch()
           
 boolean isPermissionAware()
           
 boolean isStagingAware()
           
 void postProcessContextQuery(BooleanQuery contextQuery, SearchContext searchContext)
           
 void postProcessSearchQuery(BooleanQuery searchQuery, SearchContext searchContext)
           
 void registerIndexerPostProcessor(IndexerPostProcessor indexerPostProcessor)
           
 void reindex(Object obj)
           
 void reindex(String[] ids)
           
 void reindex(String className, long classPK)
           
 Hits search(SearchContext searchContext)
           
 void unregisterIndexerPostProcessor(IndexerPostProcessor indexerPostProcessor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexerWrapper

public IndexerWrapper(Indexer indexer)
Method Detail

delete

public void delete(long companyId,
                   String uid)
            throws SearchException
Specified by:
delete in interface Indexer
Throws:
SearchException

delete

public void delete(Object obj)
            throws SearchException
Specified by:
delete in interface Indexer
Throws:
SearchException

getClassNames

public String[] getClassNames()
Specified by:
getClassNames in interface Indexer

getDocument

public Document getDocument(Object obj)
                     throws SearchException
Specified by:
getDocument in interface Indexer
Throws:
SearchException

getFacetQuery

public BooleanQuery getFacetQuery(String className,
                                  SearchContext searchContext)
                           throws Exception
Specified by:
getFacetQuery in interface Indexer
Throws:
Exception

getFullQuery

public BooleanQuery getFullQuery(SearchContext searchContext)
                          throws SearchException
Specified by:
getFullQuery in interface Indexer
Throws:
SearchException

getIndexerPostProcessors

public IndexerPostProcessor[] getIndexerPostProcessors()
Specified by:
getIndexerPostProcessors in interface Indexer

getPortletId

public String getPortletId()
Specified by:
getPortletId in interface Indexer

getSearchEngineId

public String getSearchEngineId()
Specified by:
getSearchEngineId in interface Indexer

getSortField

public String getSortField(String orderByCol)
Specified by:
getSortField in interface Indexer

getSummary

public Summary getSummary(Document document,
                          Locale locale,
                          String snippet,
                          PortletURL portletURL)
                   throws SearchException
Specified by:
getSummary in interface Indexer
Throws:
SearchException

hasPermission

public boolean hasPermission(PermissionChecker permissionChecker,
                             long entryClassPK,
                             String actionId)
                      throws Exception
Specified by:
hasPermission in interface Indexer
Throws:
Exception

isFilterSearch

public boolean isFilterSearch()
Specified by:
isFilterSearch in interface Indexer

isPermissionAware

public boolean isPermissionAware()
Specified by:
isPermissionAware in interface Indexer

isStagingAware

public boolean isStagingAware()
Specified by:
isStagingAware in interface Indexer

postProcessContextQuery

public void postProcessContextQuery(BooleanQuery contextQuery,
                                    SearchContext searchContext)
                             throws Exception
Specified by:
postProcessContextQuery in interface Indexer
Throws:
Exception

postProcessSearchQuery

public void postProcessSearchQuery(BooleanQuery searchQuery,
                                   SearchContext searchContext)
                            throws Exception
Specified by:
postProcessSearchQuery in interface Indexer
Throws:
Exception

registerIndexerPostProcessor

public void registerIndexerPostProcessor(IndexerPostProcessor indexerPostProcessor)
Specified by:
registerIndexerPostProcessor in interface Indexer

reindex

public void reindex(Object obj)
             throws SearchException
Specified by:
reindex in interface Indexer
Throws:
SearchException

reindex

public void reindex(String className,
                    long classPK)
             throws SearchException
Specified by:
reindex in interface Indexer
Throws:
SearchException

reindex

public void reindex(String[] ids)
             throws SearchException
Specified by:
reindex in interface Indexer
Throws:
SearchException

search

public Hits search(SearchContext searchContext)
            throws SearchException
Specified by:
search in interface Indexer
Throws:
SearchException

unregisterIndexerPostProcessor

public void unregisterIndexerPostProcessor(IndexerPostProcessor indexerPostProcessor)
Specified by:
unregisterIndexerPostProcessor in interface Indexer

Liferay 6.1.2-ce-ga3