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 Summary
FieldsModifier and TypeFieldDescriptionprotected org.broadleafcommerce.common.crossapp.service.CrossAppAuthServiceprotected final CustomerSegmentServiceprotected static final Stringprotected final org.broadleafcommerce.common.security.service.ExploitProtectionServicestatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetCrossAppAuthService(org.broadleafcommerce.common.crossapp.service.CrossAppAuthService crossAppAuthService) voidviewPreviewSegments(jakarta.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, String filter, Integer limit, String fragment)
-
Field Details
-
PREVIEW_SEGMENT_BASE_PATH
- See Also:
-
DEFAULT_LIMIT_PARAM_VALUE
- See Also:
-
ALLOWED_TEMPLATE_FRAGMENTS
-
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()
-