public class DLFileEntryIndexer
extends com.liferay.portal.kernel.search.BaseIndexer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
CLASS_NAMES |
static java.lang.String |
PORTLET_ID |
| Constructor and Description |
|---|
DLFileEntryIndexer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFileEntryTypeAttributes(com.liferay.portal.kernel.search.Document document,
com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion) |
void |
addRelatedEntryFields(com.liferay.portal.kernel.search.Document document,
java.lang.Object obj) |
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) |
protected void |
doReindexDDMStructures(java.util.List<java.lang.Long> ddmStructureIds) |
protected java.lang.String |
extractDDMContent(com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
java.util.Locale locale) |
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,
java.lang.String entryClassName,
long entryClassPK,
java.lang.String actionId) |
boolean |
isVisible(long classPK,
int status) |
boolean |
isVisibleRelatedEntry(long classPK,
int status) |
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 |
reindexFolders(long companyId) |
protected void |
reindexRoot(long companyId) |
addAssetFields, addLocalizedSearchTerm, addRelatedClassNames, addSearchArrayQuery, addSearchAssetCategoryIds, addSearchAssetCategoryTitles, addSearchAssetTagNames, addSearchClassTypeIds, addSearchDDMStruture, addSearchEntryClassNames, addSearchExpando, addSearchFolderId, addSearchGroupId, addSearchKeywords, addSearchLayout, addSearchLocalizedTerm, addSearchTerm, addSearchUserId, addStagingGroupKeyword, addStatus, addTrashFields, createFullQuery, createLocalizedSummary, createLocalizedSummary, createSummary, createSummary, delete, delete, deleteDocument, deleteDocument, deleteDocument, deleteDocument, doGetSortField, doSearch, filterSearch, getBaseModelDocument, getBaseModelDocument, getClassName, getDocument, getFacetQuery, getFullQuery, getIndexerPostProcessors, getLocalizedCountryNames, getParentGroupId, getSearchEngineId, getSiteGroupId, getSnippetLocale, getSortField, getSortField, getSummary, isCommitImmediately, isFilterSearch, isIndexerEnabled, isPermissionAware, isStagingAware, isUseSearchResultPermissionFilter, isVisible, newDocument, populateAddresses, populateMap, postProcessFullQuery, processHits, registerIndexerPostProcessor, reindex, reindex, reindex, reindexDDMStructures, search, setCommitImmediately, setFilterSearch, setIndexerEnabled, setPermissionAware, setSortableTextFields, setStagingAware, unregisterIndexerPostProcessorpublic static final java.lang.String[] CLASS_NAMES
public static final java.lang.String PORTLET_ID
public 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.IndexeraddRelatedEntryFields in class com.liferay.portal.kernel.search.BaseIndexerjava.lang.Exceptionpublic java.lang.String[] getClassNames()
public java.lang.String getPortletId()
public boolean hasPermission(com.liferay.portal.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.IndexerhasPermission in class com.liferay.portal.kernel.search.BaseIndexerjava.lang.Exceptionpublic boolean isVisible(long classPK,
int status)
throws java.lang.Exception
isVisible in interface com.liferay.portal.kernel.search.IndexerisVisible in class com.liferay.portal.kernel.search.BaseIndexerjava.lang.Exceptionpublic boolean isVisibleRelatedEntry(long classPK,
int status)
throws java.lang.Exception
isVisibleRelatedEntry in interface com.liferay.portal.kernel.search.IndexerisVisibleRelatedEntry in class com.liferay.portal.kernel.search.BaseIndexerjava.lang.Exceptionpublic void postProcessContextQuery(com.liferay.portal.kernel.search.BooleanQuery contextQuery,
com.liferay.portal.kernel.search.SearchContext searchContext)
throws java.lang.Exception
postProcessContextQuery in interface com.liferay.portal.kernel.search.IndexerpostProcessContextQuery in class com.liferay.portal.kernel.search.BaseIndexerjava.lang.Exceptionpublic void postProcessSearchQuery(com.liferay.portal.kernel.search.BooleanQuery searchQuery,
com.liferay.portal.kernel.search.SearchContext searchContext)
throws java.lang.Exception
postProcessSearchQuery in interface com.liferay.portal.kernel.search.IndexerpostProcessSearchQuery in class com.liferay.portal.kernel.search.BaseIndexerjava.lang.Exceptionprotected 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
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected void doDelete(java.lang.Object obj)
throws java.lang.Exception
doDelete in class com.liferay.portal.kernel.search.BaseIndexerjava.lang.Exceptionprotected com.liferay.portal.kernel.search.Document doGetDocument(java.lang.Object obj)
throws java.lang.Exception
doGetDocument in class com.liferay.portal.kernel.search.BaseIndexerjava.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.PortletURL portletURL)
doGetSummary in class com.liferay.portal.kernel.search.BaseIndexerprotected void doReindex(java.lang.Object obj)
throws java.lang.Exception
doReindex in class com.liferay.portal.kernel.search.BaseIndexerjava.lang.Exceptionprotected void doReindex(java.lang.String className,
long classPK)
throws java.lang.Exception
doReindex in class com.liferay.portal.kernel.search.BaseIndexerjava.lang.Exceptionprotected void doReindex(java.lang.String[] ids)
throws java.lang.Exception
doReindex in class com.liferay.portal.kernel.search.BaseIndexerjava.lang.Exceptionprotected void doReindexDDMStructures(java.util.List<java.lang.Long> ddmStructureIds)
throws java.lang.Exception
doReindexDDMStructures in class com.liferay.portal.kernel.search.BaseIndexerjava.lang.Exceptionprotected java.lang.String extractDDMContent(com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
java.util.Locale locale)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String getPortletId(com.liferay.portal.kernel.search.SearchContext searchContext)
getPortletId in class com.liferay.portal.kernel.search.BaseIndexerprotected void reindexFileEntries(long companyId,
long groupId,
long dataRepositoryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected void reindexFolders(long companyId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected void reindexRoot(long companyId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemException