atg.commerce.order.processor
Class ProcLoadPriceInfoObjects

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.logging.ApplicationLoggingImpl
          extended by atg.commerce.order.processor.LoadProperties
              extended by atg.commerce.order.processor.ProcLoadPriceInfoObjects
All Implemented Interfaces:
ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, PipelineProcessor

public class ProcLoadPriceInfoObjects
extends LoadProperties
implements PipelineProcessor

This processor loads the PriceInfo objects from the OrderRepository into the Order object.

See Also:
AmountInfo, OrderPriceInfo, ItemPriceInfo, ShippingPriceInfo, TaxPriceInfo

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Fields inherited from interface atg.service.pipeline.PipelineProcessor
STOP_CHAIN_EXECUTION, STOP_CHAIN_EXECUTION_AND_COMMIT, STOP_CHAIN_EXECUTION_AND_ROLLBACK
 
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
ProcLoadPriceInfoObjects()
           
 
Method Summary
 java.lang.String getAdjustmentsProperty()
          Returns the adjustmentsProperty
 java.lang.String getCommerceItemsProperty()
          Returns the commerceItemsProperty
 java.lang.String getCurrentPriceDetailsProperty()
          Returns the currentPriceDetailsProperty
 java.lang.String[] getDetailedItemPriceInfoProperties()
          Returns the detailedItemPriceInfoProperties
 java.lang.String getDetailsItemPriceInfoProperty()
          Returns the detailedItemPriceInfoProperties This is the property of DetailedItemPriceInfo that points to the ItemPriceInfo
 java.lang.String[] getDetailsRangeProperties()
          The list of properties from the DetailedItemPriceInfo's Range property that are stored in the details repository item
 java.lang.String getItemPriceInfoProperty()
          Returns the itemPriceInfoProperty
 java.lang.String getLoggingIdentifier()
          Returns property LoggingIdentifier
 java.lang.String getNonTaxableShippingItemsSubtotalPriceInfosProperty()
          Returns property nonTaxableShippingItemsSubtotalPriceInfosProperty
 java.lang.String getOrderPriceInfoProperty()
          Returns the orderPriceInfoProperty
 java.lang.String[] getPricingAdjustmentProperties()
          Returns the pricingAdjustmentProperties
 java.lang.String getRangeClass()
          The type of the Range class to be created in the DetailedItemPriceInfo
 java.lang.String getRangePropertyName()
          The name of the Range property in the DetailedItemPriceInfo
 int[] getRetCodes()
          Returns the valid return codes 1 - Order object saved successfully 2 - Order object save failed
 java.lang.String getShippingGroupsProperty()
          Returns the shippingGroupsProperty
 java.lang.String getShippingItemsSubtotalPriceInfosProperty()
          Returns property shippingItemsSubtotalPriceInfosProperty
 java.lang.String getShippingItemsTaxPriceInfosProperty()
          Returns property shippingItemsTaxPriceInfosProperty
 java.lang.String getShippingPriceInfoProperty()
          Returns the shippingPriceInfoProperty
 java.lang.String getTaxableShippingItemsSubtotalPriceInfosProperty()
          Returns property TaxableShippingItemsSubtotalPriceInfosProperty
 java.lang.String getTaxPriceInfoProperty()
          Returns the taxPriceInfoProperty
protected  void invalidateCache(ItemDescriptorImpl desc, MutableRepositoryItem mutItem)
          This method invalidates the item from the cache if invalidateCache is true
protected  void loadDetailedItemPriceInfos(Order order, java.lang.Object amtInfo, MutableRepositoryItem piRepItem, OrderManager orderManager, java.lang.Boolean invalidateCache)
          This method loads a List of DetailedItemPriceInfo objects into an AmountInfo.
protected  void loadDetailedRange(Order pOrder, java.lang.Object pDetail, MutableRepositoryItem pMutItem, OrderManager pOrderManager)
          Load the range from the repository item into the DetailedItemPriceInfo's Range property See the detailsRangeProperties for a list of properties that are copied
protected  void loadItemPriceInfo(Order order, CommerceIdentifier ci, MutableRepositoryItem mutItem, OrderManager orderManager, java.lang.Boolean invalidateCache)
          This method loads an ItemPriceInfo object of a CommerceItem.
