com.konakart.app
Class AddToBasketOptions

java.lang.Object
  extended by com.konakart.app.AddToBasketOptions
All Implemented Interfaces:
AddToBasketOptionsIf

public class AddToBasketOptions
extends java.lang.Object
implements AddToBasketOptionsIf

An object used to contain options used when adding items to the basket.


Constructor Summary
AddToBasketOptions()
          Constructor
 
Method Summary
 java.lang.String getCatalogId()
          The id of the catalog which contains dynamic product information such as the price and quantity
 java.util.Calendar getPriceDate()
          The date for which a price is requested.
 boolean isAllowMultipleEntriesForSameProduct()
          Normally when an identical product is added to the basket more than once, rather than creating multiple basket entries we update the existing entry with an updated quantity.
 boolean isUseExternalPrice()
          If true we attempt to fetch the prices from the external table
 boolean isUseExternalQuantity()
          If true we attempt to fetch the quantities from the external table
 void setAllowMultipleEntriesForSameProduct(boolean allowMultipleEntriesForSameProduct)
          Normally when an identical product is added to the basket more than once, rather than creating multiple basket entries we update the existing entry with an updated quantity.
 void setCatalogId(java.lang.String catalogId)
          The id of the catalog which contains dynamic product information such as the price and quantity
 void setPriceDate(java.util.Calendar priceDate)
          The date for which a price is requested.
 void setUseExternalPrice(boolean useExternalPrice)
          If true we attempt to fetch the prices from the external table
 void setUseExternalQuantity(boolean useExternalQuantity)
          If true we attempt to fetch the quantities from the external table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddToBasketOptions

public AddToBasketOptions()
Constructor

Method Detail

isAllowMultipleEntriesForSameProduct

public boolean isAllowMultipleEntriesForSameProduct()
Description copied from interface: AddToBasketOptionsIf
Normally when an identical product is added to the basket more than once, rather than creating multiple basket entries we update the existing entry with an updated quantity. When this boolean is set, allow multiple entries of the same item.

Specified by:
isAllowMultipleEntriesForSameProduct in interface AddToBasketOptionsIf
Returns:
Returns the allowMultipleEntriesForSameProduct.

setAllowMultipleEntriesForSameProduct

public void setAllowMultipleEntriesForSameProduct(boolean allowMultipleEntriesForSameProduct)
Description copied from interface: AddToBasketOptionsIf
Normally when an identical product is added to the basket more than once, rather than creating multiple basket entries we update the existing entry with an updated quantity. When this boolean is set, allow multiple entries of the same item.

Specified by:
setAllowMultipleEntriesForSameProduct in interface AddToBasketOptionsIf
Parameters:
allowMultipleEntriesForSameProduct - The allowMultipleEntriesForSameProduct to set.

getCatalogId

public java.lang.String getCatalogId()
Description copied from interface: AddToBasketOptionsIf
The id of the catalog which contains dynamic product information such as the price and quantity

Specified by:
getCatalogId in interface AddToBasketOptionsIf
Returns:
the catalogId

setCatalogId

public void setCatalogId(java.lang.String catalogId)
Description copied from interface: AddToBasketOptionsIf
The id of the catalog which contains dynamic product information such as the price and quantity

Specified by:
setCatalogId in interface AddToBasketOptionsIf
Parameters:
catalogId - the catalogId to set

getPriceDate

public java.util.Calendar getPriceDate()
Description copied from interface: AddToBasketOptionsIf
The date for which a price is requested. It could be out in the future.

Specified by:
getPriceDate in interface AddToBasketOptionsIf
Returns:
the priceDate

setPriceDate

public void setPriceDate(java.util.Calendar priceDate)
Description copied from interface: AddToBasketOptionsIf
The date for which a price is requested. It could be out in the future.

Specified by:
setPriceDate in interface AddToBasketOptionsIf
Parameters:
priceDate - the priceDate to set

isUseExternalPrice

public boolean isUseExternalPrice()
Description copied from interface: AddToBasketOptionsIf
If true we attempt to fetch the prices from the external table

Specified by:
isUseExternalPrice in interface AddToBasketOptionsIf
Returns:
the useExternalPrice

setUseExternalPrice

public void setUseExternalPrice(boolean useExternalPrice)
Description copied from interface: AddToBasketOptionsIf
If true we attempt to fetch the prices from the external table

Specified by:
setUseExternalPrice in interface AddToBasketOptionsIf
Parameters:
useExternalPrice - the useExternalPrice to set

isUseExternalQuantity

public boolean isUseExternalQuantity()
Description copied from interface: AddToBasketOptionsIf
If true we attempt to fetch the quantities from the external table

Specified by:
isUseExternalQuantity in interface AddToBasketOptionsIf
Returns:
the useExternalQuantity

setUseExternalQuantity

public void setUseExternalQuantity(boolean useExternalQuantity)
Description copied from interface: AddToBasketOptionsIf
If true we attempt to fetch the quantities from the external table

Specified by:
setUseExternalQuantity in interface AddToBasketOptionsIf
Parameters:
useExternalQuantity - the useExternalQuantity to set


Copyright © 2011 DS Data Systems UK Ltd.