Class PreviewCustomerSegmentController

java.lang.Object
com.broadleafcommerce.customersegment.web.controller.PreviewCustomerSegmentController

@Controller("blPreviewCustomerSegmentController") @RequestMapping("/preview-segments") @ConditionalOnBroadleafModule(ENTERPRISE) public class PreviewCustomerSegmentController extends Object
This is the primary controller that drives the view for the Customer Segments section of the sandbox ribbon.
Author:
Nick Crum ncrum
  • Field Details

    • PREVIEW_SEGMENT_BASE_PATH

      public static final String PREVIEW_SEGMENT_BASE_PATH
      See Also:
    • DEFAULT_LIMIT_PARAM_VALUE

      protected static final String DEFAULT_LIMIT_PARAM_VALUE
      See Also:
    • ALLOWED_TEMPLATE_FRAGMENTS

      protected static final List<String> ALLOWED_TEMPLATE_FRAGMENTS
    • customerSegmentService

      protected final CustomerSegmentService customerSegmentService
    • exploitProtectionService

      protected final org.broadleafcommerce.common.security.service.ExploitProtectionService exploitProtectionService
    • crossAppAuthService

      protected org.broadleafcommerce.common.crossapp.service.CrossAppAuthService crossAppAuthService
  • Constructor Details

    • PreviewCustomerSegmentController

      public PreviewCustomerSegmentController()
  • Method Details

    • setCrossAppAuthService

      @Autowired(required=false) public void setCrossAppAuthService(org.broadleafcommerce.common.crossapp.service.CrossAppAuthService crossAppAuthService)
    • viewPreviewSegments

      @RequestMapping("") public String viewPreviewSegments(jakarta.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, @RequestParam(value="filter",required=false) String filter, @RequestParam(value="limit",required=false,defaultValue="10") Integer limit, @RequestParam(value="fragment",required=false) String fragment) throws org.broadleafcommerce.common.exception.ServiceException
      Throws:
      org.broadleafcommerce.common.exception.ServiceException
    • userNotAuthenticated

      @ResponseStatus(value=UNAUTHORIZED, reason="Not authorized") @ExceptionHandler(java.lang.SecurityException.class) public void userNotAuthenticated()