protected  void loadNonTaxableShippingItemsSubtotalPriceInfos(Order order, java.lang.Object obj, MutableRepositoryItem piRepItem, OrderManager orderManager, java.lang.Boolean invalidateCache)
          This method is a pass through to the loadSubtotalPriceInfos method.
protected  void loadOrderPriceInfo(Order order, MutableRepositoryItem orderItem, OrderManager orderManager, java.lang.Boolean invalidateCache)
          This method loads the OrderPriceInfo object of an order.
protected  void loadPricingAdjustments(Order order, java.lang.Object obj, MutableRepositoryItem piRepItem, OrderManager orderManager, java.lang.Boolean invalidateCache)
          This method loads a List of PricingAdjustment objects into an AmountInfo.
protected  void loadShippingItemsSubtotalPriceInfos(Order order, java.lang.Object obj, MutableRepositoryItem piRepItem, OrderManager orderManager, java.lang.Boolean invalidateCache)
          This method is a pass through to the loadSubtotalPriceInfos method.
protected  void loadShippingItemsTaxPriceInfos(Order order, java.lang.Object obj, MutableRepositoryItem piRepItem, OrderManager orderManager, java.lang.Boolean invalidateCache)
          This method loads a Map of shippingItemsTaxPriceInfos objects into an AmountInfo.
protected  void loadShippingPriceInfo(Order order, CommerceIdentifier ci, MutableRepositoryItem mutItem, OrderManager orderManager, java.lang.Boolean invalidateCache)
          This method loads a ShippingPriceInfo object of a ShippingGroup See the loadProperties for a list of properties that are copied
protected  void loadSubSkuPriceInfo(Order order, CommerceIdentifier ci, MutableRepositoryItem configItem, OrderManager orderManager, java.lang.Boolean invalidateCache)
          This method iterates thru the subskus of a configurable sku, and then loads the priceinfos of a subskus.
protected  void loadSubtotalPriceInfos(Order order, java.lang.Object obj, MutableRepositoryItem piRepItem, OrderManager orderManager, java.lang.String pPropertyName, java.lang.Boolean invalidateCache)
          This method loads a Map of (shipping group -> price info) objects into an AmountInfo.
protected  void loadTaxableShippingItemsSubtotalPriceInfos(Order order, java.lang.Object obj, MutableRepositoryItem piRepItem, OrderManager orderManager, java.lang.Boolean invalidateCache)
          This method is a pass through to the loadSubtotalPriceInfos method.
protected  void loadTaxPriceInfo(Order order, MutableRepositoryItem orderItem, OrderManager orderManager, java.lang.Boolean invalidateCache)
          This method loads the TaxPriceInfo object of an order.
protected  void readProperties(Order order, java.lang.Object obj, java.lang.String[] loadProperties, MutableRepositoryItem mutItem, RepositoryItemDescriptor desc, OrderManager orderManager)
          This method loads a List of properties from a repository item into an object.
 int runProcess(java.lang.Object pParam, PipelineResult pResult)
          This method loads the PriceInfo objects from the OrderRepository into the Order object.
 void setAdjustmentsProperty(java.lang.String pAdjustmentsProperty)
          Sets the adjustmentsProperty
 void setCommerceItemsProperty(java.lang.String pCommerceItemsProperty)
          Sets the commerceItemsProperty
 void setCurrentPriceDetailsProperty(java.lang.String pCurrentPriceDetailsProperty)
          Sets the currentPriceDetailsProperty
 void setDetailedItemPriceInfoProperties(java.lang.String[] pDetailedItemPriceInfoProperties)
          Sets the detailedItemPriceInfoProperties
 void setDetailsItemPriceInfoProperty(java.lang.String pDetailsItemPriceInfoProperty)
          Sets the detailedItemPriceInfoProperties
 void setDetailsRangeProperties(java.lang.String[] pDetailsRangeProperties)
           
 void setItemPriceInfoProperty(java.lang.String pItemPriceInfoProperty)
          Sets the itemPriceInfoProperty
 void setLoggingIdentifier(java.lang.String pLoggingIdentifier)
          Sets property LoggingIdentifier
 void setNonTaxableShippingItemsSubtotalPriceInfosProperty(java.lang.String pNonTaxableShippingItemsSubtotalPriceInfosProperty)
          Sets property NonTaxableShippingItemsSubtotalPriceInfosProperty
 void setOrderPriceInfoProperty(java.lang.String pOrderPriceInfoProperty)
          Sets the orderPriceInfoProperty
 void setPricingAdjustmentProperties(java.lang.String[] pPricingAdjustmentProperties)
          Sets the pricingAdjustmentProperties
 void setRangeClass(java.lang.String pRangeClass)
           
 void setRangePropertyName(java.lang.String pRangePropertyName)
           
 void setShippingGroupsProperty(java.lang.String pShippingGroupsProperty)
          Sets the shippingGroupsProperty
 void setShippingItemsSubtotalPriceInfosProperty(java.lang.String pShippingItemsSubtotalPriceInfosProperty)
          Sets property shippingItemsSubtotalPriceInfosProperty
 void setShippingItemsTaxPriceInfosProperty(java.lang.String pShippingItemsTaxPriceInfosProperty)
          Sets property shippingItemsTaxPriceInfosProperty
 void setShippingPriceInfoProperty(java.lang.String pShippingPriceInfoProperty)
          Sets the shippingPriceInfoProperty
 void setTaxableShippingItemsSubtotalPriceInfosProperty(java.lang.String pTaxableShippingItemsSubtotalPriceInfosProperty)
          Sets property TaxableShippingItemsSubtotalPriceInfosProperty
 void setTaxPriceInfoProperty(java.lang.String pTaxPriceInfoProperty)
          Sets the taxPriceInfoProperty
 
Methods inherited from class atg.commerce.order.processor.LoadProperties
getLoadProperties, getMappedPropertyName, getPropertyDescriptorToBeanPropertyMap, setLoadProperties, setPropertyDescriptorToBeanPropertyMap
 
Methods inherited from class atg.nucleus.logging.ApplicationLoggingImpl
addGlobalLogListeners, addLogListener, getLoggingForVlogging, getLoggingIdentifer, getLogListenerCount, getLogListeners, initializeFromServiceEvent, isAutoInitListeners, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, removeLogListener, sendLogEvent, setAutoInitListeners, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning
 
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 final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values
Constructor Detail

ProcLoadPriceInfoObjects

public ProcLoadPriceInfoObjects()
Method Detail

getRetCodes

public int[] getRetCodes()
Returns the valid return codes 1 - Order object saved successfully 2 - Order object save failed

Specified by:
getRetCodes in interface PipelineProcessor
Returns:
an integer array of the valid return codes.

getPricingAdjustmentProperties

public java.lang.String[] getPricingAdjustmentProperties()
Returns the pricingAdjustmentProperties


setPricingAdjustmentProperties

public void setPricingAdjustmentProperties(java.lang.String[] pPricingAdjustmentProperties)
Sets the pricingAdjustmentProperties


getDetailedItemPriceInfoProperties

public java.lang.String[] getDetailedItemPriceInfoProperties()
Returns the detailedItemPriceInfoProperties


setDetailedItemPriceInfoProperties

public void setDetailedItemPriceInfoProperties(java.lang.String[] pDetailedItemPriceInfoProperties)
Sets the detailedItemPriceInfoProperties


getDetailsItemPriceInfoProperty

public java.lang.String getDetailsItemPriceInfoProperty()
Returns the detailedItemPriceInfoProperties This is the property of DetailedItemPriceInfo that points to the ItemPriceInfo


setDetailsItemPriceInfoProperty

public void setDetailsItemPriceInfoProperty(java.lang.String pDetailsItemPriceInfoProperty)
Sets the detailedItemPriceInfoProperties


getAdjustmentsProperty

public java.lang.String getAdjustmentsProperty()
Returns the adjustmentsProperty


setAdjustmentsProperty

public void setAdjustmentsProperty(java.lang.String pAdjustmentsProperty)
Sets the adjustmentsProperty


getCurrentPriceDetailsProperty

public java.lang.String getCurrentPriceDetailsProperty()
Returns the currentPriceDetailsProperty


setCurrentPriceDetailsProperty

public void setCurrentPriceDetailsProperty(java.lang.String pCurrentPriceDetailsProperty)
Sets the currentPriceDetailsProperty


getShippingItemsSubtotalPriceInfosProperty

