atg.b2bcommerce.order
Class B2BCommerceItemImpl

java.lang.Object
  extended by atg.commerce.order.CommerceIdentifierImpl
      extended by atg.commerce.order.CommerceItemImpl
          extended by atg.b2bcommerce.order.B2BCommerceItemImpl
All Implemented Interfaces:
B2BCommerceItem, CostCenterRelationshipContainer, ChangedProperties, CommerceIdentifier, CommerceItem, PaymentGroupRelationshipContainer, ShippingGroupRelationshipContainer, java.io.Serializable, java.util.Observer

public class B2BCommerceItemImpl
extends CommerceItemImpl
implements B2BCommerceItem

Extends generic CommerceItemImpl to contain B2B-specific data and methods. Adds Cost Center Management functionality

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Fields inherited from class atg.commerce.order.CommerceItemImpl
mAuxiliaryData
 
Constructor Summary
B2BCommerceItemImpl()
           
 
Method Summary
 void addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship)
          Add the CostCenterRelationship to the container.
 void addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship, int pIndex)
          Add the CostCenterRelationship to the container at the given index.
 CostCenterRelationship getCostCenterRelationship(java.lang.String pCostCenterRelationshipId)
          Returns the CostCenterRelationship whose id is pCostCenterRelationshipId.
 int getCostCenterRelationshipCount()
          Returns the number of CostCenterRelationships in the container.
 java.util.List getCostCenterRelationships()
          Returns a List of CostCenterRelationships
 void removeAllCostCenterRelationships()
          Removes all the CostCenterRelationships
 CostCenterRelationship removeCostCenterRelationship(java.lang.String pCostCenterRelationshipId)
          Removes a CostCenterRelationship whose id is passed in.
 
Methods inherited from class atg.commerce.order.CommerceItemImpl
addChangedProperty, addPaymentGroupRelationship, addPaymentGroupRelationship, addShippingGroupRelationship, addShippingGroupRelationship, clearChangedProperties, createAuxiliaryData, getAuxiliaryData, getCatalogId, getCatalogKey, getCatalogRefId, getChangedProperties, getCommerceItemClassType, getPaymentGroupRelationship, getPaymentGroupRelationshipCount, getPaymentGroupRelationships, getPriceInfo, getPriceInfoRepositoryItem, getPropertyValue, getQuantity, getRepositoryItem, getReturnedQuantity, getSaveAllProperties, getShippingGroupRelationship, getShippingGroupRelationshipContainer, getShippingGroupRelationshipCount, getShippingGroupRelationships, getState, getStateAsString, getStateAsUserResource, getStateDetail, isChanged, removeAllPaymentGroupRelationships, removeAllShippingGroupRelationships, removePaymentGroupRelationship, removeShippingGroupRelationship, setCatalogId, setCatalogKey, setCatalogRefId, setChanged, setCommerceItemClassType, setPriceInfo, setPriceInfoRepositoryItem, setPropertyValue, setQuantity, setRepositoryItem, setSaveAllProperties, setState, setStateAsString, setStateDetail, toString, update
 
Methods inherited from class atg.commerce.order.CommerceIdentifierImpl
getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface atg.commerce.order.CommerceItem
getAuxiliaryData, getCatalogId, getCatalogKey, getCatalogRefId, getCommerceItemClassType, getPriceInfo, getQuantity, getReturnedQuantity, getState, getStateDetail, setCatalogId, setCatalogKey, setCatalogRefId, setCommerceItemClassType, setPriceInfo, setQuantity, setState, setStateDetail
 
Methods inherited from interface atg.commerce.order.ShippingGroupRelationshipContainer
addShippingGroupRelationship, addShippingGroupRelationship, getShippingGroupRelationship, getShippingGroupRelationshipCount, getShippingGroupRelationships, removeAllShippingGroupRelationships, removeShippingGroupRelationship
 
Methods inherited from interface atg.commerce.order.PaymentGroupRelationshipContainer
addPaymentGroupRelationship, addPaymentGroupRelationship, getPaymentGroupRelationship, getPaymentGroupRelationshipCount, getPaymentGroupRelationships, removeAllPaymentGroupRelationships, removePaymentGroupRelationship
 
Methods inherited from interface atg.commerce.order.CommerceIdentifier
getId
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

B2BCommerceItemImpl

public B2BCommerceItemImpl()
Method Detail

getCostCenterRelationships

public java.util.List getCostCenterRelationships()
Returns a List of CostCenterRelationships

Specified by:
getCostCenterRelationships in interface CostCenterRelationshipContainer

addCostCenterRelationship

public void addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship)
                               throws DuplicateRelationshipException,
                                      InvalidParameterException
Add the CostCenterRelationship to the container. If the CostCenterRelationship was already in the container a DuplicateRelationshipException is thrown.

Specified by:
addCostCenterRelationship in interface CostCenterRelationshipContainer
Throws:
DuplicateRelationshipException
InvalidParameterException

addCostCenterRelationship

public void addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship,
                                      int pIndex)
                               throws DuplicateRelationshipException,
                                      InvalidParameterException
Add the CostCenterRelationship to the container at the given index. If the CostCenterRelationship was already in the container a DuplicateRelationshipException is thrown.

Specified by:
addCostCenterRelationship in interface CostCenterRelationshipContainer
Throws:
DuplicateRelationshipException
InvalidParameterException

removeCostCenterRelationship

public CostCenterRelationship removeCostCenterRelationship(java.lang.String pCostCenterRelationshipId)
                                                    throws RelationshipNotFoundException,
                                                           InvalidParameterException
Removes a CostCenterRelationship whose id is passed in. If the CostCenterRelationship is not in the container then a RelationshipNotFoundException is thrown. Otherwise a reference to the removed CostCenterRelationship is returned.

Specified by:
removeCostCenterRelationship in interface CostCenterRelationshipContainer
Throws:
RelationshipNotFoundException
InvalidParameterException

removeAllCostCenterRelationships

public void removeAllCostCenterRelationships()
Removes all the CostCenterRelationships

Specified by:
removeAllCostCenterRelationships in interface CostCenterRelationshipContainer

getCostCenterRelationship

public CostCenterRelationship getCostCenterRelationship(java.lang.String pCostCenterRelationshipId)
                                                 throws RelationshipNotFoundException,
                                                        InvalidParameterException
Returns the CostCenterRelationship whose id is pCostCenterRelationshipId. If theCostCenterRelationship with the corresponding id is not in the container then a RelationshipNotFoundException is thrown.

Specified by:
getCostCenterRelationship in interface CostCenterRelationshipContainer
Throws:
RelationshipNotFoundException
InvalidParameterException

getCostCenterRelationshipCount

public int getCostCenterRelationshipCount()
Returns the number of CostCenterRelationships in the container.

Specified by:
getCostCenterRelationshipCount in interface CostCenterRelationshipContainer