Class CategoryDetailsEndpoint

java.lang.Object
com.broadleafcommerce.catalog.web.endpoint.commerce.CategoryDetailsEndpoint

@FrameworkRestController @FrameworkMapping("/category-details") @DataRouteByExample(CategoryDetails.class) public class CategoryDetailsEndpoint extends Object
Author:
Nathan Moore (nathandmoore)
  • Constructor Details

  • Method Details

    • readDetailsForRequest

      @FrameworkGetMapping public org.springframework.http.ResponseEntity<CategoryDetails> readDetailsForRequest(jakarta.servlet.http.HttpServletRequest request, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PageableDefault org.springframework.data.domain.Pageable productPageInfo, CategoryDetailsRequest categoryDetailsRequest, @RequestParam org.springframework.util.MultiValueMap<String,String> parameters)
      Returns a CategoryDetails for the given CategoryDetailsRequest. If the request is missing or has insufficient information (e.g., is missing CategoryDetailsRequest.getCategoryId() and CategoryDetailsRequest.getCategoryUrl()), the this returns a 400 error. If no category matches the request, then this returns a 404.
      Parameters:
      request - HttpServletRequest for the request
      context - Context info for multitenant and sandbox conditions
      productPageInfo - pagination info to apply to products included in the response.
      categoryDetailsRequest - The CategoryDetailsRequest
      Returns:
      a CategoryDetails matching the CategoryDetailsRequest.
    • readAllDetailsForRequests

      @FrameworkPostMapping(consumes="application/json") public CategoryList readAllDetailsForRequests(jakarta.servlet.http.HttpServletRequest servletRequest, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PageableDefault org.springframework.data.domain.Pageable productPageInfo, @RequestBody BulkCategoryDetailsRequest bulkRequest)
    • getCategoryDetailsService

      protected CategoryDetailsService getCategoryDetailsService()
    • setTypeFactory

      @Autowired public void setTypeFactory(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
    • getTypeFactory

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