public java.lang.String getShippingItemsSubtotalPriceInfosProperty()
Returns property shippingItemsSubtotalPriceInfosProperty

Returns:
returns property shippingItemsSubtotalPriceInfosProperty

setShippingItemsSubtotalPriceInfosProperty

public void setShippingItemsSubtotalPriceInfosProperty(java.lang.String pShippingItemsSubtotalPriceInfosProperty)
Sets property shippingItemsSubtotalPriceInfosProperty

Parameters:
pShippingItemsSubtotalPriceInfosProperty - the value to set for property shippingItemsSubtotalPriceInfosProperty

getTaxableShippingItemsSubtotalPriceInfosProperty

public java.lang.String getTaxableShippingItemsSubtotalPriceInfosProperty()
Returns property TaxableShippingItemsSubtotalPriceInfosProperty

Returns:
returns property TaxableShippingItemsSubtotalPriceInfosProperty

setTaxableShippingItemsSubtotalPriceInfosProperty

public void setTaxableShippingItemsSubtotalPriceInfosProperty(java.lang.String pTaxableShippingItemsSubtotalPriceInfosProperty)
Sets property TaxableShippingItemsSubtotalPriceInfosProperty

Parameters:
pTaxableShippingItemsSubtotalPriceInfosProperty - the value to set for property TaxableShippingItemsSubtotalPriceInfosProperty

getNonTaxableShippingItemsSubtotalPriceInfosProperty

public java.lang.String getNonTaxableShippingItemsSubtotalPriceInfosProperty()
Returns property nonTaxableShippingItemsSubtotalPriceInfosProperty

Returns:
returns property nonTaxableShippingItemsSubtotalPriceInfosProperty

setNonTaxableShippingItemsSubtotalPriceInfosProperty

public void setNonTaxableShippingItemsSubtotalPriceInfosProperty(java.lang.String pNonTaxableShippingItemsSubtotalPriceInfosProperty)
Sets property NonTaxableShippingItemsSubtotalPriceInfosProperty

Parameters:
pNonTaxableShippingItemsSubtotalPriceInfosProperty - the value to set for property NonTaxableShippingItemsSubtotalPriceInfosProperty

getShippingItemsTaxPriceInfosProperty

public java.lang.String getShippingItemsTaxPriceInfosProperty()
Returns property shippingItemsTaxPriceInfosProperty

Returns:
returns property shippingItemsTaxPriceInfosProperty

setShippingItemsTaxPriceInfosProperty

public void setShippingItemsTaxPriceInfosProperty(java.lang.String pShippingItemsTaxPriceInfosProperty)
Sets property shippingItemsTaxPriceInfosProperty

Parameters:
pShippingItemsTaxPriceInfosProperty - the value to set for property shippingItemsTaxPriceInfosProperty

getOrderPriceInfoProperty

public java.lang.String getOrderPriceInfoProperty()
Returns the orderPriceInfoProperty


setOrderPriceInfoProperty

public void setOrderPriceInfoProperty(java.lang.String pOrderPriceInfoProperty)
Sets the orderPriceInfoProperty


getTaxPriceInfoProperty

public java.lang.String getTaxPriceInfoProperty()
Returns the taxPriceInfoProperty


setTaxPriceInfoProperty

public void setTaxPriceInfoProperty(java.lang.String pTaxPriceInfoProperty)
Sets the taxPriceInfoProperty


getShippingPriceInfoProperty

public java.lang.String getShippingPriceInfoProperty()
Returns the shippingPriceInfoProperty


setShippingPriceInfoProperty

public void setShippingPriceInfoProperty(java.lang.String pShippingPriceInfoProperty)
Sets the shippingPriceInfoProperty


getItemPriceInfoProperty

public java.lang.String getItemPriceInfoProperty()
Returns the itemPriceInfoProperty


setItemPriceInfoProperty

public void setItemPriceInfoProperty(java.lang.String pItemPriceInfoProperty)
Sets the itemPriceInfoProperty


getCommerceItemsProperty

public java.lang.String getCommerceItemsProperty()
Returns the commerceItemsProperty


setCommerceItemsProperty

public void setCommerceItemsProperty(java.lang.String pCommerceItemsProperty)
Sets the commerceItemsProperty


getShippingGroupsProperty

