atg.commerce.order.purchase
Class CostCenterContainerService

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.commerce.order.purchase.CostCenterContainerService
All Implemented Interfaces:
atg.commerce.order.CostCenterConstants, CommerceIdentifierCostCenterContainer, CostCenterMapContainer, atg.naming.AbsoluteNameable, NameContextBindingListener, NameContextElement, atg.naming.NameContextParentable, NameResolver, AdminableService, atg.nucleus.Configured, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, java.io.Serializable, java.util.EventListener
Direct Known Subclasses:
CostCenterContainerService

public class CostCenterContainerService
extends GenericService
implements CostCenterMapContainer, CommerceIdentifierCostCenterContainer, atg.commerce.order.CostCenterConstants

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.

See Also:
Serialized Form

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.GenericService
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
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

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Constructor Detail

CostCenterContainerService

public CostCenterContainerService()
Creates a new CostCenterContainerService instance.

Method Detail

setCommerceIdentifierCostCenterMap

public void setCommerceIdentifierCostCenterMap(java.util.Map pCommerceIdentifierCostCenterMap)
Set the CommerceIdentifierCostCenterMap property.

Parameters:
pCommerceIdentifierCostCenterMap - a Map value

getCommerceIdentifierCostCenterMap

public java.util.Map getCommerceIdentifierCostCenterMap()
Return the CommerceIdentifierCostCenterMap property.

Specified by:
getCommerceIdentifierCostCenterMap in interface CommerceIdentifierCostCenterContainer
Returns:
a Map value

setCostCenterMap

public void setCostCenterMap(java.util.Map pCostCenterMap)
Set the CostCenterMap property.

Parameters:
pCostCenterMap - a Map value

getCostCenterMap

public java.util.Map getCostCenterMap()
Return the CostCenterMap property.

Specified by:
getCostCenterMap in interface CostCenterMapContainer
Returns:
a Map value

getCommerceIdentifierCostCenters

public java.util.List getCommerceIdentifierCostCenters(java.lang.String pCommerceIdentifierId)
The getCommerceIdentifierCostCenters method returns the List of CommerceIdentifierCostCenters corresponding to the supplied CommerceIdentifierId.

Specified by:
getCommerceIdentifierCostCenters in interface CommerceIdentifierCostCenterContainer
Parameters:
pCommerceIdentifierId - a String value
Returns:
a List value

getAllCommerceIdentifierCostCenters

public java.util.List getAllCommerceIdentifierCostCenters()
The getAllCommerceIdentifierCostCenters method returns all the CommerceIdentifierCostCenters in this container.

Specified by:
getAllCommerceIdentifierCostCenters in interface CommerceIdentifierCostCenterContainer
Returns:
a List value

addCommerceIdentifierCostCenter

public void addCommerceIdentifierCostCenter(java.lang.String pCommerceIdentifierId,
                                            CommerceIdentifierCostCenter pCommerceIdentifierCostCenter)
The addCommerceIdentifierCostCenter method adds the supplied CommerceIdentifierCostCenter by the supplied name.

Specified by:
addCommerceIdentifierCostCenter in interface CommerceIdentifierCostCenterContainer
Parameters:
pCommerceIdentifierId - a String value
pCommerceIdentifierCostCenter - a CommerceIdentifierCostCenter value

removeAllCommerceIdentifierCostCenters

public void removeAllCommerceIdentifierCostCenters()
The removeAllCommerceIdentifierCostCenters method clears the CommerceIdentifierCostCenterMap.

Specified by:
removeAllCommerceIdentifierCostCenters in interface CommerceIdentifierCostCenterContainer

removeCommerceIdentifierCostCenters

public void removeCommerceIdentifierCostCenters(java.lang.String pCommerceIdentifierId)
The removeCommerceIdentifierCostCenters method removes the CommerceIdentifierCostCenters corresponding to the supplied CommerceIdentifierId.

Specified by:
removeCommerceIdentifierCostCenters in interface CommerceIdentifierCostCenterContainer
Parameters:
pCommerceIdentifierId - a String value

getCostCenter

public CostCenter getCostCenter(java.lang.String pCostCenterName)
The getCostCenter method returns the CostCenter with the supplied name.

Specified by:
getCostCenter in interface CostCenterMapContainer
Parameters:
pCostCenterName - a String value
Returns:
a CostCenter value

addCostCenter

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

Specified by:
addCostCenter in interface CostCenterMapContainer
Parameters:
pCostCenterName - a String value
pCostCenter - a CostCenter value

removeAllCostCenters

public void removeAllCostCenters()
The removeAllCostCenters method removes all CostCenters in this container.

Specified by:
removeAllCostCenters in interface CostCenterMapContainer

removeCostCenter

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

Specified by:
removeCostCenter in interface CostCenterMapContainer
Parameters:
pCostCenterName - a String value

setDefaultCostCenterName

public void setDefaultCostCenterName(java.lang.String pDefaultCostCenterName)
Set the DefaultCostCenterName property. Part of CostCenterMapContainer implementation.

Specified by:
setDefaultCostCenterName in interface CostCenterMapContainer
Parameters:
pDefaultCostCenterName - a String value

getDefaultCostCenterName

public java.lang.String getDefaultCostCenterName()
Return the DefaultCostCenterName property. Part of CostCenterMapContainer implementation.

Specified by:
getDefaultCostCenterName in interface CostCenterMapContainer
Returns:
a String value