Liferay 7.0-ce-b4

com.liferay.portlet.messageboards.util
Class MBMessageIndexer

java.lang.Object
  extended by com.liferay.portal.kernel.search.BaseIndexer<MBMessage>
      extended by com.liferay.portlet.messageboards.util.MBMessageIndexer
All Implemented Interfaces:
Indexer<MBMessage>, RelatedEntryIndexer

public class MBMessageIndexer
extends BaseIndexer<MBMessage>
implements RelatedEntryIndexer


Field Summary
static String CLASS_NAME
           
 
Fields inherited from interface com.liferay.portal.kernel.search.Indexer
DEFAULT_INTERVAL
 
Constructor Summary
MBMessageIndexer()
           
 
Method Summary
 void addRelatedClassNames(BooleanFilter contextFilter, SearchContext searchContext)
           
 void addRelatedEntryFields(Document document, Object obj)
           
protected  void doDelete(MBMessage mbMessage)
           
protected  Document doGetDocument(MBMessage mbMessage)
           
protected  Summary doGetSummary(Document document, Locale locale, String snippet, PortletRequest portletRequest, PortletResponse portletResponse)
           
protected  void doReindex(MBMessage mbMessage)
           
protected  void doReindex(String[] ids)
           
protected  void doReindex(String className, long classPK)
           
 String getClassName()
           
 boolean hasPermission(PermissionChecker permissionChecker, String entryClassName, long entryClassPK, String actionId)
           
 boolean isVisible(long classPK, int status)
           
 boolean isVisibleRelatedEntry(long classPK, int status)
           
 void postProcessContextBooleanFilter(BooleanFilter contextBooleanFilter, SearchContext searchContext)
           
protected  String processContent(MBMessage message)
           
protected  void reindexCategories(long companyId)
           
protected  void reindexDiscussions(long companyId)
           
protected  void reindexMessages(long companyId, long groupId, long categoryId)
           
protected  void reindexRoot(long companyId)
           
 void updateFullQuery(SearchContext searchContext)
           
 
Methods inherited from class com.liferay.portal.kernel.search.BaseIndexer
addAssetFields, addDefaultHighlightFieldNames, addDefaultSelectedFieldNames, addFacetClause, addFacetSelectedFieldNames, addSearchAssetCategoryIds, addSearchAssetCategoryTitles, addSearchAssetTagNames, addSearchClassTypeIds, addSearchEntryClassNames, addSearchExpando, addSearchFolderId, addSearchGroupId, addSearchKeywords, addSearchLayout, addSearchLocalizedTerm, addSearchTerm, addSearchUserId, addSelectedLocalizedFieldNames, addStagingGroupKeyword, addStatus, addTrashFields, createFullQuery, createSummary, createSummary, delete, delete, deleteDocument, deleteDocument, deleteDocument, deleteDocument, doGetSortField, doPostProcessSearchQuery, doSearch, equals, getBaseModelDocument, getBaseModelDocument, getClassName, getClassNames, getDefaultSelectedFieldNames, getDefaultSelectedLocalizedFieldNames, getDocument, getExpandoFieldName, getFacetBooleanFilter, getFullQuery, getIndexerPostProcessors, getLocale, getLocalizedCountryNames, getPortletId, getPortletId, getSearchClassNames, getSearchEngineId, getSiteGroup, getSiteGroupId, getSnippetLocale, getSortField, getSortField, getSummary, getSummary, hashCode, isCommitImmediately, isFilterSearch, isIndexerEnabled, isPermissionAware, isSelectAllLocales, isStagingAware, isStagingGroup, isUseSearchResultPermissionFilter, isVisible, newDocument, populateAddresses, populateMap, postProcessContextQuery, postProcessFullQuery, postProcessSearchQuery, postProcessSearchQuery, processHits, registerIndexerPostProcessor, reindex, reindex, reindex, reindex, resetFullQuery, search, search, searchCount, setCommitImmediately, setDefaultSelectedFieldNames, setDefaultSelectedLocalizedFieldNames, setFilterSearch, setIndexerEnabled, setPermissionAware, setSelectAllLocales, setStagingAware, unregisterIndexerPostProcessor
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAME

public static final String CLASS_NAME
Constructor Detail

MBMessageIndexer

public MBMessageIndexer()
Method Detail

addRelatedClassNames

public void addRelatedClassNames(BooleanFilter contextFilter,
                                 SearchContext searchContext)
                          throws Exception
Specified by:
addRelatedClassNames in interface RelatedEntryIndexer
Throws:
Exception

addRelatedEntryFields

public void addRelatedEntryFields(Document document,
                                  Object obj)
                           throws Exception
Specified by:
addRelatedEntryFields in interface RelatedEntryIndexer
Throws:
Exception

getClassName

public String getClassName()
Specified by:
getClassName in interface Indexer<MBMessage>

hasPermission

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

isVisible

public boolean isVisible(long classPK,
                         int status)
                  throws Exception
Specified by:
isVisible in interface Indexer<MBMessage>
Overrides:
isVisible in class BaseIndexer<MBMessage>
Throws:
Exception

isVisibleRelatedEntry

public boolean isVisibleRelatedEntry(long classPK,
                                     int status)
                              throws Exception
Specified by:
isVisibleRelatedEntry in interface Indexer<MBMessage>
Overrides:
isVisibleRelatedEntry in class BaseIndexer<MBMessage>
Throws:
Exception

postProcessContextBooleanFilter

public void postProcessContextBooleanFilter(BooleanFilter contextBooleanFilter,
                                            SearchContext searchContext)
                                     throws Exception
Specified by:
postProcessContextBooleanFilter in interface Indexer<MBMessage>
Overrides:
postProcessContextBooleanFilter in class BaseIndexer<MBMessage>
Throws:
Exception

updateFullQuery

public void updateFullQuery(SearchContext searchContext)
Specified by:
updateFullQuery in interface RelatedEntryIndexer

doDelete

protected void doDelete(MBMessage mbMessage)
                 throws Exception
Specified by:
doDelete in class BaseIndexer<MBMessage>
Throws:
Exception

doGetDocument

protected Document doGetDocument(MBMessage mbMessage)
                          throws Exception
Specified by:
doGetDocument in class BaseIndexer<MBMessage>
Throws:
Exception

doGetSummary

protected Summary doGetSummary(Document document,
                               Locale locale,
                               String snippet,
                               PortletRequest portletRequest,
                               PortletResponse portletResponse)
Specified by:
doGetSummary in class BaseIndexer<MBMessage>

doReindex

protected void doReindex(MBMessage mbMessage)
                  throws Exception
Specified by:
doReindex in class BaseIndexer<MBMessage>
Throws:
Exception

doReindex

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

doReindex

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

processContent

protected String processContent(MBMessage message)

reindexCategories

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

reindexDiscussions

protected void reindexDiscussions(long companyId)
                           throws PortalException
Throws:
PortalException

reindexMessages

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

reindexRoot

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

Liferay 7.0-ce-b4