public java.lang.String getShippingGroupsProperty()
Returns the shippingGroupsProperty


setShippingGroupsProperty

public void setShippingGroupsProperty(java.lang.String pShippingGroupsProperty)
Sets the shippingGroupsProperty


setRangePropertyName

public void setRangePropertyName(java.lang.String pRangePropertyName)

getRangePropertyName

public java.lang.String getRangePropertyName()
The name of the Range property in the DetailedItemPriceInfo


setRangeClass

public void setRangeClass(java.lang.String pRangeClass)

getRangeClass

public java.lang.String getRangeClass()
The type of the Range class to be created in the DetailedItemPriceInfo


setDetailsRangeProperties

public void setDetailsRangeProperties(java.lang.String[] pDetailsRangeProperties)

getDetailsRangeProperties

public java.lang.String[] getDetailsRangeProperties()
The list of properties from the DetailedItemPriceInfo's Range property that are stored in the details repository item


setLoggingIdentifier

public void setLoggingIdentifier(java.lang.String pLoggingIdentifier)
Sets property LoggingIdentifier

Overrides:
setLoggingIdentifier in class ApplicationLoggingImpl

getLoggingIdentifier

public java.lang.String getLoggingIdentifier()
Returns property LoggingIdentifier

Overrides:
getLoggingIdentifier in class ApplicationLoggingImpl

runProcess

public int runProcess(java.lang.Object pParam,
                      PipelineResult pResult)
               throws java.lang.Exception
This method loads the PriceInfo objects from the OrderRepository into the Order object. It does this by constructing a new AmountInfo instance based on the class mapped to the repository item type of the PriceInfo. It then iterates through the properties listed in the loadProperties property inherited by this class, setting the values in the object. This method requires that an Order, order repository item, and OrderManager object be supplied in pParam in a HashMap. Use the PipelineConstants class' static members to key the objects in the HashMap.

Specified by:
runProcess in interface PipelineProcessor
Parameters:
pParam - a HashMap which must contain an Order, order repository item, and OrderManager object
pResult - a PipelineResult object which stores any information which must be returned from this method invokation
Returns:
an integer specifying the processor's return code
Throws:
java.lang.Exception - throws any exception back to the caller
See Also:
PipelineProcessor.runProcess(Object, PipelineResult)

invalidateCache

protected void invalidateCache(ItemDescriptorImpl desc,
                               MutableRepositoryItem mutItem)
This method invalidates the item from the cache if invalidateCache is true


loadOrderPriceInfo

protected void loadOrderPriceInfo(Order order,
                                  MutableRepositoryItem orderItem,
                                  OrderManager orderManager,
                                  java.lang.Boolean invalidateCache)
                           throws java.lang.Exception
This method loads the OrderPriceInfo object of an order. For each order it creates the appropriate AmountInfo (using the OrderTools.beanNameToItemDescriptorMap). It then copies the properties from the repository item into this class. It then loads the rest of the object. See the loadProperties for a list of properties that are copied

Parameters:
order - The order whose price info is being loaded
orderItem - The repository item that corresponds to the order
orderManager - The OrderManager that was in the pipeline params
invalidateCache - If true, then the order's price info repository cache entry is invalidated
Throws:
java.lang.Exception
See Also:
readProperties(atg.commerce.order.Order, java.lang.Object, java.lang.String[], atg.repository.MutableRepositoryItem, atg.repository.RepositoryItemDescriptor, atg.commerce.order.OrderManager), loadPricingAdjustments(atg.commerce.order.Order, java.lang.Object, atg.repository.MutableRepositoryItem, atg.commerce.order.OrderManager, java.lang.Boolean), loadShippingItemsSubtotalPriceInfos(atg.commerce.order.Order, java.lang.Object, atg.repository.MutableRepositoryItem, atg.commerce.order.OrderManager, java.lang.Boolean), loadTaxableShippingItemsSubtotalPriceInfos(atg.commerce.order.Order, java.lang.Object, atg.repository.MutableRepositoryItem, atg.commerce.order.OrderManager, java.lang.Boolean), loadNonTaxableShippingItemsSubtotalPriceInfos(atg.commerce.order.Order, java.lang.Object, atg.repository.MutableRepositoryItem, atg.commerce.order.OrderManager, java.lang.Boolean)

