public class JournalArticleIndexer
extends com.liferay.portal.kernel.search.BaseIndexer<com.liferay.journal.model.JournalArticle>
implements com.liferay.portal.kernel.search.DDMStructureIndexer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_NAME |
| Constructor and Description |
|---|
JournalArticleIndexer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDDMStructureAttributes(com.liferay.portal.kernel.search.Document document,
com.liferay.journal.model.JournalArticle article) |
protected java.util.Map<java.lang.String,com.liferay.portal.kernel.search.Query> |
addSearchLocalizedTerm(com.liferay.portal.kernel.search.BooleanQuery searchQuery,
com.liferay.portal.kernel.search.SearchContext searchContext,
java.lang.String field,
boolean like) |
protected void |
doDelete(com.liferay.journal.model.JournalArticle journalArticle) |
protected com.liferay.portal.kernel.search.Document |
doGetDocument(com.liferay.journal.model.JournalArticle journalArticle) |
protected java.lang.String |
doGetSortField(java.lang.String orderByCol) |
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.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse) |
protected void |
doReindex(com.liferay.journal.model.JournalArticle article) |
protected void |
doReindex(java.lang.String[] ids) |
protected void |
doReindex(java.lang.String className,
long classPK) |
protected java.lang.String |
extractDDMContent(com.liferay.journal.model.JournalArticle article,
java.lang.String languageId) |
protected com.liferay.journal.model.JournalArticle |
fetchLatestIndexableArticleVersion(long resourcePrimKey) |
protected java.util.Collection<com.liferay.portal.kernel.search.Document> |
getArticleVersions(com.liferay.journal.model.JournalArticle article) |
java.lang.String |
getClassName() |
protected java.lang.String |
getDDMContentSummary(com.liferay.portal.kernel.search.Document document,
java.util.Locale snippetLocale,
javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse) |
boolean |
hasPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
java.lang.String entryClassName,
long entryClassPK,
java.lang.String actionId) |
boolean |
isVisible(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 |
reindexArticles(long companyId) |
protected void |
reindexArticleVersions(com.liferay.journal.model.JournalArticle article) |
void |
reindexDDMStructures(java.util.List<java.lang.Long> ddmStructureIds) |
protected void |
setDDMIndexer(com.liferay.dynamic.data.mapping.util.DDMIndexer ddmIndexer) |
protected void |
setDDMStructureLocalService(com.liferay.dynamic.data.mapping.service.DDMStructureLocalService ddmStructureLocalService) |
protected void |
setFieldsToDDMFormValuesConverter(com.liferay.dynamic.data.mapping.util.FieldsToDDMFormValuesConverter fieldsToDDMFormValuesConverter) |
protected void |
setJournalArticleLocalService(com.liferay.journal.service.JournalArticleLocalService journalArticleLocalService) |
protected void |
setJournalContent(com.liferay.journal.util.JournalContent journalContent) |
protected void |
setJournalConverter(com.liferay.journal.util.JournalConverter journalConverter) |
addAssetFields, addDefaultHighlightFieldNames, addDefaultSelectedFieldNames, addFacetClause, addFacetSelectedFieldNames, addSearchAssetCategoryIds, addSearchAssetCategoryTitles, addSearchAssetTagNames, addSearchClassTypeIds, addSearchEntryClassNames, addSearchExpando, addSearchFolderId, addSearchGroupId, addSearchKeywords, addSearchLayout, addSearchTerm, addSearchUserId, addSelectedLocalizedFieldNames, addStagingGroupKeyword, addStatus, addTrashFields, createFullQuery, createSummary, createSummary, delete, delete, deleteDocument, deleteDocument, deleteDocument, deleteDocument, doPostProcessSearchQuery, doSearch, equals, getBaseModelDocument, getBaseModelDocument, getClassName, getClassNames, getDefaultSelectedFieldNames, getDefaultSelectedLocalizedFieldNames, getDocument, getExpandoFieldName, 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, isVisibleRelatedEntry, newDocument, populateAddresses, populateMap, postProcessContextQuery, postProcessFullQuery, postProcessSearchQuery, processHits, registerIndexerPostProcessor, reindex, reindex, reindex, reindex, resetFullQuery, search, search, searchCount, setCommitImmediately, setDefaultSelectedFieldNames, setDefaultSelectedLocalizedFieldNames, setFilterSearch, setIndexerEnabled, setPermissionAware, setSelectAllLocales, setStagingAware, unregisterIndexerPostProcessorpublic java.lang.String getClassName()
getClassName in interface com.liferay.portal.kernel.search.Indexer<com.liferay.journal.model.JournalArticle>public boolean hasPermission(com.liferay.portal.kernel.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.Indexer<com.liferay.journal.model.JournalArticle>hasPermission in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.journal.model.JournalArticle>java.lang.Exceptionpublic boolean isVisible(long classPK,
int status)
throws java.lang.Exception
isVisible in interface com.liferay.portal.kernel.search.Indexer<com.liferay.journal.model.JournalArticle>isVisible in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.journal.model.JournalArticle>java.lang.Exceptionpublic void postProcessContextBooleanFilter(com.liferay.portal.kernel.search.filter.BooleanFilter contextBooleanFilter,
com.liferay.portal.kernel.search.SearchContext searchContext)
throws java.lang.Exception
postProcessContextBooleanFilter in interface com.liferay.portal.kernel.search.Indexer<com.liferay.journal.model.JournalArticle>postProcessContextBooleanFilter in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.journal.model.JournalArticle>java.lang.Exceptionpublic 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 java.lang.Exception
postProcessSearchQuery in interface com.liferay.portal.kernel.search.Indexer<com.liferay.journal.model.JournalArticle>postProcessSearchQuery in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.journal.model.JournalArticle>java.lang.Exceptionpublic void reindexDDMStructures(java.util.List<java.lang.Long> ddmStructureIds)
throws com.liferay.portal.kernel.search.SearchException
reindexDDMStructures in interface com.liferay.portal.kernel.search.DDMStructureIndexercom.liferay.portal.kernel.search.SearchExceptionprotected void addDDMStructureAttributes(com.liferay.portal.kernel.search.Document document,
com.liferay.journal.model.JournalArticle article)
throws java.lang.Exception
java.lang.Exceptionprotected java.util.Map<java.lang.String,com.liferay.portal.kernel.search.Query> addSearchLocalizedTerm(com.liferay.portal.kernel.search.BooleanQuery searchQuery,
com.liferay.portal.kernel.search.SearchContext searchContext,
java.lang.String field,
boolean like)
throws java.lang.Exception
addSearchLocalizedTerm in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.journal.model.JournalArticle>java.lang.Exceptionprotected void doDelete(com.liferay.journal.model.JournalArticle journalArticle)
throws java.lang.Exception
doDelete in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.journal.model.JournalArticle>java.lang.Exceptionprotected com.liferay.portal.kernel.search.Document doGetDocument(com.liferay.journal.model.JournalArticle journalArticle)
throws java.lang.Exception
doGetDocument in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.journal.model.JournalArticle>java.lang.Exceptionprotected java.lang.String doGetSortField(java.lang.String orderByCol)
doGetSortField in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.journal.model.JournalArticle>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.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse)
doGetSummary in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.journal.model.JournalArticle>protected void doReindex(com.liferay.journal.model.JournalArticle article)
throws java.lang.Exception
doReindex in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.journal.model.JournalArticle>java.lang.Exceptionprotected void doReindex(java.lang.String className,
long classPK)
throws java.lang.Exception
doReindex in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.journal.model.JournalArticle>java.lang.Exceptionprotected void doReindex(java.lang.String[] ids)
throws java.lang.Exception
doReindex in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.journal.model.JournalArticle>java.lang.Exceptionprotected java.lang.String extractDDMContent(com.liferay.journal.model.JournalArticle article,
java.lang.String languageId)
throws java.lang.Exception
java.lang.Exceptionprotected com.liferay.journal.model.JournalArticle fetchLatestIndexableArticleVersion(long resourcePrimKey)
protected java.util.Collection<com.liferay.portal.kernel.search.Document> getArticleVersions(com.liferay.journal.model.JournalArticle article)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected java.lang.String getDDMContentSummary(com.liferay.portal.kernel.search.Document document,
java.util.Locale snippetLocale,
javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse)
protected void reindexArticles(long companyId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void reindexArticleVersions(com.liferay.journal.model.JournalArticle article)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void setDDMIndexer(com.liferay.dynamic.data.mapping.util.DDMIndexer ddmIndexer)
protected void setDDMStructureLocalService(com.liferay.dynamic.data.mapping.service.DDMStructureLocalService ddmStructureLocalService)
protected void setFieldsToDDMFormValuesConverter(com.liferay.dynamic.data.mapping.util.FieldsToDDMFormValuesConverter fieldsToDDMFormValuesConverter)
protected void setJournalArticleLocalService(com.liferay.journal.service.JournalArticleLocalService journalArticleLocalService)
protected void setJournalContent(com.liferay.journal.util.JournalContent journalContent)
protected void setJournalConverter(com.liferay.journal.util.JournalConverter journalConverter)