Class SearchWebScript

java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
fr.becpg.repo.web.scripts.search.AbstractSearchWebScript
fr.becpg.repo.web.scripts.search.SearchWebScript
All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript

public class SearchWebScript extends AbstractSearchWebScript
Webscript that send the result of a search
Version:
$Id: $Id
Author:
matthieu
  • Field Details

    • logger

      private static final org.apache.commons.logging.Log logger
    • serviceRegistry

      private org.alfresco.service.ServiceRegistry serviceRegistry
    • attributeExtractorService

      private AttributeExtractorService attributeExtractorService
  • Constructor Details

    • SearchWebScript

      public SearchWebScript()
  • Method Details

    • setAttributeExtractorService

      public void setAttributeExtractorService(AttributeExtractorService attributeExtractorService)

      Setter for the field attributeExtractorService.

      Parameters:
      attributeExtractorService - the propertyService to set
    • setServiceRegistry

      public void setServiceRegistry(org.alfresco.service.ServiceRegistry serviceRegistry)

      Setter for the field serviceRegistry.

      Parameters:
      serviceRegistry - the serviceRegistry to set
    • execute

      public void execute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res) throws IOException
      Throws:
      IOException
    • getNumParameter

      private Integer getNumParameter(org.springframework.extensions.webscripts.WebScriptRequest req, String paramName)
    • processResults

      private org.json.JSONObject processResults(List<org.alfresco.service.cmr.repository.NodeRef> results, List<AttributeExtractorField> metadataFields) throws org.json.JSONException
      Throws:
      org.json.JSONException
    • getExtractor

      private NodeDataExtractor getExtractor(org.alfresco.service.cmr.repository.NodeRef nodeRef, List<AttributeExtractorField> metadataFields)