Liferay 6.1.2-ce-ga3

com.liferay.portlet.messageboards.util
Class MBIndexer

java.lang.Object
  extended by com.liferay.portal.kernel.search.BaseIndexer
      extended by com.liferay.portlet.messageboards.util.MBIndexer
All Implemented Interfaces:
Indexer

public class MBIndexer
extends BaseIndexer


Field Summary
static String[] CLASS_NAMES
           
static String PORTLET_ID
           
 
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
MBIndexer()
           
 
Method Summary
protected  void doDelete(Object obj)
           
protected  Document doGetDocument(Object obj)
           
protected  Summary doGetSummary(Document document, Locale locale, String snippet, PortletURL portletURL)
           
protected  void doReindex(Object obj)
           
protected  void doReindex(String[] ids)
           
protected  void doReindex(String className, long classPK)
           
 String[] getClassNames()
           
 String getPortletId()
           
protected  String getPortletId(SearchContext searchContext)
           
 boolean hasPermission(PermissionChecker permissionChecker, long entryClassPK, String actionId)
           
 boolean isFilterSearch()
           
 boolean isPermissionAware()
           
 void postProcessContextQuery(BooleanQuery contextQuery, SearchContext searchContext)
           
protected  String processContent(MBMessage message)
           
protected  void reindexCategories(long companyId)
           
protected  void reindexMessages(long companyId, long groupId, long categoryId)
           
protected  void reindexRoot(long companyId)
           
 
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, doGetSortField, filterSearch, getBaseModelDocument, getClassName, getDocument, getFacetQuery, getFullQuery, getIndexerPostProcessors, getParentGroupId, getSearchEngineId, getSortField, getSummary, isIndexerEnabled, 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
 

Field Detail

CLASS_NAMES

public static final String[] CLASS_NAMES

PORTLET_ID

public static final String PORTLET_ID
See Also:
Constant Field Values
Constructor Detail

MBIndexer

public MBIndexer()
Method Detail

getClassNames

public String[] getClassNames()

getPortletId

public String getPortletId()

hasPermission

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

isFilterSearch

public boolean isFilterSearch()
Specified by:
isFilterSearch in interface Indexer
Overrides:
isFilterSearch in class BaseIndexer

isPermissionAware

public boolean isPermissionAware()
Specified by:
isPermissionAware in interface Indexer
Overrides:
isPermissionAware in class BaseIndexer

postProcessContextQuery

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

doDelete

protected void doDelete(Object obj)
                 throws Exception
Specified by:
doDelete in class BaseIndexer
Throws:
Exception

doGetDocument

protected Document doGetDocument(Object obj)
                          throws Exception
Specified by:
doGetDocument in class BaseIndexer
Throws:
Exception

doGetSummary

protected Summary doGetSummary(Document document,
                               Locale locale,
                               String snippet,
                               PortletURL portletURL)
Specified by:
doGetSummary in class BaseIndexer

doReindex

protected void doReindex(Object obj)
                  throws Exception
Specified by:
doReindex in class BaseIndexer
Throws:
Exception

doReindex

protected void doReindex(String className,
                         long classPK)
                  throws Exception
Specified by:
doReindex in class BaseIndexer
Throws:
Exception

doReindex

protected void doReindex(String[] ids)
                  throws Exception
Specified by:
doReindex in class BaseIndexer
Throws:
Exception

getPortletId

protected String getPortletId(SearchContext searchContext)
Specified by:
getPortletId in class BaseIndexer

processContent

protected String processContent(MBMessage message)

reindexCategories

protected void reindexCategories(long companyId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

reindexMessages

protected void reindexMessages(long companyId,
                               long groupId,
                               long categoryId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

reindexRoot

protected void reindexRoot(long companyId)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

Liferay 6.1.2-ce-ga3