com.liferay.portlet.messageboards.util
Class MBIndexer
java.lang.Object
com.liferay.portal.kernel.search.BaseIndexer
com.liferay.portlet.messageboards.util.MBIndexer
- All Implemented Interfaces:
- Indexer
public class MBIndexer
- extends BaseIndexer
Method Summary |
protected void |
doDelete(Object obj)
|
protected Document |
doGetDocument(Object obj)
|
protected void |
doReindex(Object obj)
|
protected void |
doReindex(String[] ids)
|
protected void |
doReindex(String className,
long classPK)
|
String[] |
getClassNames()
|
protected String |
getPortletId(SearchContext searchContext)
|
Summary |
getSummary(Document document,
String snippet,
PortletURL portletURL)
|
protected boolean |
hasPermission(PermissionChecker permissionChecker,
long entryClassPK,
String actionId)
|
protected boolean |
isFilterSearch()
|
protected void |
postProcessContextQuery(BooleanQuery contextQuery,
SearchContext searchContext)
|
protected String |
processContent(long messageId,
String content)
|
protected void |
reindexCategories(long companyId)
|
protected void |
reindexCategories(long companyId,
int categoryStart,
int categoryEnd)
|
protected void |
reindexMessages(long companyId,
long groupId,
long categoryId,
int messageStart,
int messageEnd)
|
protected void |
reindexRoot(long companyId)
|
protected void |
reindexRoot(long companyId,
int groupStart,
int groupEnd)
|
Methods inherited from class com.liferay.portal.kernel.search.BaseIndexer |
addSearchAssetCategoryIds, addSearchAssetTagNames, addSearchCategoryIds, addSearchFolderIds, addSearchGroupId, addSearchKeywords, addSearchNodeIds, addSearchOwnerUserId, addSearchPortletIds, checkSearchCategoryId, checkSearchFolderId, checkSearchNodeId, createFullQuery, delete, filterSearch, getClassName, getDocument, getParentGroupId, postProcessFullQuery, postProcessSearchQuery, reindex, reindex, reindex, search |
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
MBIndexer
public MBIndexer()
getClassNames
public String[] getClassNames()
getSummary
public Summary getSummary(Document document,
String snippet,
PortletURL portletURL)
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
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
hasPermission
protected boolean hasPermission(PermissionChecker permissionChecker,
long entryClassPK,
String actionId)
throws Exception
- Overrides:
hasPermission
in class BaseIndexer
- Throws:
Exception
isFilterSearch
protected boolean isFilterSearch()
- Overrides:
isFilterSearch
in class BaseIndexer
postProcessContextQuery
protected void postProcessContextQuery(BooleanQuery contextQuery,
SearchContext searchContext)
throws Exception
- Overrides:
postProcessContextQuery
in class BaseIndexer
- Throws:
Exception
processContent
protected String processContent(long messageId,
String content)
reindexCategories
protected void reindexCategories(long companyId)
throws Exception
- Throws:
Exception
reindexCategories
protected void reindexCategories(long companyId,
int categoryStart,
int categoryEnd)
throws Exception
- Throws:
Exception
reindexMessages
protected void reindexMessages(long companyId,
long groupId,
long categoryId,
int messageStart,
int messageEnd)
throws Exception
- Throws:
Exception
reindexRoot
protected void reindexRoot(long companyId)
throws Exception
- Throws:
Exception
reindexRoot
protected void reindexRoot(long companyId,
int groupStart,
int groupEnd)
throws Exception
- Throws:
Exception