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  AlloyServiceInvoker alloyServiceInvoker
           
protected  java.lang.String[] classNames
           
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()
           
 
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)
           
 AlloyServiceInvoker getAlloyServiceInvoker()
           
 java.lang.String[] getClassNames()
           
 java.lang.String getPortletId()
           
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)
           
protected  void setAlloyServiceInvoker(AlloyServiceInvoker alloyServiceInvoker)
           
protected  void setClassName(java.lang.String className)
           
protected  void setPortletId(java.lang.String portletId)
           
 
Methods inherited from class com.liferay.portal.kernel.search.BaseIndexer
addAssetFields, addLocalizedSearchTerm, addRelatedClassNames, addRelatedEntryFields, addSearchArrayQuery, addSearchAssetCategoryIds, addSearchAssetCategoryTitles, addSearchAssetTagNames, addSearchClassTypeIds, addSearchDDMStruture, addSearchEntryClassNames, addSearchExpando, addSearchFolderId, addSearchGroupId, addSearchKeywords, addSearchLayout, addSearchLocalizedTerm, addSearchTerm, addSearchUserId, addStagingGroupKeyword, addStatus, addTrashFields, createFullQuery, createLocalizedSummary, createLocalizedSummary, createSummary, createSummary, delete, delete, deleteDocument, deleteDocument, deleteDocument, deleteDocument, doGetDocument, doGetSortField, doGetSummary, doReindexDDMStructures, filterSearch, getBaseModelDocument, getBaseModelDocument, getClassName, getDocument, getFacetQuery, getFullQuery, getIndexerPostProcessors, getLocalizedCountryNames, getParentGroupId, getSearchEngineId, getSiteGroupId, getSnippetLocale, getSortField, getSortField, getSummary, hasPermission, isFilterSearch, isIndexerEnabled, isPermissionAware, isStagingAware, newDocument, populateAddresses, postProcessFullQuery, postProcessSearchQuery, processHits, registerIndexerPostProcessor, reindex, reindex, reindex, reindexDDMStructures, search, setFilterSearch, setIndexerEnabled, setPermissionAware, setSortableTextFields, setStagingAware, unregisterIndexerPostProcessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

alloyServiceInvoker

protected AlloyServiceInvoker alloyServiceInvoker

classNames

protected java.lang.String[] classNames

portletId

protected java.lang.String portletId
Constructor Detail

BaseAlloyIndexer

public BaseAlloyIndexer()
Method Detail

getAlloyServiceInvoker

public AlloyServiceInvoker getAlloyServiceInvoker()

getClassNames

public java.lang.String[] getClassNames()

getPortletId

public java.lang.String getPortletId()

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

setAlloyServiceInvoker

protected void setAlloyServiceInvoker(AlloyServiceInvoker alloyServiceInvoker)

setClassName

protected void setClassName(java.lang.String className)

setPortletId

protected void setPortletId(java.lang.String portletId)