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.String
AJAX_REQUEST_HEADER_NAME
-
Constructor Summary
Constructors Constructor Description DefaultGuestCheckoutCartCleanStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkWhetherURLContainsSkipPattern(javax.servlet.http.HttpServletRequest request)
Checks whether the request's page is to be skipped (e.g.void
cleanGuestCart(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 CartService
getCartService()
protected CheckoutCustomerStrategy
getCheckoutCustomerStrategy()
protected SessionService
getSessionService()
java.util.List<java.lang.String>
getSkipPatterns()
protected UserService
getUserService()
protected boolean
isAnonymousCheckout()
protected boolean
isGetMethod(javax.servlet.http.HttpServletRequest httpRequest)
void
setCartService(CartService cartService)
void
setCheckoutCustomerStrategy(CheckoutCustomerStrategy checkoutCustomerStrategy)
void
setSessionService(SessionService sessionService)
void
setSkipPatterns(java.util.List<java.lang.String> skipPatterns)
void
setUserService(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:GuestCheckoutCartCleanStrategy
Removes the delivery address, delivery mode, payment info from the session cart, if the guest user moves away from checkout pages.- Specified by:
cleanGuestCart
in interfaceGuestCheckoutCartCleanStrategy
-
checkWhetherURLContainsSkipPattern
public boolean checkWhetherURLContainsSkipPattern(javax.servlet.http.HttpServletRequest request)
Description copied from interface:GuestCheckoutCartCleanStrategy
Checks whether the request's page is to be skipped (e.g. checkout URL).- Specified by:
checkWhetherURLContainsSkipPattern
in 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)
-
-