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