loadTaxPriceInfo

protected void loadTaxPriceInfo(Order order,
                                MutableRepositoryItem orderItem,
                                OrderManager orderManager,
                                java.lang.Boolean invalidateCache)
                         throws java.lang.Exception
This method loads the TaxPriceInfo object of an order. For each order it creates the appropriate AmountInfo (using the OrderTools.beanNameToItemDescriptorMap). It then copies the properties from the repository item into this class. It then loads the rest of the object. See the loadProperties for a list of properties that are copied

Parameters:
order - The order whose price info is being loaded
orderItem - The repository item that corresponds to the order
orderManager - The OrderManager that was in the pipeline params
invalidateCache - If true, then the order's tax price info repository cache entry is invalidated
Throws:
java.lang.Exception
See Also:
readProperties(atg.commerce.order.Order, java.lang.Object, java.lang.String[], atg.repository.MutableRepositoryItem, atg.repository.RepositoryItemDescriptor, atg.commerce.order.OrderManager), loadPricingAdjustments(atg.commerce.order.Order, java.lang.Object, atg.repository.MutableRepositoryItem, atg.commerce.order.OrderManager, java.lang.Boolean), loadShippingItemsTaxPriceInfos(atg.commerce.order.Order, java.lang.Object, atg.repository.MutableRepositoryItem, atg.commerce.order.OrderManager, java.lang.Boolean)

loadItemPriceInfo

protected void loadItemPriceInfo(Order order,
                                 CommerceIdentifier ci,
                                 MutableRepositoryItem mutItem,
                                 OrderManager orderManager,
                                 java.lang.Boolean invalidateCache)
                          throws java.lang.Exception
This method loads an ItemPriceInfo object of a CommerceItem. If the item is a configurable item, then the ItemPriceInfo objects of the subskus of the commerceItem are also loaded. See the loadProperties for a list of properties that are copied

Parameters:
order - The order whose item's price info is being loaded
ci - The commerce item whose price is being loaded
mutItem - The repository item for the commerce item
orderManager - The OrderManager that was in the pipeline params
invalidateCache - If true, then the item's price info repository cache entry is invalidated
Throws:
java.lang.Exception
See Also:
readProperties(atg.commerce.order.Order, java.lang.Object, java.lang.String[], atg.repository.MutableRepositoryItem, atg.repository.RepositoryItemDescriptor, atg.commerce.order.OrderManager), loadPricingAdjustments(atg.commerce.order.Order, java.lang.Object, atg.repository.MutableRepositoryItem, atg.commerce.order.OrderManager, java.lang.Boolean), loadDetailedItemPriceInfos(atg.commerce.order.Order, java.lang.Object, atg.repository.MutableRepositoryItem, atg.commerce.order.OrderManager, java.lang.Boolean)

loadSubSkuPriceInfo

protected void loadSubSkuPriceInfo(Order order,
                                   CommerceIdentifier ci,
                                   MutableRepositoryItem configItem,
                                   OrderManager orderManager,
                                   java.lang.Boolean invalidateCache)
                            throws java.lang.Exception
This method iterates thru the subskus of a configurable sku, and then loads the priceinfos of a subskus.

Parameters:
order - The order whose item's price info is being loaded
ci - The commerce item whose price is being loaded
configItem - The repository item for the commerce item
orderManager - The OrderManager that was in the pipeline params
invalidateCache - If true, then the item's price info repository cache entry is invalidated
Throws:
java.lang.Exception
See Also:
loadItemPriceInfo(atg.commerce.order.Order, atg.commerce.order.CommerceIdentifier, atg.repository.MutableRepositoryItem, atg.commerce.order.OrderManager, java.lang.Boolean)

loadShippingPriceInfo

protected void loadShippingPriceInfo(Order order,
                                     CommerceIdentifier ci,
                                     MutableRepositoryItem mutItem,
                                     OrderManager orderManager,
                                     java.lang.Boolean invalidateCache)
                              throws java.lang.Exception
This method loads a ShippingPriceInfo object of a ShippingGroup See the loadProperties for a list of properties that are copied

