com.liferay.util.bridges.alloy
Class BaseAlloyIndexer

java.lang.Object
  extended by com.liferay.portal.kernel.search.BaseIndexer
      extended by com.liferay.util.bridges.alloy.BaseAlloyIndexer
All Implemented Interfaces:
com.liferay.portal.kernel.search.Indexer

public abstract class BaseAlloyIndexer
extends com.liferay.portal.kernel.search.BaseIndexer

Author:
Brian Wing Shun Chan

Field Summary
protected  java.lang.String[] classNames
           
protected  com.liferay.portal.kernel.util.MethodKey getModelMethodKey
           
protected  com.liferay.portal.kernel.util.MethodKey getModelsCountMethodKey
           
protected  com.liferay.portal.kernel.util.MethodKey getModelsMethodKey
           
protected  java.lang.String portletId
           
 
Fields inherited from class com.liferay.portal.kernel.search.BaseIndexer
INDEX_FILTER_SEARCH_LIMIT
 
Fields inherited from interface com.liferay.portal.kernel.search.Indexer
DEFAULT_INTERVAL
 
Constructor Summary
BaseAlloyIndexer(java.lang.String portletId, java.lang.String className)
           
 
Method Summary
protected  void doDelete(java.lang.Object obj)
           
protected  void doReindex(java.lang.Object obj)
           
protected  void doReindex(java.lang.String[] ids)
           
protected  void doReindex(java.lang.String className, long classPK)
           
 java.lang.String[] getClassNames()
           
protected  java.lang.String getPortletId(com.liferay.portal.kernel.search.SearchContext searchContext)
           
 void postProcessContextQuery(com.liferay.portal.kernel.search.BooleanQuery contextQuery, com.liferay.portal.kernel.search.SearchContext searchContext)
           
protected  void reindexModels(long companyId)
           
protected  void reindexModels(long companyId, int start, int end)
           
 
Methods inherited from class com.liferay.portal.kernel.search.BaseIndexer
addLocalizedSearchTerm, addSearchArrayQuery, addSearchAssetCategoryIds, addSearchAssetCategoryTitles, addSearchAssetTagNames, addSearchDDMStruture, addSearchEntryClassNames, addSearchExpando, addSearchGroupId, addSearchKeywords, addSearchLocalizedTerm, addSearchTerm, addStagingGroupKeyword, createFullQuery, delete, delete, deleteDocument, deleteDocument, deleteDocument, deleteDocument, doGetDocument, doGetSortField, doGetSummary, filterSearch, getBaseModelDocument, getClassName, getDocument, getFacetQuery, getFullQuery, getIndexerPostProcessors, getParentGroupId, getSearchEngineId, getSortField, getSummary, hasPermission, isFilterSearch, isIndexerEnabled, isPermissionAware, isStagingAware, populateAddresses, postProcessFullQuery, postProcessSearchQuery, registerIndexerPostProcessor, reindex, reindex, reindex, search, setStagingAware, unregisterIndexerPostProcessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.kernel.search.Indexer
getPortletId
 

Field Detail

classNames

protected java.lang.String[] classNames

getModelMethodKey

protected com.liferay.portal.kernel.util.MethodKey getModelMethodKey

getModelsCountMethodKey

protected com.liferay.portal.kernel.util.MethodKey getModelsCountMethodKey

getModelsMethodKey

protected com.liferay.portal.kernel.util.MethodKey getModelsMethodKey

portletId

protected java.lang.String portletId
Constructor Detail

BaseAlloyIndexer

public BaseAlloyIndexer(java.lang.String portletId,
                        java.lang.String className)
Method Detail

getClassNames

public java.lang.String[] getClassNames()

postProcessContextQuery

public void postProcessContextQuery(com.liferay.portal.kernel.search.BooleanQuery contextQuery,
                                    com.liferay.portal.kernel.search.SearchContext searchContext)
                             throws java.lang.Exception
Specified by:
postProcessContextQuery in interface com.liferay.portal.kernel.search.Indexer
Overrides:
postProcessContextQuery in class com.liferay.portal.kernel.search.BaseIndexer
Throws:
java.lang.Exception

doDelete

protected void doDelete(java.lang.Object obj)
                 throws java.lang.Exception
Specified by:
doDelete in class com.liferay.portal.kernel.search.BaseIndexer
Throws:
java.lang.Exception

doReindex

protected void doReindex(java.lang.Object obj)
                  throws java.lang.Exception
Specified by:
doReindex in class com.liferay.portal.kernel.search.BaseIndexer
Throws:
java.lang.Exception

doReindex

protected void doReindex(java.lang.String className,
                         long classPK)
                  throws java.lang.Exception
Specified by:
doReindex in class com.liferay.portal.kernel.search.BaseIndexer
Throws:
java.lang.Exception

doReindex

protected void doReindex(java.lang.String[] ids)
                  throws java.lang.Exception
Specified by:
doReindex in class com.liferay.portal.kernel.search.BaseIndexer
Throws:
java.lang.Exception

getPortletId

protected java.lang.String getPortletId(com.liferay.portal.kernel.search.SearchContext searchContext)
Specified by:
getPortletId in class com.liferay.portal.kernel.search.BaseIndexer

reindexModels

protected void reindexModels(long companyId)
                      throws java.lang.Exception
Throws:
java.lang.Exception

reindexModels

protected void reindexModels(long companyId,
                             int start,
                             int end)
                      throws java.lang.Exception
Throws:
java.lang.Exception