public class CommerceItemContainerImpl extends java.lang.Object implements CommerceItemContainer
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION
Class version string 
 | 
protected static java.lang.String | 
COMMERCE_ITEMS  | 
| Constructor and Description | 
|---|
CommerceItemContainerImpl()
Constructs a CommerceItemContainerImpl object. 
 | 
CommerceItemContainerImpl(MutableRepositoryItem pRepositoryItem)
Constructs a CommerceItemContainerImpl object. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addCommerceItem(CommerceItem pCommerceItem)
Add the CommerceItem to the container. 
 | 
void | 
addCommerceItem(CommerceItem pCommerceItem,
               int pIndex)
Add the CommerceItem to the container at the given index. 
 | 
CommerceItem | 
getCommerceItem(java.lang.String pCommerceItemId)
Returns the CommerceItem whose id is pCommerceItemId. 
 | 
CommerceItem | 
getCommerceItem(java.lang.String pCommerceItemId,
               boolean pSearchChildItems)
Returns the commerce item whose id is pCommerceItemId. 
 | 
int | 
getCommerceItemCount()
Returns the number of CommerceItems in the container. 
 | 
java.util.List | 
getCommerceItems()
Returns a List of CommerceItems. 
 | 
java.util.List | 
getCommerceItemsByCatalogRefId(java.lang.String pCatalogRefId)
Returns a List of CommerceItems whose catalogRefId is pCatalogRefId. 
 | 
protected java.util.List | 
getRepositoryItemList()  | 
long | 
getTotalCommerceItemCount()
Returns the number(quantity) of individual CommerceItems in the container. 
 | 
double | 
getTotalCommerceItemCountWithFraction()
Returns the number of individual CommerceItems in the container. 
 | 
void | 
removeAllCommerceItems()
Removes all the CommerceItems 
 | 
CommerceItem | 
removeCommerceItem(java.lang.String pCommerceItemId)
Removes a CommerceItem whose id is passed as a parameter. 
 | 
public static java.lang.String CLASS_VERSION
protected static java.lang.String COMMERCE_ITEMS
public CommerceItemContainerImpl()
public CommerceItemContainerImpl(MutableRepositoryItem pRepositoryItem)
protected java.util.List getRepositoryItemList()
public java.util.List getCommerceItems()
getCommerceItems in interface CommerceItemContainerpublic void addCommerceItem(CommerceItem pCommerceItem) throws DuplicateCommerceItemException, InvalidParameterException
addCommerceItem in interface CommerceItemContainerDuplicateCommerceItemExceptionInvalidParameterExceptionpublic void addCommerceItem(CommerceItem pCommerceItem, int pIndex) throws DuplicateCommerceItemException, InvalidParameterException
addCommerceItem in interface CommerceItemContainerDuplicateCommerceItemExceptionInvalidParameterExceptionpublic CommerceItem removeCommerceItem(java.lang.String pCommerceItemId) throws CommerceItemNotFoundException, InvalidParameterException
removeCommerceItem in interface CommerceItemContainerCommerceItemNotFoundExceptionInvalidParameterExceptionpublic void removeAllCommerceItems()
removeAllCommerceItems in interface CommerceItemContainerpublic CommerceItem getCommerceItem(java.lang.String pCommerceItemId) throws CommerceItemNotFoundException, InvalidParameterException
getCommerceItem in interface CommerceItemContainerCommerceItemNotFoundExceptionInvalidParameterExceptionpublic CommerceItem getCommerceItem(java.lang.String pCommerceItemId, boolean pSearchChildItems) throws CommerceItemNotFoundException, InvalidParameterException
getCommerceItem in interface CommerceItemContainerpCommerceItemId - the ID of the item to locatepSearchChildItems - flase to look only in this container, true to search
                          through nested containersCommerceItemNotFoundExceptionInvalidParameterExceptionpublic java.util.List getCommerceItemsByCatalogRefId(java.lang.String pCatalogRefId)
                                              throws CommerceItemNotFoundException,
                                                     InvalidParameterException
getCommerceItemsByCatalogRefId in interface CommerceItemContainerCommerceItemNotFoundExceptionInvalidParameterExceptionpublic int getCommerceItemCount()
getCommerceItemCount in interface CommerceItemContainerpublic long getTotalCommerceItemCount()
getTotalCommerceItemCount in interface CommerceItemContainerpublic double getTotalCommerceItemCountWithFraction()
getTotalCommerceItemCountWithFraction in interface CommerceItemContainerdouble value.