public class MBMessageIndexer
extends com.liferay.portal.kernel.search.BaseIndexer<com.liferay.portlet.messageboards.model.MBMessage>
implements com.liferay.portal.kernel.search.RelatedEntryIndexer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_NAME |
| Constructor and Description |
|---|
MBMessageIndexer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRelatedClassNames(com.liferay.portal.kernel.search.filter.BooleanFilter contextFilter,
com.liferay.portal.kernel.search.SearchContext searchContext) |
void |
addRelatedEntryFields(com.liferay.portal.kernel.search.Document document,
java.lang.Object obj) |
protected void |
doDelete(com.liferay.portlet.messageboards.model.MBMessage mbMessage) |
protected com.liferay.portal.kernel.search.Document |
doGetDocument(com.liferay.portlet.messageboards.model.MBMessage mbMessage) |
protected com.liferay.portal.kernel.search.Summary |
doGetSummary(com.liferay.portal.kernel.search.Document document,
java.util.Locale locale,
java.lang.String snippet,
javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse) |
protected void |
doReindex(com.liferay.portlet.messageboards.model.MBMessage mbMessage) |
protected void |
doReindex(java.lang.String[] ids) |
protected void |
doReindex(java.lang.String className,
long classPK) |
java.lang.String |
getClassName() |
boolean |
hasPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
java.lang.String entryClassName,
long entryClassPK,
java.lang.String actionId) |
boolean |
isVisible(long classPK,
int status) |
boolean |
isVisibleRelatedEntry(long classPK,
int status) |
void |
postProcessContextBooleanFilter(com.liferay.portal.kernel.search.filter.BooleanFilter contextBooleanFilter,
com.liferay.portal.kernel.search.SearchContext searchContext) |
protected java.lang.String |
processContent(com.liferay.portlet.messageboards.model.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(com.liferay.portal.kernel.search.SearchContext searchContext) |
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, unregisterIndexerPostProcessorpublic void addRelatedClassNames(com.liferay.portal.kernel.search.filter.BooleanFilter contextFilter,
com.liferay.portal.kernel.search.SearchContext searchContext)
throws java.lang.Exception
addRelatedClassNames in interface com.liferay.portal.kernel.search.RelatedEntryIndexerjava.lang.Exceptionpublic void addRelatedEntryFields(com.liferay.portal.kernel.search.Document document,
java.lang.Object obj)
throws java.lang.Exception
addRelatedEntryFields in interface com.liferay.portal.kernel.search.RelatedEntryIndexerjava.lang.Exceptionpublic java.lang.String getClassName()
getClassName in interface com.liferay.portal.kernel.search.Indexer<com.liferay.portlet.messageboards.model.MBMessage>public boolean hasPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
java.lang.String entryClassName,
long entryClassPK,
java.lang.String actionId)
throws java.lang.Exception
hasPermission in interface com.liferay.portal.kernel.search.Indexer<com.liferay.portlet.messageboards.model.MBMessage>hasPermission in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.portlet.messageboards.model.MBMessage>java.lang.Exceptionpublic boolean isVisible(long classPK,
int status)
throws java.lang.Exception
isVisible in interface com.liferay.portal.kernel.search.Indexer<com.liferay.portlet.messageboards.model.MBMessage>isVisible in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.portlet.messageboards.model.MBMessage>java.lang.Exceptionpublic boolean isVisibleRelatedEntry(long classPK,
int status)
throws java.lang.Exception
isVisibleRelatedEntry in interface com.liferay.portal.kernel.search.Indexer<com.liferay.portlet.messageboards.model.MBMessage>isVisibleRelatedEntry in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.portlet.messageboards.model.MBMessage>java.lang.Exceptionpublic void postProcessContextBooleanFilter(com.liferay.portal.kernel.search.filter.BooleanFilter contextBooleanFilter,
com.liferay.portal.kernel.search.SearchContext searchContext)
throws java.lang.Exception
postProcessContextBooleanFilter in interface com.liferay.portal.kernel.search.Indexer<com.liferay.portlet.messageboards.model.MBMessage>postProcessContextBooleanFilter in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.portlet.messageboards.model.MBMessage>java.lang.Exceptionpublic void updateFullQuery(com.liferay.portal.kernel.search.SearchContext searchContext)
updateFullQuery in interface com.liferay.portal.kernel.search.RelatedEntryIndexerprotected void doDelete(com.liferay.portlet.messageboards.model.MBMessage mbMessage)
throws java.lang.Exception
doDelete in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.portlet.messageboards.model.MBMessage>java.lang.Exceptionprotected com.liferay.portal.kernel.search.Document doGetDocument(com.liferay.portlet.messageboards.model.MBMessage mbMessage)
throws java.lang.Exception
doGetDocument in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.portlet.messageboards.model.MBMessage>java.lang.Exceptionprotected com.liferay.portal.kernel.search.Summary doGetSummary(com.liferay.portal.kernel.search.Document document,
java.util.Locale locale,
java.lang.String snippet,
javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse)
doGetSummary in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.portlet.messageboards.model.MBMessage>protected void doReindex(com.liferay.portlet.messageboards.model.MBMessage mbMessage)
throws java.lang.Exception
doReindex in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.portlet.messageboards.model.MBMessage>java.lang.Exceptionprotected void doReindex(java.lang.String className,
long classPK)
throws java.lang.Exception
doReindex in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.portlet.messageboards.model.MBMessage>java.lang.Exceptionprotected void doReindex(java.lang.String[] ids)
throws java.lang.Exception
doReindex in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.portlet.messageboards.model.MBMessage>java.lang.Exceptionprotected java.lang.String processContent(com.liferay.portlet.messageboards.model.MBMessage message)
protected void reindexCategories(long companyId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void reindexDiscussions(long companyId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void reindexMessages(long companyId,
long groupId,
long categoryId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void reindexRoot(long companyId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException