Class DefaultGuestCheckoutCartCleanStrategy
java.lang.Object
de.hybris.platform.yacceleratorstorefront.security.impl.DefaultGuestCheckoutCartCleanStrategy
- All Implemented Interfaces:
GuestCheckoutCartCleanStrategy
public class DefaultGuestCheckoutCartCleanStrategy
extends Object
implements GuestCheckoutCartCleanStrategy
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckWhetherURLContainsSkipPattern(javax.servlet.http.HttpServletRequest request) Checks whether the request's page is to be skipped (e.g.voidcleanGuestCart(javax.servlet.http.HttpServletRequest request) Removes the delivery address, delivery mode, payment info from the session cart, if the guest user moves away from checkout pages.protected CartServiceprotected CheckoutCustomerStrategyprotected SessionServiceprotected UserServiceprotected booleanprotected booleanisGetMethod(javax.servlet.http.HttpServletRequest httpRequest) voidsetCartService(CartService cartService) voidsetCheckoutCustomerStrategy(CheckoutCustomerStrategy checkoutCustomerStrategy) voidsetSessionService(SessionService sessionService) voidsetSkipPatterns(List<String> skipPatterns) voidsetUserService(UserService userService)
-
Field Details
-
AJAX_REQUEST_HEADER_NAME
- See Also:
-
-
Constructor Details
-
DefaultGuestCheckoutCartCleanStrategy
public DefaultGuestCheckoutCartCleanStrategy()
-
-
Method Details
-
cleanGuestCart
public void cleanGuestCart(javax.servlet.http.HttpServletRequest request) Description copied from interface:GuestCheckoutCartCleanStrategyRemoves the delivery address, delivery mode, payment info from the session cart, if the guest user moves away from checkout pages.- Specified by:
cleanGuestCartin interfaceGuestCheckoutCartCleanStrategy
-
checkWhetherURLContainsSkipPattern
public boolean checkWhetherURLContainsSkipPattern(javax.servlet.http.HttpServletRequest request) Description copied from interface:GuestCheckoutCartCleanStrategyChecks whether the request's page is to be skipped (e.g. checkout URL).- Specified by:
checkWhetherURLContainsSkipPatternin interfaceGuestCheckoutCartCleanStrategy
-
isGetMethod
protected boolean isGetMethod(javax.servlet.http.HttpServletRequest httpRequest) -
getCheckoutCustomerStrategy
-
isAnonymousCheckout
protected boolean isAnonymousCheckout() -
setCheckoutCustomerStrategy
-
getCartService
-
setCartService
-
getSessionService
-
setSessionService
-
getUserService
-
setUserService
-
getSkipPatterns
-
setSkipPatterns
-