Class DefaultGuestCheckoutCartCleanStrategy
- java.lang.Object
-
- de.hybris.platform.yacceleratorstorefront.security.impl.DefaultGuestCheckoutCartCleanStrategy
-
- All Implemented Interfaces:
GuestCheckoutCartCleanStrategy
public class DefaultGuestCheckoutCartCleanStrategy extends java.lang.Object implements GuestCheckoutCartCleanStrategy
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAJAX_REQUEST_HEADER_NAME
-
Constructor Summary
Constructors Constructor Description DefaultGuestCheckoutCartCleanStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckWhetherURLContainsSkipPattern(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 CartServicegetCartService()protected CheckoutCustomerStrategygetCheckoutCustomerStrategy()protected SessionServicegetSessionService()java.util.List<java.lang.String>getSkipPatterns()protected UserServicegetUserService()protected booleanisAnonymousCheckout()protected booleanisGetMethod(javax.servlet.http.HttpServletRequest httpRequest)voidsetCartService(CartService cartService)voidsetCheckoutCustomerStrategy(CheckoutCustomerStrategy checkoutCustomerStrategy)voidsetSessionService(SessionService sessionService)voidsetSkipPatterns(java.util.List<java.lang.String> skipPatterns)voidsetUserService(UserService userService)
-
-
-
Field Detail
-
AJAX_REQUEST_HEADER_NAME
public static final java.lang.String AJAX_REQUEST_HEADER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
protected CheckoutCustomerStrategy getCheckoutCustomerStrategy()
-
isAnonymousCheckout
protected boolean isAnonymousCheckout()
-
setCheckoutCustomerStrategy
public void setCheckoutCustomerStrategy(CheckoutCustomerStrategy checkoutCustomerStrategy)
-
getCartService
protected CartService getCartService()
-
setCartService
public void setCartService(CartService cartService)
-
getSessionService
protected SessionService getSessionService()
-
setSessionService
public void setSessionService(SessionService sessionService)
-
getUserService
protected UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
getSkipPatterns
public java.util.List<java.lang.String> getSkipPatterns()
-
setSkipPatterns
public void setSkipPatterns(java.util.List<java.lang.String> skipPatterns)
-
-