com.liferay.portlet.documentlibrary.util
Class DLFileEntryIndexer
java.lang.Object
com.liferay.portal.kernel.search.BaseIndexer<DLFileEntry>
com.liferay.portlet.documentlibrary.util.DLFileEntryIndexer
- All Implemented Interfaces:
- Indexer<DLFileEntry>, RelatedEntryIndexer
public class DLFileEntryIndexer
- extends BaseIndexer<DLFileEntry>
- implements RelatedEntryIndexer
|
Method Summary |
protected void |
addFileEntryTypeAttributes(Document document,
DLFileVersion dlFileVersion)
|
void |
addRelatedClassNames(BooleanFilter contextBooleanFilter,
SearchContext searchContext)
|
void |
addRelatedEntryFields(Document document,
Object obj)
|
protected void |
doDelete(DLFileEntry dlFileEntry)
|
protected Document |
doGetDocument(DLFileEntry dlFileEntry)
|
protected Summary |
doGetSummary(Document document,
Locale locale,
String snippet,
PortletRequest portletRequest,
PortletResponse portletResponse)
|
protected void |
doReindex(DLFileEntry dlFileEntry)
|
protected void |
doReindex(String[] ids)
|
protected void |
doReindex(String className,
long classPK)
|
protected String |
extractDDMContent(DLFileVersion dlFileVersion,
Locale locale)
|
String |
getClassName()
|
boolean |
hasPermission(PermissionChecker permissionChecker,
String entryClassName,
long entryClassPK,
String actionId)
|
boolean |
isVisible(long classPK,
int status)
|
boolean |
isVisibleRelatedEntry(long classPK,
int status)
|
void |
postProcessContextBooleanFilter(BooleanFilter contextBooleanFilter,
SearchContext searchContext)
|
void |
postProcessSearchQuery(BooleanQuery searchQuery,
BooleanFilter fullQueryBooleanFilter,
SearchContext searchContext)
|
protected void |
reindexFileEntries(long companyId,
long groupId,
long dataRepositoryId)
|
protected void |
reindexFolders(long companyId)
|
protected void |
reindexRoot(long companyId)
|
void |
updateFullQuery(SearchContext searchContext)
|
| Methods inherited from class com.liferay.portal.kernel.search.BaseIndexer |
addAssetFields, addDefaultHighlightFieldNames, addDefaultSelectedFieldNames, addFacetClause, addFacetSelectedFieldNames, 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, 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 |
CLASS_NAME
public static final String CLASS_NAME
DLFileEntryIndexer
public DLFileEntryIndexer()
addRelatedClassNames
public void addRelatedClassNames(BooleanFilter contextBooleanFilter,
SearchContext searchContext)
throws Exception
- Specified by:
addRelatedClassNames in interface RelatedEntryIndexer
- Throws:
Exception
addRelatedEntryFields
public void addRelatedEntryFields(Document document,
Object obj)
throws Exception
- Specified by:
addRelatedEntryFields in interface RelatedEntryIndexer
- Throws:
Exception
getClassName
public String getClassName()
- Specified by:
getClassName in interface Indexer<DLFileEntry>
hasPermission
public boolean hasPermission(PermissionChecker permissionChecker,
String entryClassName,
long entryClassPK,
String actionId)
throws Exception
- Specified by:
hasPermission in interface Indexer<DLFileEntry>- Overrides:
hasPermission in class BaseIndexer<DLFileEntry>
- Throws:
Exception
isVisible
public boolean isVisible(long classPK,
int status)
throws Exception
- Specified by:
isVisible in interface Indexer<DLFileEntry>- Overrides:
isVisible in class BaseIndexer<DLFileEntry>
- Throws:
Exception
isVisibleRelatedEntry
public boolean isVisibleRelatedEntry(long classPK,
int status)
throws Exception
- Specified by:
isVisibleRelatedEntry in interface Indexer<DLFileEntry>- Overrides:
isVisibleRelatedEntry in class BaseIndexer<DLFileEntry>
- Throws:
Exception
postProcessContextBooleanFilter
public void postProcessContextBooleanFilter(BooleanFilter contextBooleanFilter,
SearchContext searchContext)
throws Exception
- Specified by:
postProcessContextBooleanFilter in interface Indexer<DLFileEntry>- Overrides:
postProcessContextBooleanFilter in class BaseIndexer<DLFileEntry>
- Throws:
Exception
postProcessSearchQuery
public void postProcessSearchQuery(BooleanQuery searchQuery,
BooleanFilter fullQueryBooleanFilter,
SearchContext searchContext)
throws Exception
- Specified by:
postProcessSearchQuery in interface Indexer<DLFileEntry>- Overrides:
postProcessSearchQuery in class BaseIndexer<DLFileEntry>
- Throws:
Exception
updateFullQuery
public void updateFullQuery(SearchContext searchContext)
- Specified by:
updateFullQuery in interface RelatedEntryIndexer
addFileEntryTypeAttributes
protected void addFileEntryTypeAttributes(Document document,
DLFileVersion dlFileVersion)
throws PortalException
- Throws:
PortalException
doDelete
protected void doDelete(DLFileEntry dlFileEntry)
throws Exception
- Specified by:
doDelete in class BaseIndexer<DLFileEntry>
- Throws:
Exception
doGetDocument
protected Document doGetDocument(DLFileEntry dlFileEntry)
throws Exception
- Specified by:
doGetDocument in class BaseIndexer<DLFileEntry>
- Throws:
Exception
doGetSummary
protected Summary doGetSummary(Document document,
Locale locale,
String snippet,
PortletRequest portletRequest,
PortletResponse portletResponse)
- Specified by:
doGetSummary in class BaseIndexer<DLFileEntry>
doReindex
protected void doReindex(DLFileEntry dlFileEntry)
throws Exception
- Specified by:
doReindex in class BaseIndexer<DLFileEntry>
- Throws:
Exception
doReindex
protected void doReindex(String className,
long classPK)
throws Exception
- Specified by:
doReindex in class BaseIndexer<DLFileEntry>
- Throws:
Exception
doReindex
protected void doReindex(String[] ids)
throws Exception
- Specified by:
doReindex in class BaseIndexer<DLFileEntry>
- Throws:
Exception
extractDDMContent
protected String extractDDMContent(DLFileVersion dlFileVersion,
Locale locale)
throws Exception
- Throws:
Exception
reindexFileEntries
protected void reindexFileEntries(long companyId,
long groupId,
long dataRepositoryId)
throws PortalException
- Throws:
PortalException
reindexFolders
protected void reindexFolders(long companyId)
throws PortalException
- Throws:
PortalException
reindexRoot
protected void reindexRoot(long companyId)
throws PortalException
- Throws:
PortalException