org.exoplatform.services.wcm.search
Class SiteSearchServiceImpl

java.lang.Object
  extended by 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


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.
 
Method Summary
 void addExcludeIncludeDataTypePlugin(ExcludeIncludeDataTypePlugin plugin)
          Adds the exclude include data type plugin.
 WCMPaginatedQueryResult searchSiteContents(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, QueryCriteria queryCriteria, int pageSize, boolean isSearchContent)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 service
templateService - the template service
configurationService - the configuration service
repositoryService - the repository service
initParams - the init params
Throws:
java.lang.Exception - the exception
Method Detail

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 provider
queryCriteria - the query criteria
pageSize - the page size
Returns:
the wCM paginated query result
Throws:
java.lang.Exception - the exception


Copyright © 2010 eXo Platform SAS. All Rights Reserved.