Class DataDrivenEnumEndpoint

java.lang.Object
com.broadleafcommerce.catalog.web.endpoint.DataDrivenEnumEndpoint

@FrameworkRestController @FrameworkMapping("/data-driven-enums") @DataRouteByExample(DataDrivenEnum.class) public class DataDrivenEnumEndpoint extends Object
Operations that are performed for a DataDrivenEnum.
Author:
Sunny Yu
  • Field Details

  • Constructor Details

    • DataDrivenEnumEndpoint

      public DataDrivenEnumEndpoint(DataDrivenEnumService<DataDrivenEnum> dataDrivenEnumService, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationEntityService)
  • Method Details

    • readAllDataDrivenEnums

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

      @FrameworkGetMapping("/{id}") @Policy(permissionRoots="DATA_DRIVEN_ENUM") public DataDrivenEnum readDataDrivenEnumById(jakarta.servlet.http.HttpServletRequest request, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("id") String enumId)
    • updateDataDrivenEnum

      @FrameworkPatchMapping(value="/{id}", consumes="application/json") @Policy(permissionRoots="DATA_DRIVEN_ENUM") public DataDrivenEnum updateDataDrivenEnum(jakarta.servlet.http.HttpServletRequest request, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("id") String id, @RequestBody DataDrivenEnum req)
    • replaceDataDrivenEnum

      @FrameworkPutMapping(value="/{id}", consumes="application/json") @Policy(permissionRoots="DATA_DRIVEN_ENUM") public DataDrivenEnum replaceDataDrivenEnum(jakarta.servlet.http.HttpServletRequest request, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("id") String id, @RequestBody DataDrivenEnum req)
    • replaceAllDataDrivenEnumTranslations

      @FrameworkPutMapping(value="/{id}/translations/{locale}", consumes="application/json") @Policy(permissionRoots="DATA_DRIVEN_ENUM") public com.broadleafcommerce.translation.service.dto.TranslationsPayload replaceAllDataDrivenEnumTranslations(@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)
    • createDataDrivenEnum

      @FrameworkPostMapping(consumes="application/json") @Policy(permissionRoots="DATA_DRIVEN_ENUM") public DataDrivenEnum createDataDrivenEnum(jakarta.servlet.http.HttpServletRequest request, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @RequestBody DataDrivenEnum req)
    • deleteDataDrivenEnum

      @FrameworkDeleteMapping("/{id}") @Policy(permissionRoots="DATA_DRIVEN_ENUM") public void deleteDataDrivenEnum(jakarta.servlet.http.HttpServletRequest request, @ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("id") String id)
    • getDataDrivenEnumService

      protected DataDrivenEnumService<DataDrivenEnum> getDataDrivenEnumService()
    • getTranslationEntityService

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