Liferay 7.0-ce-b4

com.liferay.portlet.usersadmin.util
Class UserIndexer

java.lang.Object
  extended by com.liferay.portal.kernel.search.BaseIndexer<User>
      extended by com.liferay.portlet.usersadmin.util.UserIndexer
All Implemented Interfaces:
Indexer<User>

public class UserIndexer
extends BaseIndexer<User>


Field Summary
static String CLASS_NAME
           
 
Fields inherited from interface com.liferay.portal.kernel.search.Indexer
DEFAULT_INTERVAL
 
Constructor Summary
UserIndexer()
           
 
Method Summary
protected  void addContextQueryParams(BooleanFilter contextFilter, SearchContext searchContext, String key, Object value)
           
protected  void doDelete(User user)
           
protected  Document doGetDocument(User user)
           
protected  String doGetSortField(String orderByCol)
           
protected  Summary doGetSummary(Document document, Locale locale, String snippet, PortletRequest portletRequest, PortletResponse portletResponse)
           
protected  void doReindex(String[] ids)
           
protected  void doReindex(String className, long classPK)
           
protected  void doReindex(User user)
           
protected  long[] getAncestorOrganizationIds(long[] organizationIds)
           
 String getClassName()
           
static long getUserId(Document document)
           
 void postProcessContextBooleanFilter(BooleanFilter contextBooleanFilter, SearchContext searchContext)
           
 void postProcessSearchQuery(BooleanQuery searchQuery, BooleanFilter fullQueryBooleanFilter, SearchContext searchContext)
           
protected  void reindexUsers(long companyId)
           
 
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, 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, hasPermission, isCommitImmediately, isFilterSearch, isIndexerEnabled, isPermissionAware, isSelectAllLocales, isStagingAware, isStagingGroup, isUseSearchResultPermissionFilter, isVisible, 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
 
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

UserIndexer

public UserIndexer()
Method Detail

getUserId

public static long getUserId(Document document)

getClassName

public String getClassName()

postProcessContextBooleanFilter

public void postProcessContextBooleanFilter(BooleanFilter contextBooleanFilter,
                                            SearchContext searchContext)
                                     throws Exception
Specified by:
postProcessContextBooleanFilter in interface Indexer<User>
Overrides:
postProcessContextBooleanFilter in class BaseIndexer<User>
Throws:
Exception

postProcessSearchQuery

public void postProcessSearchQuery(BooleanQuery searchQuery,
                                   BooleanFilter fullQueryBooleanFilter,
                                   SearchContext searchContext)
                            throws Exception
Specified by:
postProcessSearchQuery in interface Indexer<User>
Overrides:
postProcessSearchQuery in class BaseIndexer<User>
Throws:
Exception

addContextQueryParams

protected void addContextQueryParams(BooleanFilter contextFilter,
                                     SearchContext searchContext,
                                     String key,
                                     Object value)
                              throws Exception
Throws:
Exception

doDelete

protected void doDelete(User user)
                 throws Exception
Specified by:
doDelete in class BaseIndexer<User>
Throws:
Exception

doGetDocument

protected Document doGetDocument(User user)
                          throws Exception
Specified by:
doGetDocument in class BaseIndexer<User>
Throws:
Exception

doGetSortField

protected String doGetSortField(String orderByCol)
Overrides:
doGetSortField in class BaseIndexer<User>

doGetSummary

protected Summary doGetSummary(Document document,
                               Locale locale,
                               String snippet,
                               PortletRequest portletRequest,
                               PortletResponse portletResponse)
Specified by:
doGetSummary in class BaseIndexer<User>

doReindex

protected void doReindex(String className,
                         long classPK)
                  throws Exception
Specified by:
doReindex in class BaseIndexer<User>
Throws:
Exception

doReindex

protected void doReindex(String[] ids)
                  throws Exception
Specified by:
doReindex in class BaseIndexer<User>
Throws:
Exception

doReindex

protected void doReindex(User user)
                  throws Exception
Specified by:
doReindex in class BaseIndexer<User>
Throws:
Exception

getAncestorOrganizationIds

protected long[] getAncestorOrganizationIds(long[] organizationIds)
                                     throws Exception
Throws:
Exception

reindexUsers

protected void reindexUsers(long companyId)
                     throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4