org.exoplatform.services.wcm.search
Class SiteSearchServiceImpl
java.lang.Object
org.exoplatform.services.wcm.search.SiteSearchServiceImpl
- All Implemented Interfaces:
- SiteSearchService
public class SiteSearchServiceImpl
- extends java.lang.Object
- implements SiteSearchService
Created by The eXo Platform SAS Author : Hoa Pham hoa.pham@exoplatform.com
Oct 8, 2008
|
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
|
Constructor Summary |
SiteSearchServiceImpl(LivePortalManagerService portalManagerService,
org.exoplatform.services.cms.templates.TemplateService templateService,
WCMConfigurationService configurationService,
org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.container.xml.InitParams initParams)
Instantiates a new site search service impl. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.commons.logging.Log log
SiteSearchServiceImpl
public SiteSearchServiceImpl(LivePortalManagerService portalManagerService,
org.exoplatform.services.cms.templates.TemplateService templateService,
WCMConfigurationService configurationService,
org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.container.xml.InitParams initParams)
throws java.lang.Exception
- Instantiates a new site search service impl.
- Parameters:
portalManagerService - the portal manager servicetemplateService - the template serviceconfigurationService - the configuration servicerepositoryService - the repository serviceinitParams - the init params
- Throws:
java.lang.Exception - the exception
addExcludeIncludeDataTypePlugin
public void addExcludeIncludeDataTypePlugin(ExcludeIncludeDataTypePlugin plugin)
- Description copied from interface:
SiteSearchService
- Adds the exclude include data type plugin.
- Specified by:
addExcludeIncludeDataTypePlugin in interface SiteSearchService
- Parameters:
plugin - the plugin
searchSiteContents
public WCMPaginatedQueryResult searchSiteContents(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
QueryCriteria queryCriteria,
int pageSize,
boolean isSearchContent)
throws java.lang.Exception
- Description copied from interface:
SiteSearchService
- Search site contents.
Fill all child nodes of portal which have node type is document, nt:resource or nt:file and check content of them.
If node'content have key word, it will be put into list result.
This function have 3 parameters, but the most important is QueryCriteria. With this parameter you only set
5 property:
1. SiteName: name of portal which is searched. If site name is null then search in all portal of system.
2. Keyword: key work to search.
3. SearchDocument and SearchWebContent: two parameter must have save value True or False
4. SearchWebpage: search content of nodes which are added into one or more pages.
- Specified by:
searchSiteContents in interface SiteSearchService
- Parameters:
sessionProvider - the session providerqueryCriteria - the query criteriapageSize - the page size
- Returns:
- the wCM paginated query result
- Throws:
java.lang.Exception - the exception
Copyright © 2012 eXo Platform SAS. All Rights Reserved.