Liferay 7.0-ga1 portal-impl

com.liferay.portlet.documentlibrary.util
Class DLFileEntryIndexer

java.lang.Object
  extended by com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
      extended by com.liferay.portlet.documentlibrary.util.DLFileEntryIndexer
All Implemented Interfaces:
com.liferay.portal.kernel.search.Indexer<com.liferay.document.library.kernel.model.DLFileEntry>, com.liferay.portal.kernel.search.RelatedEntryIndexer

public class DLFileEntryIndexer
extends com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
implements com.liferay.portal.kernel.search.RelatedEntryIndexer


Field Summary
static String CLASS_NAME
           
 
Fields inherited from interface com.liferay.portal.kernel.search.Indexer
DEFAULT_INTERVAL
 
Constructor Summary
DLFileEntryIndexer()
           
 
Method Summary
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  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)
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAME

public static final String CLASS_NAME
Constructor Detail

DLFileEntryIndexer

public DLFileEntryIndexer()
Method Detail

addRelatedClassNames

public void addRelatedClassNames(com.liferay.portal.kernel.search.filter.BooleanFilter contextBooleanFilter,
                                 com.liferay.portal.kernel.search.SearchContext searchContext)
                          throws Exception
Specified by:
addRelatedClassNames in interface com.liferay.portal.kernel.search.RelatedEntryIndexer
Throws:
Exception

addRelatedEntryFields

public void addRelatedEntryFields(com.liferay.portal.kernel.search.Document document,
                                  Object obj)
                           throws Exception
Specified by:
addRelatedEntryFields in interface com.liferay.portal.kernel.search.RelatedEntryIndexer
Throws:
Exception

getClassName

public String getClassName()
Specified by:
getClassName in interface com.liferay.portal.kernel.search.Indexer<com.liferay.document.library.kernel.model.DLFileEntry>

hasPermission

public boolean hasPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
                             String entryClassName,
                             long entryClassPK,
                             String actionId)
                      throws Exception
Specified by:
hasPermission in interface com.liferay.portal.kernel.search.Indexer<com.liferay.document.library.kernel.model.DLFileEntry>
Overrides:
hasPermission in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
Throws:
Exception

isVisible

public boolean isVisible(long classPK,
                         int status)
                  throws Exception
Specified by:
isVisible in interface com.liferay.portal.kernel.search.Indexer<com.liferay.document.library.kernel.model.DLFileEntry>
Overrides:
isVisible in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
Throws:
Exception

isVisibleRelatedEntry

public boolean isVisibleRelatedEntry(long classPK,
                                     int status)
                              throws Exception
Specified by:
isVisibleRelatedEntry in interface com.liferay.portal.kernel.search.Indexer<com.liferay.document.library.kernel.model.DLFileEntry>
Overrides:
isVisibleRelatedEntry in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
Throws:
Exception

postProcessContextBooleanFilter

public void postProcessContextBooleanFilter(com.liferay.portal.kernel.search.filter.BooleanFilter contextBooleanFilter,
                                            com.liferay.portal.kernel.search.SearchContext searchContext)
                                     throws Exception
Specified by:
postProcessContextBooleanFilter in interface com.liferay.portal.kernel.search.Indexer<com.liferay.document.library.kernel.model.DLFileEntry>
Overrides:
postProcessContextBooleanFilter in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
Throws:
Exception

postProcessSearchQuery

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
Specified by:
postProcessSearchQuery in interface com.liferay.portal.kernel.search.Indexer<com.liferay.document.library.kernel.model.DLFileEntry>
Overrides:
postProcessSearchQuery in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
Throws:
Exception

updateFullQuery

public void updateFullQuery(com.liferay.portal.kernel.search.SearchContext searchContext)
Specified by:
updateFullQuery in interface com.liferay.portal.kernel.search.RelatedEntryIndexer

addFileEntryTypeAttributes

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
Throws:
com.liferay.portal.kernel.exception.PortalException

doDelete

protected void doDelete(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry)
                 throws Exception
Specified by:
doDelete in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
Throws:
Exception

doGetDocument

protected com.liferay.portal.kernel.search.Document doGetDocument(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry)
                                                           throws Exception
Specified by:
doGetDocument in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
Throws:
Exception

doGetSummary

protected com.liferay.portal.kernel.search.Summary doGetSummary(com.liferay.portal.kernel.search.Document document,
                                                                Locale locale,
                                                                String snippet,
                                                                PortletRequest portletRequest,
                                                                PortletResponse portletResponse)
Specified by:
doGetSummary in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>

doReindex

protected void doReindex(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry)
                  throws Exception
Specified by:
doReindex in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
Throws:
Exception

doReindex

protected void doReindex(String className,
                         long classPK)
                  throws Exception
Specified by:
doReindex in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
Throws:
Exception

doReindex

protected void doReindex(String[] ids)
                  throws Exception
Specified by:
doReindex in class com.liferay.portal.kernel.search.BaseIndexer<com.liferay.document.library.kernel.model.DLFileEntry>
Throws:
Exception

extractDDMContent

protected String extractDDMContent(com.liferay.document.library.kernel.model.DLFileVersion dlFileVersion,
                                   Locale locale)
                            throws Exception
Throws:
Exception

reindexFileEntries

protected void reindexFileEntries(long companyId,
                                  long groupId,
                                  long dataRepositoryId)
                           throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

reindexFolders

protected void reindexFolders(long companyId)
                       throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

reindexRoot

protected void reindexRoot(long companyId)
                    throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

Liferay 7.0-ga1 portal-impl