Class StopwordEndpoint

java.lang.Object
com.broadleafcommerce.search.core.web.endpoint.StopwordEndpoint

@FrameworkRestController @FrameworkMapping("/stopwords/{indexableType}") @DataRouteByKey("search") public class StopwordEndpoint extends Object
  • Field Details

  • Constructor Details

    • StopwordEndpoint

      public StopwordEndpoint(@Autowired(required=false) StopwordService stopwordService, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
  • Method Details

    • getStopwords

      @GetMapping @Policy(permissionRoots="FIELD", operationTypes=READ) public List<Stopword> getStopwords(@PathVariable String indexableType, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • getStopword

      @FrameworkGetMapping("/{word}") @Policy(permissionRoots="FIELD", operationTypes=READ) public Stopword getStopword(@PathVariable String indexableType, @PathVariable String word, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • addStopwords

      @FrameworkPutMapping("/bulk") @FrameworkPatchMapping("/bulk") @FrameworkPostMapping("/bulk") @Policy(permissionRoots="FIELD", operationTypes={CREATE,UPDATE}) public List<Stopword> addStopwords(@PathVariable String indexableType, @RequestBody List<Stopword> stopwords, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • addStopword

      @FrameworkPostMapping @Policy(permissionRoots="FIELD", operationTypes={CREATE,UPDATE}) public Stopword addStopword(@PathVariable String indexableType, @RequestBody Stopword stopword, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • validateLocale

      protected Locale validateLocale(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • getStopwordService

      protected StopwordService getStopwordService()
    • getTypeFactory

      protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()