public abstract class AbstractInsuranceAddToCartStrategy extends java.lang.Object implements InsuranceAddToCartStrategy
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
defaultCategoryCode |
protected static java.lang.String |
PROPERTY_BUNDLE_NO |
protected static java.lang.String |
PROPERTY_PRODUCT_CODE |
| Constructor and Description |
|---|
AbstractInsuranceAddToCartStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToCart(java.util.Map<java.lang.String,java.lang.Object> properties)
Add to cart method to implement the strategy.
|
protected abstract void |
addToCartInternal(java.util.Map<java.lang.String,java.lang.Object> properties) |
protected boolean |
canExecuteStrategy(java.util.Map<java.lang.String,java.lang.Object> properties) |
protected CartService |
getCartService() |
java.lang.String |
getCategoryFormId() |
java.lang.String |
getDefaultCategoryCode() |
protected ModelService |
getModelService() |
protected ProductConfigurableChecker |
getProductConfigurableChecker() |
protected ProductService |
getProductService() |
protected SessionService |
getSessionService() |
boolean |
isYFormIdPresented()
Is yformId presented boolean.
|
protected void |
persistConfigurationInformation(java.util.Map<java.lang.String,java.lang.Object> properties) |
protected void |
persistInsuranceInformation() |
protected void |
populateConfigurationInformation(InsuranceQuoteModel quoteModel,
java.util.Map<java.lang.String,java.lang.Object> properties) |
protected abstract void |
populateInsuranceDetailsInformation(InsuranceQuoteModel quoteModel) |
void |
setCartService(CartService cartService) |
void |
setDefaultCategoryCode(java.lang.String defaultCategoryCode) |
void |
setModelService(ModelService modelService) |
void |
setProductConfigurableChecker(ProductConfigurableChecker productConfigurableChecker) |
void |
setProductService(ProductService productService) |
void |
setSessionService(SessionService sessionService) |
protected static final java.lang.String PROPERTY_PRODUCT_CODE
protected static final java.lang.String PROPERTY_BUNDLE_NO
protected java.lang.String defaultCategoryCode
public void addToCart(java.util.Map<java.lang.String,java.lang.Object> properties)
InsuranceAddToCartStrategyaddToCart in interface InsuranceAddToCartStrategyproperties - the propertiesprotected boolean canExecuteStrategy(java.util.Map<java.lang.String,java.lang.Object> properties)
protected void persistInsuranceInformation()
protected void persistConfigurationInformation(java.util.Map<java.lang.String,java.lang.Object> properties)
protected void populateConfigurationInformation(InsuranceQuoteModel quoteModel, java.util.Map<java.lang.String,java.lang.Object> properties) throws YFormServiceException
quoteModel - properties - - map of properties holding the configuration information which can be transformed to
InsuranceQuoteModel's Properties attributeYFormServiceExceptionpublic boolean isYFormIdPresented()
InsuranceAddToCartStrategyisYFormIdPresented in interface InsuranceAddToCartStrategyprotected abstract void populateInsuranceDetailsInformation(InsuranceQuoteModel quoteModel) throws YFormServiceException
YFormServiceExceptionprotected abstract void addToCartInternal(java.util.Map<java.lang.String,java.lang.Object> properties)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected ProductService getProductService()
public void setProductService(ProductService productService)
protected SessionService getSessionService()
public void setSessionService(SessionService sessionService)
public java.lang.String getDefaultCategoryCode()
public void setDefaultCategoryCode(java.lang.String defaultCategoryCode)
protected CartService getCartService()
public void setCartService(CartService cartService)
protected ProductConfigurableChecker getProductConfigurableChecker()
public void setProductConfigurableChecker(ProductConfigurableChecker productConfigurableChecker)
public java.lang.String getCategoryFormId()
Copyright © 2018 SAP SE. All Rights Reserved.