Class OptionTemplateGroupEndpoint

java.lang.Object
com.broadleafcommerce.catalog.web.endpoint.option.OptionTemplateGroupEndpoint

@FrameworkRestController @FrameworkMapping("/option-template-groups") @DataRouteByExample(OptionTemplateGroup.class) public class OptionTemplateGroupEndpoint extends Object
Author:
Nathan Moore (nathanmoore).
  • Field Details

  • Constructor Details

  • Method Details

    • readAll

      @FrameworkGetMapping @Policy(permissionRoots="OPTION_TEMPLATE_GROUP") public org.springframework.data.domain.Page<OptionTemplateGroup> readAll(@ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @RequestParam(value="q",required=false) String query, @PageableDefault(size=50) org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters)
    • read

      @FrameworkGetMapping("/{id}") @Policy(permissionRoots="OPTION_TEMPLATE_GROUP") public OptionTemplateGroup read(@ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @PathVariable("id") String id)
    • replace

      @FrameworkPutMapping("/{id}") @Policy(permissionRoots="OPTION_TEMPLATE_GROUP") public OptionTemplateGroup replace(@ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @PathVariable("id") String id, @RequestBody OptionTemplateGroup req)
    • replaceAllProductOptionGroupTranslations

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

      @FrameworkPatchMapping("/{id}") @Policy(permissionRoots="OPTION_TEMPLATE_GROUP") public OptionTemplateGroup update(@ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @PathVariable("id") String id, @RequestBody OptionTemplateGroup req)
    • create

      @FrameworkPostMapping(consumes="application/json") @Policy(permissionRoots="OPTION_TEMPLATE_GROUP") public OptionTemplateGroup create(@ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @RequestBody OptionTemplateGroup req)
    • delete

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

      protected OptionTemplateGroupService<OptionTemplateGroup> getGroupService()
    • getOptionTemplateGroupHydrationService

      protected OptionTemplateGroupHydrationService getOptionTemplateGroupHydrationService()
    • getTranslationEntityService

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