Parameters:
order - The order whose shipping group's price info is being loaded
ci - The shipping group whose price is being loaded
mutItem - The repository item for the shipping group
orderManager - The OrderManager that was in the pipeline params
invalidateCache - If true, then the shipping group's price info repository cache entry is invalidated
Throws:
java.lang.Exception
See Also:
readProperties(atg.commerce.order.Order, java.lang.Object, java.lang.String[], atg.repository.MutableRepositoryItem, atg.repository.RepositoryItemDescriptor, atg.commerce.order.OrderManager), loadPricingAdjustments(atg.commerce.order.Order, java.lang.Object, atg.repository.MutableRepositoryItem, atg.commerce.order.OrderManager, java.lang.Boolean)

loadShippingItemsSubtotalPriceInfos

protected void loadShippingItemsSubtotalPriceInfos(Order order,
                                                   java.lang.Object obj,
                                                   MutableRepositoryItem piRepItem,
                                                   OrderManager orderManager,
                                                   java.lang.Boolean invalidateCache)
                                            throws java.lang.Exception
This method is a pass through to the loadSubtotalPriceInfos method. It passes in the shippingItemsSubtotalPriceInfosProperty value as the property name

Throws:
java.lang.Exception
See Also:
loadSubtotalPriceInfos(atg.commerce.order.Order, java.lang.Object, atg.repository.MutableRepositoryItem, atg.commerce.order.OrderManager, java.lang.String, java.lang.Boolean)

loadTaxableShippingItemsSubtotalPriceInfos

protected void loadTaxableShippingItemsSubtotalPriceInfos(Order order,
                                                          java.lang.Object obj,
                                                          MutableRepositoryItem piRepItem,
                                                          OrderManager orderManager,
                                                          java.lang.Boolean invalidateCache)
                                                   throws java.lang.Exception
This method is a pass through to the loadSubtotalPriceInfos method. It passes in the taxableShippingItemsSubtotalPriceInfosProperty value as the property name

Throws:
java.lang.Exception
See Also:
loadSubtotalPriceInfos(atg.commerce.order.Order, java.lang.Object, atg.repository.MutableRepositoryItem, atg.commerce.order.OrderManager, java.lang.String, java.lang.Boolean)

loadNonTaxableShippingItemsSubtotalPriceInfos

protected void loadNonTaxableShippingItemsSubtotalPriceInfos(Order order,
                                                             java.lang.Object obj,
                                                             MutableRepositoryItem piRepItem,
                                                             OrderManager orderManager,
                                                             java.lang.Boolean invalidateCache)
                                                      throws java.lang.Exception
This method is a pass through to the loadSubtotalPriceInfos method. It passes in the nonTaxableShippingItemsSubtotalPriceInfosProperty value as the property name

Throws:
java.lang.Exception
See Also:
loadSubtotalPriceInfos(atg.commerce.order.Order, java.lang.Object, atg.repository.MutableRepositoryItem, atg.commerce.order.OrderManager, java.lang.String, java.lang.Boolean)

loadSubtotalPriceInfos

protected void loadSubtotalPriceInfos(Order order,
                                      java.lang.Object obj,
                                      MutableRepositoryItem piRepItem,
                                      OrderManager orderManager,
                                      java.lang.String pPropertyName,
                                      java.lang.Boolean invalidateCache)
                               throws java.lang.Exception
This method loads a Map of (shipping group -> price info) objects into an AmountInfo. See the loadProperties for a list of properties that are copied

Parameters:
order - The order being loaded
obj - The amount info for the order's priceInfo
piRepItem - The repository item for the order's priceInfo
orderManager - The OrderManager in the pipeline params
pPropertyName - The name of the map to load
invalidateCache - If true, then each price info repository cache entry is invalidated
Throws:
java.lang.Exception
See Also:
readProperties(atg.commerce.order.Order, java.lang.Object, java.lang.String[], atg.repository.MutableRepositoryItem, atg.repository.RepositoryItemDescriptor, atg.commerce.order.OrderManager)

loadShippingItemsTaxPriceInfos

protected void loadShippingItemsTaxPriceInfos(Order order,
                                              java.lang.Object obj,
                                              MutableRepositoryItem piRepItem,
                                              OrderManager orderManager,
                                              java.lang.Boolean invalidateCache)
                                       throws java.lang.Exception
This method loads a Map of shippingItemsTaxPriceInfos objects into an AmountInfo. See the loadProperties for a list of properties that are copied

