Class RelevancyRuleGroupEndpoint

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

@FrameworkRestController @FrameworkMapping("/relevancy-rule-groups") @DataRouteByKey("search") public class RelevancyRuleGroupEndpoint extends Object
Endpoint for RelevancyRuleGroup and RelevancyRuleGroupRule
Since:
Search Service 2.2.0, Release Train 2.2.0
Author:
karanjariwala
  • Field Details

  • Constructor Details

    • RelevancyRuleGroupEndpoint

      public RelevancyRuleGroupEndpoint(RelevancyRuleGroupService<com.broadleafcommerce.search.api.domain.RelevancyRuleGroup> relevancyRuleGroupService, RelevancyRuleService<com.broadleafcommerce.search.api.domain.RelevancyRule> relevancyRuleService, RelevancyRuleGroupRuleService<com.broadleafcommerce.search.api.domain.RelevancyRuleGroupRule> relevancyRuleGroupRuleService, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationEntityService)
  • Method Details

    • readAllRelevancyRuleGroups

      @FrameworkGetMapping @Policy(permissionRoots="RELEVANCY_RULE_GROUP", operationTypes=READ) public org.springframework.data.domain.Page<com.broadleafcommerce.search.api.domain.RelevancyRuleGroup> readAllRelevancyRuleGroups(@ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @RequestParam(value="q",required=false) String query, @RequestParam(value="groupIndexableType",required=false) String groupIndexableType, cz.jirutka.rsql.parser.ast.Node filters, @PageableDefault(size=50) org.springframework.data.domain.Pageable page)
    • readRelevancyRuleGroupById

      @FrameworkGetMapping("/{id}") @Policy(permissionRoots="RELEVANCY_RULE_GROUP", operationTypes=READ) public com.broadleafcommerce.search.api.domain.RelevancyRuleGroup readRelevancyRuleGroupById(@PathVariable("id") String id, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • createRelevancyRuleGroup

      @FrameworkPostMapping(consumes="application/json") @Policy(permissionRoots="RELEVANCY_RULE_GROUP", operationTypes=CREATE) public com.broadleafcommerce.search.api.domain.RelevancyRuleGroup createRelevancyRuleGroup(@RequestBody com.broadleafcommerce.search.api.domain.RelevancyRuleGroup relevancyRuleGroup, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • deleteRelevancyRuleGroup

      @FrameworkDeleteMapping("/{id}") @Policy(permissionRoots="RELEVANCY_RULE_GROUP", operationTypes=DELETE) public void deleteRelevancyRuleGroup(@PathVariable("id") String id, @ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • replaceRelevancyRuleGroup

      @FrameworkPutMapping(value="/{id}", consumes="application/json") @Policy(permissionRoots="RELEVANCY_RULE_GROUP", operationTypes=UPDATE) public com.broadleafcommerce.search.api.domain.RelevancyRuleGroup replaceRelevancyRuleGroup(@RequestBody com.broadleafcommerce.search.api.domain.RelevancyRuleGroup relevancyRuleGroup, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @PathVariable("id") String id)
    • readRelevancyRulesForRelevancyRuleGroup

      @FrameworkGetMapping("/{id}/relevancy-rules") @Policy(permissionRoots="RELEVANCY_RULE_GROUP", operationTypes=READ) public org.springframework.data.domain.Page<com.broadleafcommerce.search.api.domain.RelevancyRuleGroupRule> readRelevancyRulesForRelevancyRuleGroup(@PathVariable("id") String id, cz.jirutka.rsql.parser.ast.Node filters, @PageableDefault(size=50) org.springframework.data.domain.Pageable page, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • createRelevancyRuleForRelevancyRuleGroup

      @FrameworkPostMapping("/{id}/relevancy-rules") @Policy(permissionRoots="RELEVANCY_RULE_GROUP", operationTypes=CREATE) public com.broadleafcommerce.search.api.domain.RelevancyRuleGroupRule createRelevancyRuleForRelevancyRuleGroup(@PathVariable("id") String id, @RequestBody com.broadleafcommerce.search.api.domain.RelevancyRuleGroupRule relevancyRuleGroupRule, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • deleteRelevancyRuleForRelevancyRuleGroup

      @FrameworkDeleteMapping("/{id}/relevancy-rules/{relevancyRuleGroupRuleId}") @Policy(permissionRoots="RELEVANCY_RULE_GROUP", operationTypes=DELETE) public void deleteRelevancyRuleForRelevancyRuleGroup(@PathVariable("id") String id, @PathVariable("relevancyRuleGroupRuleId") String relevancyRuleGroupRuleId, @ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • replaceAllRelevancyRuleGroupTranslations

      @FrameworkPutMapping(value="/{id}/translations/{locale}", consumes="application/json") @Policy(permissionRoots="RELEVANCY_RULE_GROUP") public com.broadleafcommerce.translation.service.dto.TranslationsPayload replaceAllRelevancyRuleGroupTranslations(@ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @PathVariable("id") String id, @PathVariable("locale") Locale locale, @RequestBody com.broadleafcommerce.translation.service.dto.TranslationsPayload translationRequest)
    • applyGroupIndexableTypeFilters

      @NonNull protected cz.jirutka.rsql.parser.ast.Node applyGroupIndexableTypeFilters(String groupIndexableType, cz.jirutka.rsql.parser.ast.Node filters)
    • getRelevancyRuleGroupService

      protected RelevancyRuleGroupService<com.broadleafcommerce.search.api.domain.RelevancyRuleGroup> getRelevancyRuleGroupService()
    • getRelevancyRuleService

      protected RelevancyRuleService<com.broadleafcommerce.search.api.domain.RelevancyRule> getRelevancyRuleService()
    • getRelevancyRuleGroupRuleService

      protected RelevancyRuleGroupRuleService<com.broadleafcommerce.search.api.domain.RelevancyRuleGroupRule> getRelevancyRuleGroupRuleService()
    • getTranslationEntityService

      protected com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> getTranslationEntityService()
    • getParser

      protected com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> getParser()
    • setParser

      @Autowired public void setParser(com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> parser)