public class JournalArticleIndexer
extends com.liferay.portal.kernel.search.BaseIndexer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
CLASS_NAMES |
static boolean |
JOURNAL_ARTICLE_INDEX_ALL_VERSIONS |
static java.lang.String |
PORTLET_ID |
| Constructor and Description |
|---|
JournalArticleIndexer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDDMStructureAttributes(com.liferay.portal.kernel.search.Document document,
com.liferay.portlet.journal.model.JournalArticle article) |
protected void |
addSearchLocalizedTerm(com.liferay.portal.kernel.search.BooleanQuery searchQuery,
com.liferay.portal.kernel.search.SearchContext searchContext,
java.lang.String field,
boolean like) |
protected void |
addStatus(com.liferay.portal.kernel.search.BooleanQuery contextQuery,
com.liferay.portal.kernel.search.SearchContext searchContext) |
protected void |
doDelete(java.lang.Object obj) |
protected com.liferay.portal.kernel.search.Document |
doGetDocument(java.lang.Object obj) |
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.PortletURL portletURL) |
void |
doReindex(com.liferay.portlet.journal.model.JournalArticle article,
boolean allVersions) |
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 |
extractBasicContent(com.liferay.portlet.journal.model.JournalArticle article,
java.lang.String languageId) |
protected java.lang.String |
extractContent(com.liferay.portlet.journal.model.JournalArticle article,
java.lang.String languageId) |
protected java.lang.String |
extractDDMContent(com.liferay.portlet.journal.model.JournalArticle article,
java.lang.String languageId) |
protected com.liferay.portlet.journal.model.JournalArticle |
fetchLatestIndexableArticleVersion(long resourcePrimKey) |
protected java.util.Collection<com.liferay.portal.kernel.search.Document> |
getArticleVersions(com.liferay.portlet.journal.model.JournalArticle article) |
protected java.lang.String |
getBasicContentSummary(com.liferay.portal.kernel.search.Document document,
java.util.Locale snippetLocale) |
java.lang.String[] |
getClassNames() |
protected java.lang.String |
getDDMContentSummary(com.liferay.portal.kernel.search.Document document,
java.util.Locale snippetLocale) |
protected java.lang.String[] |
getLanguageIds(java.lang.String defaultLanguageId,
java.lang.String content) |
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) |
protected boolean |
isHead(com.liferay.portlet.journal.model.JournalArticle article) |
protected boolean |
isHeadListable(com.liferay.portlet.journal.model.JournalArticle article) |
boolean |
isVisible(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 |
reindexArticles(long companyId) |
protected void |
reindexArticleVersions(com.liferay.portlet.journal.model.JournalArticle article) |
addAssetFields, addLocalizedSearchTerm, addRelatedClassNames, addRelatedEntryFields, addSearchArrayQuery, addSearchAssetCategoryIds, addSearchAssetCategoryTitles, addSearchAssetTagNames, addSearchClassTypeIds, addSearchDDMStruture, addSearchEntryClassNames, addSearchExpando, addSearchFolderId, addSearchGroupId, addSearchKeywords, addSearchLayout, addSearchTerm, addSearchUserId, addStagingGroupKeyword, addTrashFields, createFullQuery, createLocalizedSummary, createLocalizedSummary, createSummary, createSummary, delete, delete, deleteDocument, deleteDocument, deleteDocument, deleteDocument, doSearch, filterSearch, getBaseModelDocument, getBaseModelDocument, getClassName, getDocument, getFacetQuery, getFullQuery, getIndexerPostProcessors, getLocalizedCountryNames, getParentGroupId, getSearchEngineId, getSiteGroupId, getSnippetLocale, getSortField, getSortField, getSummary, isCommitImmediately, isFilterSearch, isIndexerEnabled, isPermissionAware, isStagingAware, isUseSearchResultPermissionFilter, isVisible, isVisibleRelatedEntry, 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 boolean JOURNAL_ARTICLE_INDEX_ALL_VERSIONS
public static final java.lang.String PORTLET_ID
public 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 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 addDDMStructureAttributes(com.liferay.portal.kernel.search.Document document,
com.liferay.portlet.journal.model.JournalArticle article)
throws java.lang.Exception
java.lang.Exceptionprotected void 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.BaseIndexerjava.lang.Exceptionprotected void addStatus(com.liferay.portal.kernel.search.BooleanQuery contextQuery,
com.liferay.portal.kernel.search.SearchContext searchContext)
throws java.lang.Exception
addStatus in class com.liferay.portal.kernel.search.BaseIndexerjava.lang.Exceptionprotected 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 java.lang.String doGetSortField(java.lang.String orderByCol)
doGetSortField in class com.liferay.portal.kernel.search.BaseIndexerprotected 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.BaseIndexerpublic void doReindex(com.liferay.portlet.journal.model.JournalArticle article,
boolean allVersions)
throws java.lang.Exception
java.lang.Exceptionprotected 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 extractBasicContent(com.liferay.portlet.journal.model.JournalArticle article,
java.lang.String languageId)
protected java.lang.String extractContent(com.liferay.portlet.journal.model.JournalArticle article,
java.lang.String languageId)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String extractDDMContent(com.liferay.portlet.journal.model.JournalArticle article,
java.lang.String languageId)
throws java.lang.Exception
java.lang.Exceptionprotected com.liferay.portlet.journal.model.JournalArticle fetchLatestIndexableArticleVersion(long resourcePrimKey)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionprotected java.util.Collection<com.liferay.portal.kernel.search.Document> getArticleVersions(com.liferay.portlet.journal.model.JournalArticle article)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected java.lang.String getBasicContentSummary(com.liferay.portal.kernel.search.Document document,
java.util.Locale snippetLocale)
protected java.lang.String getDDMContentSummary(com.liferay.portal.kernel.search.Document document,
java.util.Locale snippetLocale)
protected java.lang.String[] getLanguageIds(java.lang.String defaultLanguageId,
java.lang.String content)
protected java.lang.String getPortletId(com.liferay.portal.kernel.search.SearchContext searchContext)
getPortletId in class com.liferay.portal.kernel.search.BaseIndexerprotected boolean isHead(com.liferay.portlet.journal.model.JournalArticle article)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionprotected boolean isHeadListable(com.liferay.portlet.journal.model.JournalArticle article)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionprotected void reindexArticles(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 reindexArticleVersions(com.liferay.portlet.journal.model.JournalArticle article)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemException