Class AdminCustomerSegmentExportEndpoint
java.lang.Object
com.broadleafcommerce.customersegment.admin.web.api.endpoint.AdminCustomerSegmentExportEndpoint
@ConditionalOnExport
@ConditionalOnAdmin
@FrameworkRestController
@FrameworkMapping(path="/api/export")
public class AdminCustomerSegmentExportEndpoint
extends Object
- Author:
- Brandon Hines (bhines), Philip Baggett (pbaggett)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected CustomerSegmentServiceprotected org.springframework.core.env.Environmentstatic final intstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionAdminCustomerSegmentExportEndpoint(org.springframework.context.ApplicationContext applicationContext, CustomerSegmentService customerSegmentService, org.springframework.core.env.Environment environment) -
Method Summary
Modifier and TypeMethodDescriptionprotected CustomerSegmentBatchDTObuildCustomerSegmentBatchDTO(List<CustomerCustomerSegmentXref> customerSegmentXrefs, Long totalNumberOfXrefs, Long firstId, Integer count) getAllBatchCustomerSegments(jakarta.servlet.http.HttpServletRequest request, Long firstId, Integer count) getAllCustomerSegmentsCount(jakarta.servlet.http.HttpServletRequest request) getBatchCustomerSegments(jakarta.servlet.http.HttpServletRequest request, Long id, Long firstId, Integer count) getCustomerSegmentsCount(jakarta.servlet.http.HttpServletRequest request, Long id)
-
Field Details
-
PAGE_SIZE_DEFAULT
public static final int PAGE_SIZE_DEFAULT- See Also:
-
PAGE_SIZE_PROPERTY_NAME
- See Also:
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
customerSegmentService
-
environment
protected org.springframework.core.env.Environment environment
-
-
Constructor Details
-
AdminCustomerSegmentExportEndpoint
@Autowired public AdminCustomerSegmentExportEndpoint(org.springframework.context.ApplicationContext applicationContext, CustomerSegmentService customerSegmentService, org.springframework.core.env.Environment environment)
-
-
Method Details
-
getAllBatchCustomerSegments
@FrameworkMapping(path="customer-segment", method=GET) public CustomerSegmentBatchDTO getAllBatchCustomerSegments(jakarta.servlet.http.HttpServletRequest request, @RequestParam(required=false) Long firstId, @RequestParam(required=false) Integer count) -
getBatchCustomerSegments
@FrameworkMapping(path="customer-segment/{id}", method=GET) public CustomerSegmentBatchDTO getBatchCustomerSegments(jakarta.servlet.http.HttpServletRequest request, @PathVariable(name="id") Long id, @RequestParam(required=false) Long firstId, @RequestParam(required=false) Integer count) -
buildCustomerSegmentBatchDTO
protected CustomerSegmentBatchDTO buildCustomerSegmentBatchDTO(List<CustomerCustomerSegmentXref> customerSegmentXrefs, Long totalNumberOfXrefs, Long firstId, Integer count) -
getAllCustomerSegmentsCount
@FrameworkMapping(path="customer-segment/count", method=GET) public Long getAllCustomerSegmentsCount(jakarta.servlet.http.HttpServletRequest request) -
getCustomerSegmentsCount
-