com.liferay.portlet.messageboards.util
Class MBMessageIndexer
java.lang.Object
com.liferay.portal.kernel.search.BaseIndexer
com.liferay.portlet.messageboards.util.MBMessageIndexer
- All Implemented Interfaces:
- Indexer
public class MBMessageIndexer
- extends BaseIndexer
|
Method Summary |
void |
addRelatedEntryFields(Document document,
Object obj)
|
protected void |
doDelete(Object obj)
|
protected Document |
doGetDocument(Object obj)
|
protected Summary |
doGetSummary(Document document,
Locale locale,
String snippet,
PortletURL portletURL,
PortletRequest portletRequest,
PortletResponse portletResponse)
|
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,
String entryClassName,
long entryClassPK,
String actionId)
|
boolean |
isVisible(long classPK,
int status)
|
boolean |
isVisibleRelatedEntry(long classPK,
int status)
|
void |
postProcessContextQuery(BooleanQuery contextQuery,
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, addFacetSelectedFieldNames, addLocalizedSearchTerm, addRelatedClassNames, addSearchArrayQuery, addSearchAssetCategoryIds, addSearchAssetCategoryTitles, addSearchAssetTagNames, addSearchClassTypeIds, addSearchDDMStruture, addSearchEntryClassNames, addSearchExpando, addSearchFolderId, addSearchGroupId, addSearchKeywords, addSearchLayout, addSearchLocalizedTerm, addSearchTerm, addSearchUserId, addSelectedLocalizedFieldNames, addStagingGroupKeyword, addStatus, addTrashFields, createFullQuery, createLocalizedSummary, createLocalizedSummary, createSummary, createSummary, delete, delete, deleteDocument, deleteDocument, deleteDocument, deleteDocument, doGetSortField, doReindexDDMStructures, doSearch, getBaseModelDocument, getBaseModelDocument, getClassName, getDatabaseCount, getDefaultSelectedFieldNames, getDefaultSelectedLocalizedFieldNames, getDocument, getFacetQuery, getFullQuery, getIndexerPostProcessors, getLocale, getLocalizedCountryNames, getParentGroupId, getSearchEngineId, getSiteGroupId, getSnippetLocale, getSortField, getSortField, getSummary, getSummary, isCommitImmediately, isFilterSearch, isIndexerEnabled, isPermissionAware, isSelectAllLocales, isStagingAware, isUseSearchResultPermissionFilter, isVisible, newDocument, populateAddresses, postProcessFullQuery, postProcessSearchQuery, processHits, registerIndexerPostProcessor, reindex, reindex, reindex, reindexDDMStructures, resetFullQuery, search, search, setCommitImmediately, setDefaultSelectedFieldNames, setDefaultSelectedLocalizedFieldNames, setFilterSearch, setIndexerEnabled, setPermissionAware, setSelectAllLocales, setSortableTextFields, setStagingAware, unregisterIndexerPostProcessor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_NAMES
public static final String[] CLASS_NAMES
PORTLET_ID
public static final String PORTLET_ID
- See Also:
- Constant Field Values
MBMessageIndexer
public MBMessageIndexer()
addRelatedEntryFields
public void addRelatedEntryFields(Document document,
Object obj)
throws Exception
- Specified by:
addRelatedEntryFields in interface Indexer- Overrides:
addRelatedEntryFields in class BaseIndexer
- Throws:
Exception
getClassNames
public String[] getClassNames()
getPortletId
public String getPortletId()
hasPermission
public boolean hasPermission(PermissionChecker permissionChecker,
String entryClassName,
long entryClassPK,
String actionId)
throws Exception
- Specified by:
hasPermission in interface Indexer- Overrides:
hasPermission in class BaseIndexer
- Throws:
Exception
isVisible
public boolean isVisible(long classPK,
int status)
throws Exception
- Specified by:
isVisible in interface Indexer- Overrides:
isVisible in class BaseIndexer
- Throws:
Exception
isVisibleRelatedEntry
public boolean isVisibleRelatedEntry(long classPK,
int status)
throws Exception
- Specified by:
isVisibleRelatedEntry in interface Indexer- Overrides:
isVisibleRelatedEntry in class BaseIndexer
- Throws:
Exception
postProcessContextQuery
public void postProcessContextQuery(BooleanQuery contextQuery,
SearchContext searchContext)
throws Exception
- Specified by:
postProcessContextQuery in interface Indexer- Overrides:
postProcessContextQuery in class BaseIndexer
- Throws:
Exception
updateFullQuery
public void updateFullQuery(SearchContext searchContext)
- Specified by:
updateFullQuery in interface Indexer- Overrides:
updateFullQuery in class BaseIndexer
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,
PortletRequest portletRequest,
PortletResponse portletResponse)
- 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
- 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