Class AbstractSearchWebScript

java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
fr.becpg.repo.web.scripts.search.AbstractSearchWebScript
All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
Direct Known Subclasses:
ExportSearchWebScript, GetSavedSearchWebScript, SearchWebScript

public abstract class AbstractSearchWebScript extends org.springframework.extensions.webscripts.AbstractWebScript

Abstract AbstractSearchWebScript class.

Version:
$Id: $Id
Author:
matthieu
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript

    org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The advanced search service for performing complex searches.
    protected org.alfresco.service.namespace.NamespaceService
    The namespace service for handling namespace operations.
    protected org.alfresco.service.cmr.repository.NodeService
    The node service for handling node operations.
    protected static final String
    Constant PARAM_CONTAINER="container"
    protected static final String
    Constant PARAM_EXTRA_PARAMS="extraParams"
    protected static final String
    Constant PARAM_FILTER="filter"
    protected static final String
    Constant PARAM_FILTER_DATA="filterData"
    protected static final String
    Constant PARAM_FILTER_PARAMS="filterParams"
    protected static final String
    Constant PARAM_ITEMTYPE="itemType"
    protected static final String
    Constant PARAM_MAX_RESULTS="maxResults"
    protected static final String
    Constant PARAM_NODEREF="nodeRef"
    protected static final String
    Pagination
    protected static final String
    Constant PARAM_PAGE_SIZE="pageSize"
    protected static final String
    Constant PARAM_QUERY="query"
    protected static final String
    Constant PARAM_REPOSITORY="repo"
    protected static final String
    Constant PARAM_SITE="site"
    protected static final String
    Constant PARAM_SORT="sort"
    protected static final String
    Constant PARAM_TAG="tag"
    protected static final String
    Constant PARAM_TERM="term"
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected List<org.alfresco.service.cmr.repository.NodeRef>
    doSearch(org.springframework.extensions.webscripts.WebScriptRequest req, Integer maxResults)
    doSearch.
    private String
    getPath(String nodeRef)
     
    void
    Setter for the field advSearchService.
    void
    setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
    Setter for the field namespaceService.
    void
    setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
    Setter for the field nodeService.

    Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript

    addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.springframework.extensions.webscripts.WebScript

    execute
  • Field Details

    • PARAM_QUERY

      protected static final String PARAM_QUERY
      Constant PARAM_QUERY="query"
      See Also:
    • PARAM_SORT

      protected static final String PARAM_SORT
      Constant PARAM_SORT="sort"
      See Also:
    • PARAM_TERM

      protected static final String PARAM_TERM
      Constant PARAM_TERM="term"
      See Also:
    • PARAM_TAG

      protected static final String PARAM_TAG
      Constant PARAM_TAG="tag"
      See Also:
    • PARAM_CONTAINER

      protected static final String PARAM_CONTAINER
      Constant PARAM_CONTAINER="container"
      See Also:
    • PARAM_SITE

      protected static final String PARAM_SITE
      Constant PARAM_SITE="site"
      See Also:
    • PARAM_REPOSITORY

      protected static final String PARAM_REPOSITORY
      Constant PARAM_REPOSITORY="repo"
      See Also:
    • PARAM_NODEREF

      protected static final String PARAM_NODEREF
      Constant PARAM_NODEREF="nodeRef"
      See Also:
    • PARAM_ITEMTYPE

      protected static final String PARAM_ITEMTYPE
      Constant PARAM_ITEMTYPE="itemType"
      See Also:
    • PARAM_PAGE

      protected static final String PARAM_PAGE
      Pagination
      See Also:
    • PARAM_PAGE_SIZE

      protected static final String PARAM_PAGE_SIZE
      Constant PARAM_PAGE_SIZE="pageSize"
      See Also:
    • PARAM_MAX_RESULTS

      protected static final String PARAM_MAX_RESULTS
      Constant PARAM_MAX_RESULTS="maxResults"
      See Also:
    • PARAM_FILTER

      protected static final String PARAM_FILTER
      Constant PARAM_FILTER="filter"
      See Also:
    • PARAM_FILTER_DATA

      protected static final String PARAM_FILTER_DATA
      Constant PARAM_FILTER_DATA="filterData"
      See Also:
    • PARAM_FILTER_PARAMS

      protected static final String PARAM_FILTER_PARAMS
      Constant PARAM_FILTER_PARAMS="filterParams"
      See Also:
    • PARAM_EXTRA_PARAMS

      protected static final String PARAM_EXTRA_PARAMS
      Constant PARAM_EXTRA_PARAMS="extraParams"
      See Also:
    • nodeService

      protected org.alfresco.service.cmr.repository.NodeService nodeService
      The node service for handling node operations.
    • advSearchService

      protected AdvSearchService advSearchService
      The advanced search service for performing complex searches.
    • namespaceService

      protected org.alfresco.service.namespace.NamespaceService namespaceService
      The namespace service for handling namespace operations.
  • Constructor Details

    • AbstractSearchWebScript

      public AbstractSearchWebScript()
  • Method Details

    • setAdvSearchService

      public void setAdvSearchService(AdvSearchService advSearchService)

      Setter for the field advSearchService.

      Parameters:
      advSearchService - a AdvSearchService object.
    • setNamespaceService

      public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)

      Setter for the field namespaceService.

      Parameters:
      namespaceService - a NamespaceService object.
    • setNodeService

      public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)

      Setter for the field nodeService.

      Parameters:
      nodeService - a NodeService object.
    • doSearch

      protected List<org.alfresco.service.cmr.repository.NodeRef> doSearch(org.springframework.extensions.webscripts.WebScriptRequest req, Integer maxResults) throws org.json.JSONException

      doSearch.

      Parameters:
      req - a WebScriptRequest object.
      maxResults - a Integer object.
      Returns:
      a List object.
      Throws:
      org.json.JSONException - if any.
    • getPath

      private String getPath(String nodeRef)