com.liferay.portlet.documentlibrary.util
Class DLIndexer
java.lang.Object
com.liferay.portal.kernel.search.BaseIndexer
com.liferay.portlet.documentlibrary.util.DLIndexer
- All Implemented Interfaces:
- com.liferay.portal.kernel.search.Indexer
public class DLIndexer
- extends com.liferay.portal.kernel.search.BaseIndexer
- Author:
- Brian Wing Shun Chan, Raymond Augé, Alexander Chow
| Fields inherited from class com.liferay.portal.kernel.search.BaseIndexer |
INDEX_FILTER_SEARCH_LIMIT |
| Fields inherited from interface com.liferay.portal.kernel.search.Indexer |
DEFAULT_INTERVAL |
|
Method Summary |
protected void |
addFileEntryTypeAttributes(com.liferay.portal.kernel.search.Document document,
com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion)
|
protected void |
doDelete(java.lang.Object obj)
|
protected com.liferay.portal.kernel.search.Document |
doGetDocument(java.lang.Object obj)
|
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.PortletURL portletURL)
|
protected void |
doReindex(java.lang.Object obj)
|
protected void |
doReindex(java.lang.String[] ids)
|
protected void |
doReindex(java.lang.String className,
long classPK)
|
java.lang.String[] |
getClassNames()
|
java.lang.String |
getPortletId()
|
protected java.lang.String |
getPortletId(com.liferay.portal.kernel.search.SearchContext searchContext)
|
boolean |
hasPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker,
long entryClassPK,
java.lang.String actionId)
|
boolean |
isFilterSearch()
|
boolean |
isPermissionAware()
|
void |
postProcessContextQuery(com.liferay.portal.kernel.search.BooleanQuery contextQuery,
com.liferay.portal.kernel.search.SearchContext searchContext)
|
void |
postProcessSearchQuery(com.liferay.portal.kernel.search.BooleanQuery searchQuery,
com.liferay.portal.kernel.search.SearchContext searchContext)
|
protected void |
reindexFileEntries(long companyId,
long groupId,
long dataRepositoryId)
|
protected void |
reindexFileEntries(long companyId,
long groupId,
long folderId,
int fileEntriesStart,
int fileEntriesEnd)
|
protected void |
reindexFolders(long companyId)
|
protected void |
reindexFolders(long companyId,
int folderStart,
int folderEnd)
|
protected void |
reindexRoot(long companyId)
|
protected void |
reindexRoot(long companyId,
int groupStart,
int groupEnd)
|
| Methods inherited from class com.liferay.portal.kernel.search.BaseIndexer |
addLocalizedSearchTerm, addSearchAssetCategoryIds, addSearchAssetTagNames, addSearchDDMStruture, addSearchEntryClassNames, addSearchExpando, addSearchGroupId, addSearchKeywords, addSearchTerm, addStagingGroupKeyword, createFullQuery, delete, delete, deleteDocument, deleteDocument, deleteDocument, deleteDocument, doGetSortField, filterSearch, getBaseModelDocument, getClassName, getDocument, getFacetQuery, getFullQuery, getIndexerPostProcessors, getParentGroupId, getSearchEngineId, getSortField, getSummary, isIndexerEnabled, isStagingAware, populateAddresses, postProcessFullQuery, registerIndexerPostProcessor, reindex, reindex, reindex, search, 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 java.lang.String[] CLASS_NAMES
PORTLET_ID
public static final java.lang.String PORTLET_ID
- See Also:
- Constant Field Values
DLIndexer
public DLIndexer()
getClassNames
public java.lang.String[] getClassNames()
getPortletId
public java.lang.String getPortletId()
hasPermission
public boolean hasPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker,
long entryClassPK,
java.lang.String actionId)
throws java.lang.Exception
- Specified by:
hasPermission in interface com.liferay.portal.kernel.search.Indexer- Overrides:
hasPermission in class com.liferay.portal.kernel.search.BaseIndexer
- Throws:
java.lang.Exception
isFilterSearch
public boolean isFilterSearch()
- Specified by:
isFilterSearch in interface com.liferay.portal.kernel.search.Indexer- Overrides:
isFilterSearch in class com.liferay.portal.kernel.search.BaseIndexer
isPermissionAware
public boolean isPermissionAware()
- Specified by:
isPermissionAware in interface com.liferay.portal.kernel.search.Indexer- Overrides:
isPermissionAware in class com.liferay.portal.kernel.search.BaseIndexer
postProcessContextQuery
public void postProcessContextQuery(com.liferay.portal.kernel.search.BooleanQuery contextQuery,
com.liferay.portal.kernel.search.SearchContext searchContext)
throws java.lang.Exception
- Specified by:
postProcessContextQuery in interface com.liferay.portal.kernel.search.Indexer- Overrides:
postProcessContextQuery in class com.liferay.portal.kernel.search.BaseIndexer
- Throws:
java.lang.Exception
postProcessSearchQuery
public void postProcessSearchQuery(com.liferay.portal.kernel.search.BooleanQuery searchQuery,
com.liferay.portal.kernel.search.SearchContext searchContext)
throws java.lang.Exception
- Specified by:
postProcessSearchQuery in interface com.liferay.portal.kernel.search.Indexer- Overrides:
postProcessSearchQuery in class com.liferay.portal.kernel.search.BaseIndexer
- Throws:
java.lang.Exception
addFileEntryTypeAttributes
protected void addFileEntryTypeAttributes(com.liferay.portal.kernel.search.Document document,
com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
doDelete
protected void doDelete(java.lang.Object obj)
throws java.lang.Exception
- Specified by:
doDelete in class com.liferay.portal.kernel.search.BaseIndexer
- Throws:
java.lang.Exception
doGetDocument
protected com.liferay.portal.kernel.search.Document doGetDocument(java.lang.Object obj)
throws java.lang.Exception
- Specified by:
doGetDocument in class com.liferay.portal.kernel.search.BaseIndexer
- Throws:
java.lang.Exception
doGetSummary
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.PortletURL portletURL)
- Specified by:
doGetSummary in class com.liferay.portal.kernel.search.BaseIndexer
doReindex
protected void doReindex(java.lang.Object obj)
throws java.lang.Exception
- Specified by:
doReindex in class com.liferay.portal.kernel.search.BaseIndexer
- Throws:
java.lang.Exception
doReindex
protected void doReindex(java.lang.String className,
long classPK)
throws java.lang.Exception
- Specified by:
doReindex in class com.liferay.portal.kernel.search.BaseIndexer
- Throws:
java.lang.Exception
doReindex
protected void doReindex(java.lang.String[] ids)
throws java.lang.Exception
- Specified by:
doReindex in class com.liferay.portal.kernel.search.BaseIndexer
- Throws:
java.lang.Exception
getPortletId
protected java.lang.String getPortletId(com.liferay.portal.kernel.search.SearchContext searchContext)
- Specified by:
getPortletId in class com.liferay.portal.kernel.search.BaseIndexer
reindexFileEntries
protected void reindexFileEntries(long companyId,
long groupId,
long dataRepositoryId)
throws java.lang.Exception
- Throws:
java.lang.Exception
reindexFileEntries
protected void reindexFileEntries(long companyId,
long groupId,
long folderId,
int fileEntriesStart,
int fileEntriesEnd)
throws java.lang.Exception
- Throws:
java.lang.Exception
reindexFolders
protected void reindexFolders(long companyId)
throws java.lang.Exception
- Throws:
java.lang.Exception
reindexFolders
protected void reindexFolders(long companyId,
int folderStart,
int folderEnd)
throws java.lang.Exception
- Throws:
java.lang.Exception
reindexRoot
protected void reindexRoot(long companyId)
throws java.lang.Exception
- Throws:
java.lang.Exception
reindexRoot
protected void reindexRoot(long companyId,
int groupStart,
int groupEnd)
throws java.lang.Exception
- Throws:
java.lang.Exception