| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.commerce.order.CommerceIdentifierImpl
atg.commerce.order.OrderImpl
atg.b2bcommerce.order.B2BOrderImpl
public class B2BOrderImpl
Extends generic OrderImpl to include B2B-specific data and methods. Adds Cost Center Management functionality
atg.commerce.order.B2BOrder, 
Serialized Form| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSIONClass version string | 
| protected  CostCenterContainerImpl | mCostCenterContainer | 
| protected  CostCenterRelationshipContainerImpl | mCostCenterRelationshipContainer | 
| protected static java.util.ResourceBundle | sResourceBundleResource Bundle | 
| Fields inherited from class atg.commerce.order.OrderImpl | 
|---|
| mCommerceItemContainer, mInitialized, mInvalidated, mPaymentGroupContainer, mPaymentGroupRelationshipContainer, mRelationshipContainer, mShippingGroupContainer | 
| Constructor Summary | |
|---|---|
| B2BOrderImpl() | |
| 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. | 
|  void | addCostCenter(CostCenter pCostCenter)Add the CostCenter to the container. | 
|  void | addCostCenter(CostCenter pCostCenter,
              int pIndex)Add the CostCenter to the container at the given index. | 
|  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. | 
|  void | addShippingGroup(B2BShippingGroup pShippingGroup,
                 int pIndex)Add the ShippingGroup to the container at the given index. | 
|  void | addShippingGroup(ShippingGroup pShippingGroup)Add the ShippingGroup to the container. | 
|  java.util.List | getApprovalSystemMessages()Returns property approvalSystemMessages | 
|  java.util.List | getApproverIds()Returns property approverIds | 
|  java.util.List | getApproverMessages()Returns property approverMessages | 
|  java.util.List | getAuthorizedApproverIds()Returns property authorizedApproverIds | 
|  CostCenter | getCostCenter(java.lang.String pCostCenterId)Returns the CostCenter whose id is pCostCenterId. | 
|  int | getCostCenterCount()Returns the number of CostCenters in the container. | 
|  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 | 
|  java.util.List | getCostCenters()Returns a List of CostCenters | 
| protected  void | preEnsureContainers()Method which is called by ensureContainers to allow subclasses to do any initialization when the order is reconstructed. | 
|  void | removeAllCostCenterRelationships()Removes all the CostCenterRelationships | 
|  void | removeAllCostCenters()Removes all the CostCenters | 
|  CostCenter | removeCostCenter(java.lang.String pCostCenterId)Removes a CostCenter whose id is passed in. | 
|  CostCenterRelationship | removeCostCenterRelationship(java.lang.String pCostCenterRelationshipId)Removes a CostCenterRelationship whose id is passed in. | 
|  void | setApprovalSystemMessages(java.util.List pApprovalSystemMessages)Sets property approvalSystemMessages | 
|  void | setApproverIds(java.util.List pApproverIds)Sets property approverIds | 
|  void | setApproverMessages(java.util.List pApproverMessages)Sets property approverMessages | 
|  void | setAuthorizedApproverIds(java.util.List pAuthorizedApproverIds)Sets property authorizedApproverIds | 
| Methods inherited from class atg.commerce.order.CommerceIdentifierImpl | 
|---|
| getId, setId | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface atg.commerce.order.CommerceItemContainer | 
|---|
| getCommerceItem, getCommerceItemCount, getCommerceItems, getCommerceItemsByCatalogRefId, getTotalCommerceItemCount, removeAllCommerceItems, removeCommerceItem | 
| Methods inherited from interface atg.commerce.order.ShippingGroupContainer | 
|---|
| addShippingGroup, getShippingGroup, getShippingGroupCount, getShippingGroups, removeAllShippingGroups, removeShippingGroup | 
| Methods inherited from interface atg.commerce.order.PaymentGroupContainer | 
|---|
| addPaymentGroup, addPaymentGroup, getPaymentGroup, getPaymentGroupCount, getPaymentGroups, removeAllPaymentGroups, removePaymentGroup | 
| Methods inherited from interface atg.commerce.order.RelationshipContainer | 
|---|
| addRelationship, addRelationship, getRelationship, getRelationshipCount, getRelationships, removeAllRelationships, removeRelationship | 
| 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 | 
|---|
public static java.lang.String CLASS_VERSION
protected static java.util.ResourceBundle sResourceBundle
protected transient CostCenterContainerImpl mCostCenterContainer
protected transient CostCenterRelationshipContainerImpl mCostCenterRelationshipContainer
| Constructor Detail | 
|---|
public B2BOrderImpl()
| Method Detail | 
|---|
public java.util.List getApproverIds()
getApproverIds in interface B2BOrderpublic void setApproverIds(java.util.List pApproverIds)
setApproverIds in interface B2BOrderpApproverIds - the value to set for property approverIdspublic java.util.List getAuthorizedApproverIds()
getAuthorizedApproverIds in interface B2BOrderpublic void setAuthorizedApproverIds(java.util.List pAuthorizedApproverIds)
setAuthorizedApproverIds in interface B2BOrderpAuthorizedApproverIds - the value to set for property authorizedApproverIdspublic java.util.List getApprovalSystemMessages()
getApprovalSystemMessages in interface B2BOrderpublic void setApprovalSystemMessages(java.util.List pApprovalSystemMessages)
setApprovalSystemMessages in interface B2BOrderpApprovalSystemMessages - the value to set for property approvalSystemMessagespublic java.util.List getApproverMessages()
getApproverMessages in interface B2BOrderpublic void setApproverMessages(java.util.List pApproverMessages)
setApproverMessages in interface B2BOrderpApproverMessages - the value to set for property approverMessagespublic java.util.List getCostCenters()
getCostCenters in interface CostCenterContainer
public void addCostCenter(CostCenter pCostCenter)
                   throws DuplicateCostCenterException,
                          InvalidParameterException
