atg.b2bcommerce.order.purchase
Interface CostCenterMapContainer

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
CostCenterContainerService

public interface CostCenterMapContainer
extends java.io.Serializable

The CostCenterMapContainer interface is used to represent a container of a Map of payment names [key] to CostCenters [value].


Field Summary
static java.lang.String CLASS_VERSION
           
 
Method Summary
 void addCostCenter(java.lang.String pCostCenterName, CostCenter pCostCenter)
          The addCostCenter method adds the supplied name and CostCenter to the Map.
 CostCenter getCostCenter(java.lang.String pCostCenterName)
          The getCostCenter method returns the CostCenter corresponding to the supplied name.
 java.util.Map getCostCenterMap()
          The getCostCenterMap method returns the Map of named CostCenters.
 java.lang.String getDefaultCostCenterName()
          The getDefaultCostCenterName method retrieves the name of the default CostCenter.
 void removeAllCostCenters()
          The removeAllCostCenters method clears the Map.
 void removeCostCenter(java.lang.String pCostCenterName)
          The removeCostCenter method removes the CostCenter corresponding to the supplied name.
 void setDefaultCostCenterName(java.lang.String pDefaultCostCenterName)
          The setDefaultCostCenterName method marks the name of the default CostCenter.
 

Field Detail

CLASS_VERSION

static final java.lang.String CLASS_VERSION
See Also:
Constant Field Values
Method Detail

getCostCenterMap

java.util.Map getCostCenterMap()
The getCostCenterMap method returns the Map of named CostCenters.

Returns:
a Map value

getCostCenter

CostCenter getCostCenter(java.lang.String pCostCenterName)
The getCostCenter method returns the CostCenter corresponding to the supplied name.

Parameters:
pCostCenterName - a String value
Returns:
a CostCenter value

getDefaultCostCenterName

java.lang.String getDefaultCostCenterName()
The getDefaultCostCenterName method retrieves the name of the default CostCenter.

Returns:
a String value

addCostCenter

void addCostCenter(java.lang.String pCostCenterName,
                   CostCenter pCostCenter)
The addCostCenter method adds the supplied name and CostCenter to the Map.

Parameters:
pCostCenterName - a String value
pCostCenter - a CostCenter value

removeAllCostCenters

void removeAllCostCenters()
The removeAllCostCenters method clears the Map.


setDefaultCostCenterName

void setDefaultCostCenterName(java.lang.String pDefaultCostCenterName)
The setDefaultCostCenterName method marks the name of the default CostCenter.

Parameters:
pDefaultCostCenterName - a String value

removeCostCenter

void removeCostCenter(java.lang.String pCostCenterName)
The removeCostCenter method removes the CostCenter corresponding to the supplied name.

Parameters:
pCostCenterName - a String value