Parameters:
order - The order being loaded
obj - The amount info for the shipping group's priceInfo
piRepItem - The repository item for the shipping group's priceInfo
orderManager - The OrderManager in the pipeline params
invalidateCache - If true, then each price info repository cache entry is invalidated
Throws:
java.lang.Exception
See Also:
readProperties(atg.commerce.order.Order, java.lang.Object, java.lang.String[], atg.repository.MutableRepositoryItem, atg.repository.RepositoryItemDescriptor, atg.commerce.order.OrderManager)

loadPricingAdjustments

protected void loadPricingAdjustments(Order order,
                                      java.lang.Object obj,
                                      MutableRepositoryItem piRepItem,
                                      OrderManager orderManager,
                                      java.lang.Boolean invalidateCache)
                               throws java.lang.Exception
This method loads a List of PricingAdjustment objects into an AmountInfo. See the pricingAdjusmtentProperties for a list of properties that are copied

Parameters:
order - The order being loaded
obj - The amount info
piRepItem - The repository item for the amount info
orderManager - The OrderManager in the pipeline params
invalidateCache - If true, then each pricing adjustment repository cache entry is invalidated
Throws:
java.lang.Exception
See Also:
readProperties(atg.commerce.order.Order, java.lang.Object, java.lang.String[], atg.repository.MutableRepositoryItem, atg.repository.RepositoryItemDescriptor, atg.commerce.order.OrderManager)

loadDetailedItemPriceInfos

protected void loadDetailedItemPriceInfos(Order order,
                                          java.lang.Object amtInfo,
                                          MutableRepositoryItem piRepItem,
                                          OrderManager orderManager,
                                          java.lang.Boolean invalidateCache)
                                   throws java.lang.Exception
This method loads a List of DetailedItemPriceInfo objects into an AmountInfo. It also sets DetailedItemPriceInfo.itemPriceInfo to amtInfo. See the detailedItemPriceInfoProperties for a list of properties that are copied

Parameters:
order - The order being loaded
amtInfo - The amount info for the commerce item
piRepItem - The repository item for the amount info
orderManager - The OrderManager in the pipeline params
invalidateCache - If true, then each pricing adjustment repository cache entry is invalidated
Throws:
java.lang.Exception
See Also:
readProperties(atg.commerce.order.Order, java.lang.Object, java.lang.String[], atg.repository.MutableRepositoryItem, atg.repository.RepositoryItemDescriptor, atg.commerce.order.OrderManager), loadPricingAdjustments(atg.commerce.order.Order, java.lang.Object, atg.repository.MutableRepositoryItem, atg.commerce.order.OrderManager, java.lang.Boolean), loadDetailedRange(atg.commerce.order.Order, java.lang.Object, atg.repository.MutableRepositoryItem, atg.commerce.order.OrderManager)

readProperties

protected void readProperties(Order order,
                              java.lang.Object obj,
                              java.lang.String[] loadProperties,
                              MutableRepositoryItem mutItem,
                              RepositoryItemDescriptor desc,
                              OrderManager orderManager)
                       throws PropertyNotFoundException,
                              java.beans.IntrospectionException
This method loads a List of properties from a repository item into an object.

Parameters:
order - The order being loaded
obj - The object that each property is copied into
loadProperties - The list of properties to load
mutItem - The repository item that each property is copied from
desc - The item descriptor for mutItem
orderManager - The OrderManager in the pipeline params
Throws:
PropertyNotFoundException
java.beans.IntrospectionException

loadDetailedRange

protected void loadDetailedRange(Order pOrder,
                                 java.lang.Object pDetail,
                                 MutableRepositoryItem pMutItem,
                                 OrderManager pOrderManager)
                          throws java.lang.Exception
Load the range from the repository item into the DetailedItemPriceInfo's Range property See the detailsRangeProperties for a list of properties that are copied

Parameters:
pOrder - The order being loaded
pDetail - The detailed item price being loaded
pMutItem - The repository item corresponding to the detail
pOrderManager - The order manager in the pipeline params
Throws:
java.lang.Exception
See Also:
readProperties(atg.commerce.order.Order, java.lang.Object, java.lang.String[], atg.repository.MutableRepositoryItem, atg.repository.RepositoryItemDescriptor, atg.commerce.order.OrderManager)