Class GlobalSearchController

java.lang.Object
it.uniroma2.art.semanticturkey.services.core.controllers.GlobalSearchController
All Implemented Interfaces:
IntrospectableController, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Controller public class GlobalSearchController extends Object implements org.springframework.context.ApplicationContextAware, IntrospectableController
  • Constructor Details

    • GlobalSearchController

      public GlobalSearchController()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext arg0) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • getServiceSpecies

      public ServiceSpecies getServiceSpecies()
      Specified by:
      getServiceSpecies in interface IntrospectableController
    • getService

      public GlobalSearch getService()
      Specified by:
      getService in interface IntrospectableController
    • searchPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/GlobalSearch/search", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> searchPublished(@RequestParam("searchString") String searchString, @RequestParam(value="langs",required=false) List<String> langs, @RequestParam(value="maxResults",required=false,defaultValue="0") int maxResults, @RequestParam(value="searchInLocalName",required=false,defaultValue="false") boolean searchInLocalName, @RequestParam(value="caseSensitive",required=false,defaultValue="false") boolean caseSensitive, @RequestParam(value="projects",required=false) List<String> projects, @RequestParam(value="searchMode",required=false,defaultValue="exact") SearchMode searchMode) throws Exception
      Throws:
      Exception
    • clearIndexForNotExistingProjectsPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/GlobalSearch/clearIndexForNotExistingProjects", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> clearIndexForNotExistingProjectsPublished() throws Exception
      Throws:
      Exception
    • clearAllIndexPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/GlobalSearch/clearAllIndex", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> clearAllIndexPublished() throws Exception
      Throws:
      Exception
    • translationPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/GlobalSearch/translation", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> translationPublished(@RequestParam("searchString") String searchString, @RequestParam("searchLangs") List<String> searchLangs, @RequestParam("transLangs") List<String> transLangs, @RequestParam(value="caseSensitive",required=false,defaultValue="false") boolean caseSensitive, @RequestParam(value="debug",required=false,defaultValue="false") boolean debug) throws Exception
      Throws:
      Exception
    • createIndexPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/GlobalSearch/createIndex", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> createIndexPublished() throws Exception
      Throws:
      Exception
    • clearSpecificIndexPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/GlobalSearch/clearSpecificIndex", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> clearSpecificIndexPublished(@RequestParam("projectName") String projectName) throws Exception
      Throws:
      Exception