public class DLFileEntryIndexer
extends com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
implements com.liferay.portal.kernel.search.RelatedEntryIndexer
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME |
Constructor and Description |
---|
DLFileEntryIndexer() |
Modifier and Type | Method and Description |
---|---|
protected void |
addFileEntryTypeAttributes(com.liferay.portal.kernel.search.Document document,
com.liferay.document.library.kernel.model.DLFileVersion dlFileVersion) |
void |
addRelatedClassNames(com.liferay.portal.kernel.search.filter.BooleanFilter contextBooleanFilter,
com.liferay.portal.kernel.search.SearchContext searchContext) |
void |
addRelatedEntryFields(com.liferay.portal.kernel.search.Document document,
Object obj) |
protected com.liferay.portal.kernel.search.Summary |
createSummary(Locale locale,
com.liferay.portal.kernel.search.Document document,
String titleField,
String contentField) |
protected void |
doDelete(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry) |
protected com.liferay.portal.kernel.search.Document |
doGetDocument(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry) |
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.document.library.kernel.model.DLFileEntry dlFileEntry) |
protected void |
doReindex(String[] ids) |
protected void |
doReindex(String className,
long classPK) |
protected String |
extractDDMContent(com.liferay.document.library.kernel.model.DLFileVersion dlFileVersion,
Locale locale) |
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) |
void |
postProcessSearchQuery(com.liferay.portal.kernel.search.BooleanQuery searchQuery,
com.liferay.portal.kernel.search.filter.BooleanFilter fullQueryBooleanFilter,
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) |
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, getExpandoQueryContributors, 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, 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 contextBooleanFilter, 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.document.library.kernel.model.DLFileEntry>
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.document.library.kernel.model.DLFileEntry>
hasPermission
in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
Exception
public boolean isVisible(long classPK, int status) throws Exception
isVisible
in interface com.liferay.portal.kernel.search.Indexer<com.liferay.document.library.kernel.model.DLFileEntry>
isVisible
in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
Exception
public boolean isVisibleRelatedEntry(long classPK, int status) throws Exception
isVisibleRelatedEntry
in interface com.liferay.portal.kernel.search.Indexer<com.liferay.document.library.kernel.model.DLFileEntry>
isVisibleRelatedEntry
in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
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.document.library.kernel.model.DLFileEntry>
postProcessContextBooleanFilter
in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
Exception
public void postProcessSearchQuery(com.liferay.portal.kernel.search.BooleanQuery searchQuery, com.liferay.portal.kernel.search.filter.BooleanFilter fullQueryBooleanFilter, com.liferay.portal.kernel.search.SearchContext searchContext) throws Exception
postProcessSearchQuery
in interface com.liferay.portal.kernel.search.Indexer<com.liferay.document.library.kernel.model.DLFileEntry>
postProcessSearchQuery
in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
Exception
public void updateFullQuery(com.liferay.portal.kernel.search.SearchContext searchContext)
updateFullQuery
in interface com.liferay.portal.kernel.search.RelatedEntryIndexer
protected void addFileEntryTypeAttributes(com.liferay.portal.kernel.search.Document document, com.liferay.document.library.kernel.model.DLFileVersion dlFileVersion) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected com.liferay.portal.kernel.search.Summary createSummary(Locale locale, com.liferay.portal.kernel.search.Document document, String titleField, String contentField)
protected void doDelete(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry) throws Exception
doDelete
in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
Exception
protected com.liferay.portal.kernel.search.Document doGetDocument(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry) throws Exception
doGetDocument
in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
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.document.library.kernel.model.DLFileEntry>
protected void doReindex(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry) throws Exception
doReindex
in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
Exception
protected void doReindex(String className, long classPK) throws Exception
doReindex
in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
Exception
protected void doReindex(String[] ids) throws Exception
doReindex
in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
Exception
protected String extractDDMContent(com.liferay.document.library.kernel.model.DLFileVersion dlFileVersion, Locale locale) throws Exception
Exception
protected void reindexFileEntries(long companyId, long groupId, long dataRepositoryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void reindexFolders(long companyId) 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