|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.commerce.order.CommerceItemContainerImpl
public class CommerceItemContainerImpl
A class which manages the containment of CommerceItem objects.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected static java.lang.String |
COMMERCE_ITEMS
|
Constructor Summary | |
---|---|
CommerceItemContainerImpl()
Constructs a CommerceItemContainerImpl object. |
|
CommerceItemContainerImpl(MutableRepositoryItem pRepositoryItem)
Constructs a CommerceItemContainerImpl object. |
Method Summary | |
---|---|
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. |
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 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
protected static java.lang.String COMMERCE_ITEMS
Constructor Detail |
---|
public CommerceItemContainerImpl()
public CommerceItemContainerImpl(MutableRepositoryItem pRepositoryItem)
Method Detail |
---|
protected java.util.List getRepositoryItemList()
public java.util.List getCommerceItems()
getCommerceItems
in interface CommerceItemContainer
public void addCommerceItem(CommerceItem pCommerceItem) throws DuplicateCommerceItemException, InvalidParameterException
addCommerceItem
in interface CommerceItemContainer
DuplicateCommerceItemException
InvalidParameterException
public void addCommerceItem(CommerceItem pCommerceItem, int pIndex) throws DuplicateCommerceItemException, InvalidParameterException
addCommerceItem
in interface CommerceItemContainer
DuplicateCommerceItemException
InvalidParameterException
public CommerceItem removeCommerceItem(java.lang.String pCommerceItemId) throws CommerceItemNotFoundException, InvalidParameterException
removeCommerceItem
in interface CommerceItemContainer
CommerceItemNotFoundException
InvalidParameterException
public void removeAllCommerceItems()
removeAllCommerceItems
in interface CommerceItemContainer
public CommerceItem getCommerceItem(java.lang.String pCommerceItemId) throws CommerceItemNotFoundException, InvalidParameterException
getCommerceItem
in interface CommerceItemContainer
CommerceItemNotFoundException
InvalidParameterException
public java.util.List getCommerceItemsByCatalogRefId(java.lang.String pCatalogRefId) throws CommerceItemNotFoundException, InvalidParameterException
getCommerceItemsByCatalogRefId
in interface CommerceItemContainer
CommerceItemNotFoundException
InvalidParameterException
public int getCommerceItemCount()
getCommerceItemCount
in interface CommerceItemContainer
public long getTotalCommerceItemCount()
getTotalCommerceItemCount
in interface CommerceItemContainer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |