Class StopwordEndpoint
java.lang.Object
com.broadleafcommerce.search.core.web.endpoint.StopwordEndpoint
@FrameworkRestController
@FrameworkMapping("/stopwords/{indexableType}")
@DataRouteByKey("search")
public class StopwordEndpoint
extends Object
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStopwordEndpoint
(StopwordService stopwordService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionaddStopword
(String indexableType, Stopword stopword, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) addStopwords
(String indexableType, List<Stopword> stopwords, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) getStopword
(String indexableType, String word, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) getStopwords
(String indexableType, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected StopwordService
protected com.broadleafcommerce.common.extension.TypeFactory
protected Locale
validateLocale
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
StopwordEndpoint
public StopwordEndpoint(@Autowired(required=false) StopwordService stopwordService, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
getStopwords
-
getStopword
-
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
-
validateLocale
protected Locale validateLocale(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
getStopwordService
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-