|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.b2bcommerce.order.purchase.CostCenterContainerService
public class CostCenterContainerService
The CostCenterContainerService is a convenient session scoped component which implements both the CostCenterMapContainer and the CommerceIdentifierCostCenterContainer interfaces. This service is responsible for keeping track of both the user's authorized CostCenters, as well as the CommerceIdentifierCostCenter objects for a user's Order.
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
|
| Fields inherited from class atg.nucleus.GenericService |
|---|
SERVICE_INFO_KEY |
| Fields inherited from interface atg.b2bcommerce.order.CostCenterConstants |
|---|
CICC_MAP, CLEAR_ALL, CLEAR_COST_CENTER_CONTAINER, CLEAR_COST_CENTER_MAP, COST_CENTERS, INIT_CC, INIT_ITEM_COSTCENTERS, INIT_ORDER_COSTCENTERS, INIT_SHIPPING_COSTCENTERS, INIT_TAX_COSTCENTERS, LOAD_COSTCENTERS, MSG_INVALID_SPLIT_QUANTITY, ONE_COST_CENTER, ORDER, OUTPUT, USE_AMOUNT |
| Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
|---|
DEFAULT_LOG_TRACE_STATUS |
| Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
|---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
| Constructor Summary | |
|---|---|
CostCenterContainerService()
Creates a new CostCenterContainerService instance. |
|
| Method Summary | |
|---|---|
void |
addCommerceIdentifierCostCenter(java.lang.String pCommerceIdentifierId,
CommerceIdentifierCostCenter pCommerceIdentifierCostCenter)
The addCommerceIdentifierCostCenter method adds the supplied
CommerceIdentifierCostCenter by the supplied name. |
void |
addCostCenter(java.lang.String pCostCenterName,
CostCenter pCostCenter)
The addCostCenter method adds the given CostCenter to the Map by
the supplied name. |
java.util.List |
getAllCommerceIdentifierCostCenters()
The getAllCommerceIdentifierCostCenters method returns all the
CommerceIdentifierCostCenters in this container. |
java.util.Map |
getCommerceIdentifierCostCenterMap()
Return the CommerceIdentifierCostCenterMap property. |
java.util.List |
getCommerceIdentifierCostCenters(java.lang.String pCommerceIdentifierId)
The getCommerceIdentifierCostCenters method returns the List of
CommerceIdentifierCostCenters corresponding to the supplied CommerceIdentifierId. |
CostCenter |
getCostCenter(java.lang.String pCostCenterName)
The getCostCenter method returns the CostCenter with the
supplied name. |
java.util.Map |
getCostCenterMap()
Return the CostCenterMap property. |
java.lang.String |
getDefaultCostCenterName()
Return the DefaultCostCenterName property. |
void |
removeAllCommerceIdentifierCostCenters()
The removeAllCommerceIdentifierCostCenters method clears the
CommerceIdentifierCostCenterMap. |
void |
removeAllCostCenters()
The removeAllCostCenters method removes all CostCenters in this container. |
void |
removeCommerceIdentifierCostCenters(java.lang.String pCommerceIdentifierId)
The removeCommerceIdentifierCostCenters method removes the
CommerceIdentifierCostCenters corresponding to the supplied CommerceIdentifierId. |
void |
removeCostCenter(java.lang.String pCostCenterName)
The removeCostCenter method removes the CostCenter corresponding to
the supplied name. |
void |
setCommerceIdentifierCostCenterMap(java.util.Map pCommerceIdentifierCostCenterMap)
Set the CommerceIdentifierCostCenterMap property. |
void |
setCostCenterMap(java.util.Map pCostCenterMap)
Set the CostCenterMap property. |
void |
setDefaultCostCenterName(java.lang.String pDefaultCostCenterName)
Set the DefaultCostCenterName property. |
| Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
|---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
| 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
| Constructor Detail |
|---|
public CostCenterContainerService()
CostCenterContainerService instance.
| Method Detail |
|---|
public void setCommerceIdentifierCostCenterMap(java.util.Map pCommerceIdentifierCostCenterMap)
pCommerceIdentifierCostCenterMap - a Map valuepublic java.util.Map getCommerceIdentifierCostCenterMap()
getCommerceIdentifierCostCenterMap in interface CommerceIdentifierCostCenterContainerMap valuepublic void setCostCenterMap(java.util.Map pCostCenterMap)
pCostCenterMap - a Map valuepublic java.util.Map getCostCenterMap()
getCostCenterMap in interface CostCenterMapContainerMap valuepublic java.util.List getCommerceIdentifierCostCenters(java.lang.String pCommerceIdentifierId)
getCommerceIdentifierCostCenters method returns the List of
CommerceIdentifierCostCenters corresponding to the supplied CommerceIdentifierId.
getCommerceIdentifierCostCenters in interface CommerceIdentifierCostCenterContainerpCommerceIdentifierId - a String value
List valuepublic java.util.List getAllCommerceIdentifierCostCenters()
getAllCommerceIdentifierCostCenters method returns all the
CommerceIdentifierCostCenters in this container.
getAllCommerceIdentifierCostCenters in interface CommerceIdentifierCostCenterContainerList value
public void addCommerceIdentifierCostCenter(java.lang.String pCommerceIdentifierId,
CommerceIdentifierCostCenter pCommerceIdentifierCostCenter)
addCommerceIdentifierCostCenter method adds the supplied
CommerceIdentifierCostCenter by the supplied name.
addCommerceIdentifierCostCenter in interface CommerceIdentifierCostCenterContainerpCommerceIdentifierId - a String valuepCommerceIdentifierCostCenter - a CommerceIdentifierCostCenter valuepublic void removeAllCommerceIdentifierCostCenters()
removeAllCommerceIdentifierCostCenters method clears the
CommerceIdentifierCostCenterMap.
removeAllCommerceIdentifierCostCenters in interface CommerceIdentifierCostCenterContainerpublic void removeCommerceIdentifierCostCenters(java.lang.String pCommerceIdentifierId)
removeCommerceIdentifierCostCenters method removes the
CommerceIdentifierCostCenters corresponding to the supplied CommerceIdentifierId.
removeCommerceIdentifierCostCenters in interface CommerceIdentifierCostCenterContainerpCommerceIdentifierId - a String valuepublic CostCenter getCostCenter(java.lang.String pCostCenterName)
getCostCenter method returns the CostCenter with the
supplied name.
getCostCenter in interface CostCenterMapContainerpCostCenterName - a String value
CostCenter value
public void addCostCenter(java.lang.String pCostCenterName,
CostCenter pCostCenter)
addCostCenter method adds the given CostCenter to the Map by
the supplied name.
addCostCenter in interface CostCenterMapContainerpCostCenterName - a String valuepCostCenter - a CostCenter valuepublic void removeAllCostCenters()
removeAllCostCenters method removes all CostCenters in this container.
removeAllCostCenters in interface CostCenterMapContainerpublic void removeCostCenter(java.lang.String pCostCenterName)
removeCostCenter method removes the CostCenter corresponding to
the supplied name.
removeCostCenter in interface CostCenterMapContainerpCostCenterName - a String valuepublic void setDefaultCostCenterName(java.lang.String pDefaultCostCenterName)
setDefaultCostCenterName in interface CostCenterMapContainerpDefaultCostCenterName - a String valuepublic java.lang.String getDefaultCostCenterName()
getDefaultCostCenterName in interface CostCenterMapContainerString value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||