public class JournalArticleIndexer extends com.liferay.portal.kernel.search.BaseIndexer<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,
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(JournalArticle journalArticle) |
protected com.liferay.portal.kernel.search.Document |
doGetDocument(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(JournalArticle article) |
protected void |
doReindex(java.lang.String[] ids) |
protected void |
doReindex(java.lang.String className,
long classPK) |
protected java.lang.String |
extractDDMContent(JournalArticle article,
java.lang.String languageId) |
protected JournalArticle |
fetchLatestIndexableArticleVersion(long resourcePrimKey) |
protected java.util.Collection<com.liferay.portal.kernel.search.Document> |
getArticleVersions(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) |
protected boolean |
isIndexAllArticleVersions() |
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(JournalArticle article) |
void |
reindexDDMStructures(java.util.List<java.lang.Long> ddmStructureIds) |
protected void |
setConfigurationProvider(com.liferay.portal.kernel.module.configuration.ConfigurationProvider configurationProvider) |
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(JournalArticleLocalService journalArticleLocalService) |
protected void |
setJournalArticleResourceLocalService(JournalArticleResourceLocalService journalArticleResourceLocalService) |
protected void |
setJournalContent(JournalContent journalContent) |
protected void |
setJournalConverter(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, unregisterIndexerPostProcessor
public java.lang.String getClassName()
getClassName
in interface com.liferay.portal.kernel.search.Indexer<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<JournalArticle>
hasPermission
in class com.liferay.portal.kernel.search.BaseIndexer<JournalArticle>
java.lang.Exception
public boolean isVisible(long classPK, int status) throws java.lang.Exception
isVisible
in interface com.liferay.portal.kernel.search.Indexer<JournalArticle>
isVisible
in class com.liferay.portal.kernel.search.BaseIndexer<JournalArticle>
java.lang.Exception
public 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<JournalArticle>
postProcessContextBooleanFilter
in class com.liferay.portal.kernel.search.BaseIndexer<JournalArticle>
java.lang.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 java.lang.Exception
postProcessSearchQuery
in interface com.liferay.portal.kernel.search.Indexer<JournalArticle>
postProcessSearchQuery
in class com.liferay.portal.kernel.search.BaseIndexer<JournalArticle>
java.lang.Exception
public void reindexDDMStructures(java.util.List<java.lang.Long> ddmStructureIds) throws com.liferay.portal.kernel.search.SearchException
reindexDDMStructures
in interface com.liferay.portal.kernel.search.DDMStructureIndexer
com.liferay.portal.kernel.search.SearchException
protected void addDDMStructureAttributes(com.liferay.portal.kernel.search.Document document, JournalArticle article) throws java.lang.Exception
java.lang.Exception
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) throws java.lang.Exception
addSearchLocalizedTerm
in class com.liferay.portal.kernel.search.BaseIndexer<JournalArticle>
java.lang.Exception
protected void doDelete(JournalArticle journalArticle) throws java.lang.Exception
doDelete
in class com.liferay.portal.kernel.search.BaseIndexer<JournalArticle>
java.lang.Exception
protected com.liferay.portal.kernel.search.Document doGetDocument(JournalArticle journalArticle) throws java.lang.Exception
doGetDocument
in class com.liferay.portal.kernel.search.BaseIndexer<JournalArticle>
java.lang.Exception
protected java.lang.String doGetSortField(java.lang.String orderByCol)
doGetSortField
in class com.liferay.portal.kernel.search.BaseIndexer<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<JournalArticle>
protected void doReindex(JournalArticle article) throws java.lang.Exception
doReindex
in class com.liferay.portal.kernel.search.BaseIndexer<JournalArticle>
java.lang.Exception
protected void doReindex(java.lang.String className, long classPK) throws java.lang.Exception
doReindex
in class com.liferay.portal.kernel.search.BaseIndexer<JournalArticle>
java.lang.Exception
protected void doReindex(java.lang.String[] ids) throws java.lang.Exception
doReindex
in class com.liferay.portal.kernel.search.BaseIndexer<JournalArticle>
java.lang.Exception
protected java.lang.String extractDDMContent(JournalArticle article, java.lang.String languageId) throws java.lang.Exception
java.lang.Exception
protected JournalArticle fetchLatestIndexableArticleVersion(long resourcePrimKey)
protected java.util.Collection<com.liferay.portal.kernel.search.Document> getArticleVersions(JournalArticle article) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected java.lang.String getDDMContentSummary(com.liferay.portal.kernel.search.Document document, java.util.Locale snippetLocale, javax.portlet.PortletRequest portletRequest, javax.portlet.PortletResponse portletResponse)
protected boolean isIndexAllArticleVersions()
protected void reindexArticles(long companyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void reindexArticleVersions(JournalArticle article) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void setConfigurationProvider(com.liferay.portal.kernel.module.configuration.ConfigurationProvider configurationProvider)
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(JournalArticleLocalService journalArticleLocalService)
protected void setJournalArticleResourceLocalService(JournalArticleResourceLocalService journalArticleResourceLocalService)
protected void setJournalContent(JournalContent journalContent)
protected void setJournalConverter(JournalConverter journalConverter)