Liferay 6.2-ce-ga5

com.liferay.portlet.usersadmin.util
Class UserIndexer

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

public class UserIndexer
extends BaseIndexer


Field Summary
static String[] CLASS_NAMES
           
static String PORTLET_ID
           
 
Fields inherited from class com.liferay.portal.kernel.search.BaseIndexer
INDEX_FILTER_SEARCH_LIMIT
 
Fields inherited from interface com.liferay.portal.kernel.search.Indexer
DEFAULT_INTERVAL
 
Constructor Summary
UserIndexer()
           
 
Method Summary
protected  void addContextQueryParams(BooleanQuery contextQuery, SearchContext searchContext, String key, Object value)
           
protected  void doDelete(Object obj)
           
protected  Document doGetDocument(Object obj)
           
protected  String doGetSortField(String orderByCol)
           
protected  Summary doGetSummary(Document document, Locale locale, String snippet, PortletURL portletURL)
           
protected  void doReindex(Object obj)
           
protected  void doReindex(String[] ids)
           
protected  void doReindex(String className, long classPK)
           
protected  long[] getAncestorOrganizationIds(long userId, long[] organizationIds)
           
 String[] getClassNames()
           
 String getPortletId()
           
protected  String getPortletId(SearchContext searchContext)
           
 void postProcessContextQuery(BooleanQuery contextQuery, SearchContext searchContext)
           
 void postProcessSearchQuery(BooleanQuery searchQuery, SearchContext searchContext)
           
protected  void reindexUsers(long companyId)
           
 
Methods inherited from class com.liferay.portal.kernel.search.BaseIndexer
addAssetFields, addLocalizedSearchTerm, addRelatedClassNames, addRelatedEntryFields, addSearchArrayQuery, addSearchAssetCategoryIds, addSearchAssetCategoryTitles, addSearchAssetTagNames, addSearchClassTypeIds, addSearchDDMStruture, addSearchEntryClassNames, addSearchExpando, addSearchFolderId, addSearchGroupId, addSearchKeywords, addSearchLayout, addSearchLocalizedTerm, addSearchTerm, addSearchUserId, addStagingGroupKeyword, addStatus, addTrashFields, createFullQuery, createLocalizedSummary, createLocalizedSummary, createSummary, createSummary, delete, delete, deleteDocument, deleteDocument, deleteDocument, deleteDocument, doReindexDDMStructures, doSearch, filterSearch, getBaseModelDocument, getBaseModelDocument, getClassName, getDocument, getFacetQuery, getFullQuery, getIndexerPostProcessors, getLocalizedCountryNames, getParentGroupId, getSearchEngineId, getSiteGroupId, getSnippetLocale, getSortField, getSortField, getSummary, hasPermission, isCommitImmediately, isFilterSearch, isIndexerEnabled, isPermissionAware, isStagingAware, isUseSearchResultPermissionFilter, isVisible, isVisible, isVisibleRelatedEntry, newDocument, populateAddresses, populateMap, postProcessFullQuery, processHits, registerIndexerPostProcessor, reindex, reindex, reindex, reindexDDMStructures, search, setCommitImmediately, setFilterSearch, setIndexerEnabled, setPermissionAware, setSortableTextFields, setStagingAware, unregisterIndexerPostProcessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAMES

public static final String[] CLASS_NAMES

PORTLET_ID

public static final String PORTLET_ID
See Also:
Constant Field Values
Constructor Detail

UserIndexer

public UserIndexer()
Method Detail

getClassNames

public String[] getClassNames()

getPortletId

public String getPortletId()

postProcessContextQuery

public void postProcessContextQuery(BooleanQuery contextQuery,
                                    SearchContext searchContext)
                             throws Exception
Specified by:
postProcessContextQuery in interface Indexer
Overrides:
postProcessContextQuery in class BaseIndexer
Throws:
Exception

postProcessSearchQuery

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

addContextQueryParams

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

doDelete

protected void doDelete(Object obj)
                 throws Exception
Specified by:
doDelete in class BaseIndexer
Throws:
Exception

doGetDocument

protected Document doGetDocument(Object obj)
                          throws Exception
Specified by:
doGetDocument in class BaseIndexer
Throws:
Exception

doGetSortField

protected String doGetSortField(String orderByCol)
Overrides:
doGetSortField in class BaseIndexer

doGetSummary

protected Summary doGetSummary(Document document,
                               Locale locale,
                               String snippet,
                               PortletURL portletURL)
Specified by:
doGetSummary in class BaseIndexer

doReindex

protected void doReindex(Object obj)
                  throws Exception
Specified by:
doReindex in class BaseIndexer
Throws:
Exception

doReindex

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

doReindex

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

getAncestorOrganizationIds

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

getPortletId

protected String getPortletId(SearchContext searchContext)
Specified by:
getPortletId in class BaseIndexer

reindexUsers

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

Liferay 6.2-ce-ga5