addCostCenter in interface CostCenterContainerDuplicateCostCenterException
InvalidParameterException
public void addCostCenter(CostCenter pCostCenter,
                          int pIndex)
                   throws DuplicateCostCenterException,
                          InvalidParameterException
addCostCenter in interface CostCenterContainerDuplicateCostCenterException
InvalidParameterException
public CostCenter removeCostCenter(java.lang.String pCostCenterId)
                            throws CostCenterNotFoundException,
                                   InvalidParameterException
removeCostCenter in interface CostCenterContainerCostCenterNotFoundException
InvalidParameterExceptionpublic void removeAllCostCenters()
removeAllCostCenters in interface CostCenterContainer
public CostCenter getCostCenter(java.lang.String pCostCenterId)
                         throws CostCenterNotFoundException,
                                InvalidParameterException
getCostCenter in interface CostCenterContainerCostCenterNotFoundException
InvalidParameterExceptionpublic int getCostCenterCount()
getCostCenterCount in interface CostCenterContainerpublic java.util.List getCostCenterRelationships()
getCostCenterRelationships in interface CostCenterRelationshipContainer
public void addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship)
                               throws DuplicateRelationshipException,
                                      InvalidParameterException
addCostCenterRelationship in interface CostCenterRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public void addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship,
                                      int pIndex)
                               throws DuplicateRelationshipException,
                                      InvalidParameterException
addCostCenterRelationship in interface CostCenterRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public CostCenterRelationship removeCostCenterRelationship(java.lang.String pCostCenterRelationshipId)
                                                    throws RelationshipNotFoundException,
                                                           InvalidParameterException
removeCostCenterRelationship in interface CostCenterRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic void removeAllCostCenterRelationships()
removeAllCostCenterRelationships in interface CostCenterRelationshipContainer
public CostCenterRelationship getCostCenterRelationship(java.lang.String pCostCenterRelationshipId)
                                                 throws RelationshipNotFoundException,
                                                        InvalidParameterException
getCostCenterRelationship in interface CostCenterRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic int getCostCenterRelationshipCount()
getCostCenterRelationshipCount in interface CostCenterRelationshipContainerprotected void preEnsureContainers()
preEnsureContainers in class OrderImpl
public void addCommerceItem(CommerceItem pCommerceItem)
                     throws DuplicateCommerceItemException,
                            InvalidParameterException
addCommerceItem in interface CommerceItemContaineraddCommerceItem in class OrderImplDuplicateCommerceItemException
InvalidParameterException
public void addCommerceItem(CommerceItem pCommerceItem,
                            int pIndex)
                     throws DuplicateCommerceItemException,
                            InvalidParameterException
addCommerceItem in interface CommerceItemContaineraddCommerceItem in class OrderImplDuplicateCommerceItemException
InvalidParameterException
public void addShippingGroup(ShippingGroup pShippingGroup)
                      throws DuplicateShippingGroupException,
                             InvalidParameterException
addShippingGroup in interface ShippingGroupContaineraddShippingGroup in class OrderImplDuplicateShippingGroupException
InvalidParameterException
public void addShippingGroup(B2BShippingGroup pShippingGroup,
                             int pIndex)
                      throws DuplicateShippingGroupException,
                             InvalidParameterException
DuplicateShippingGroupException
InvalidParameterException| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||