|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.commerce.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.commerce.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, vlogDebugTrace, 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 CommerceIdentifierCostCenterContainer
Map
valuepublic void setCostCenterMap(java.util.Map pCostCenterMap)
pCostCenterMap
- a Map
valuepublic java.util.Map getCostCenterMap()
getCostCenterMap
in interface CostCenterMapContainer
Map
valuepublic java.util.List getCommerceIdentifierCostCenters(java.lang.String pCommerceIdentifierId)
getCommerceIdentifierCostCenters
method returns the List of
CommerceIdentifierCostCenters corresponding to the supplied CommerceIdentifierId.
getCommerceIdentifierCostCenters
in interface CommerceIdentifierCostCenterContainer
pCommerceIdentifierId
- a String
value
List
valuepublic java.util.List getAllCommerceIdentifierCostCenters()
getAllCommerceIdentifierCostCenters
method returns all the
CommerceIdentifierCostCenters in this container.
getAllCommerceIdentifierCostCenters
in interface CommerceIdentifierCostCenterContainer
List
valuepublic void addCommerceIdentifierCostCenter(java.lang.String pCommerceIdentifierId, CommerceIdentifierCostCenter pCommerceIdentifierCostCenter)
addCommerceIdentifierCostCenter
method adds the supplied
CommerceIdentifierCostCenter by the supplied name.
addCommerceIdentifierCostCenter
in interface CommerceIdentifierCostCenterContainer
pCommerceIdentifierId
- a String
valuepCommerceIdentifierCostCenter
- a CommerceIdentifierCostCenter
valuepublic void removeAllCommerceIdentifierCostCenters()
removeAllCommerceIdentifierCostCenters
method clears the
CommerceIdentifierCostCenterMap.
removeAllCommerceIdentifierCostCenters
in interface CommerceIdentifierCostCenterContainer
public void removeCommerceIdentifierCostCenters(java.lang.String pCommerceIdentifierId)
removeCommerceIdentifierCostCenters
method removes the
CommerceIdentifierCostCenters corresponding to the supplied CommerceIdentifierId.
removeCommerceIdentifierCostCenters
in interface CommerceIdentifierCostCenterContainer
pCommerceIdentifierId
- a String
valuepublic CostCenter getCostCenter(java.lang.String pCostCenterName)
getCostCenter
method returns the CostCenter with the
supplied name.
getCostCenter
in interface CostCenterMapContainer
pCostCenterName
- a String
value
CostCenter
valuepublic void addCostCenter(java.lang.String pCostCenterName, CostCenter pCostCenter)
addCostCenter
method adds the given CostCenter to the Map by
the supplied name.
addCostCenter
in interface CostCenterMapContainer
pCostCenterName
- a String
valuepCostCenter
- a CostCenter
valuepublic void removeAllCostCenters()
removeAllCostCenters
method removes all CostCenters in this container.
removeAllCostCenters
in interface CostCenterMapContainer
public void removeCostCenter(java.lang.String pCostCenterName)
removeCostCenter
method removes the CostCenter corresponding to
the supplied name.
removeCostCenter
in interface CostCenterMapContainer
pCostCenterName
- a String
valuepublic void setDefaultCostCenterName(java.lang.String pDefaultCostCenterName)
setDefaultCostCenterName
in interface CostCenterMapContainer
pDefaultCostCenterName
- a String
valuepublic java.lang.String getDefaultCostCenterName()
getDefaultCostCenterName
in interface CostCenterMapContainer
String
value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |