|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.commerce.order.purchase.PurchaseProcessConfiguration
public class PurchaseProcessConfiguration
This class is designed to be configured as a session scoped component which stores configuration parameters for the family of PurchaseProcessFormHandler subclasses. Each form handler can be configured directly, however there are a large number of configuration properties to be set. In addition to the convenience of centralizing common properties in a single location, there is also a slight performance benefit. Since, typically, any form handler is request scoped this causes some overhead on every single request. In using this component all the configuration parameters are configured once per session, and then the form handler only has to resolve one component.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary | |
---|---|
PurchaseProcessConfiguration()
Constructor |
Method Summary | |
---|---|
ClaimableManager |
getClaimableManager()
Returns the ClaimableManager is used in determining the user's GiftCertificates. |
CommerceIdentifierPaymentInfoContainer |
getCommerceIdentifierPaymentInfoContainer()
Return the CommerceIdentifierPaymentInfoContainer property. |
CommerceItemManager |
getCommerceItemManager()
Return the CommerceItemManager property. |
CommerceItemShippingInfoContainer |
getCommerceItemShippingInfoContainer()
Return the CommerceItemShippingInfoContainer property. |
CommerceProfileTools |
getCommerceProfileTools()
Returns property CommerceProfileTools |
CommercePropertyManager |
getCommercePropertyManager()
Return the CommercePropertyManager property. |
GiftlistManager |
getGiftlistManager()
Return the giftlist manager |
HandlingInstructionManager |
getHandlingInstructionManager()
The HandlingInstruction manager |
ClientLockManager |
getLocalLockManager()
Return the lock manager to use if useLocksAroundTransactions
is true in PurchaseProcessFormHandler subclasses. |
SimpleOrderManager |
getOrderManager()
Returns property OrderManager |
PaymentGroupManager |
getPaymentGroupManager()
Return the PaymentGroupManager property. |
PaymentGroupMapContainer |
getPaymentGroupMapContainer()
Return the PaymentGroupMapContainer property. |
PipelineManager |
getPipelineManager()
Returns property PipelineManager |
PriceListManager |
getPriceListManager()
Returns the Price List Manager |
RepositoryItem |
getProfile()
Returns property Profile |
Repository |
getProfileRepository()
Return the ProfileRepository property. |
PurchaseProcessHelper |
getPurchaseProcessHelper()
Returns property purchaseProcessHelper |
RepeatingRequestMonitor |
getRepeatingRequestMonitor()
Return the RepeatingRequestMonitor property. |
java.lang.String |
getRepriceOrderChainId()
Returns property RepriceOrderChainId |
java.lang.String |
getSessionExpirationURL()
Return the SessionExpirationURL property. |
ShippingGroupManager |
getShippingGroupManager()
Return the ShippingGroupManager property. |
ShippingGroupMapContainer |
getShippingGroupMapContainer()
Return the ShippingGroupMapContainer property. |
OrderHolder |
getShoppingCart()
Returns property ShoppingCart |
TransactionLockFactory |
getTransactionLockFactory()
The transactionLockFactory is used to get the locks if useLocksArountTransactions is true |
javax.transaction.TransactionManager |
getTransactionManager()
Returns property TransactionManager |
PricingModelHolder |
getUserPricingModels()
Returns property UserPricingModels |
boolean |
isEnsureTransaction()
Returns property EnsureTransaction |
boolean |
isUseLocksAroundTransactionExplicitlySet()
This will return true if the value of useLocksAroundTransaction has been
explicitly set either through code or through a properties file. |
boolean |
isUseLocksAroundTransactions()
Deprecated. Use the TransactionLockFactory instead |
void |
setClaimableManager(ClaimableManager pClaimableManager)
Specifies the ClaimableManager to use in determining the user's GiftCertificates. |
void |
setCommerceIdentifierPaymentInfoContainer(CommerceIdentifierPaymentInfoContainer pCommerceIdentifierPaymentInfoContainer)
Set the CommerceIdentifierPaymentInfoContainer property. |
void |
setCommerceItemManager(CommerceItemManager pCommerceItemManager)
Set the CommerceItemManager property. |
void |
setCommerceItemShippingInfoContainer(CommerceItemShippingInfoContainer pCommerceItemShippingInfoContainer)
Set the CommerceItemShippingInfoContainer property. |
void |
setCommerceProfileTools(CommerceProfileTools pCommerceProfileTools)
Sets property CommerceProfileTools |
void |
setCommercePropertyManager(CommercePropertyManager pCommercePropertyManager)
Set the CommercePropertyManager property. |
void |
setEnsureTransaction(boolean pEnsureTransaction)
Sets property EnsureTransaction |
void |
setGiftlistManager(GiftlistManager pGiftlistManager)
Set the giftlist manager |
void |
setHandlingInstructionManager(HandlingInstructionManager pHandlingInstructionManager)
Specifies the HandlingInstructionManager. |
void |
setLocalLockManager(ClientLockManager pLocalLockManager)
Specify the lock manager to use if useLocksAroundTransactions
is true in PurchaseProcessFormHandler subclasses. |
void |
setOrderManager(SimpleOrderManager pOrderManager)
Sets property OrderManager |
void |
setPaymentGroupManager(PaymentGroupManager pPaymentGroupManager)
Set the PaymentGroupManager property. |
void |
setPaymentGroupMapContainer(PaymentGroupMapContainer pPaymentGroupMapContainer)
Set the PaymentGroupMapContainer property. |
void |
setPipelineManager(PipelineManager pPipelineManager)
Sets property PipelineManager |
void |
setPriceListManager(PriceListManager pPriceListManager)
Sets the Price List Manager |
void |
setProfile(RepositoryItem pProfile)
Sets property Profile |
void |
setProfileRepository(Repository pProfileRepository)
Set the ProfileRepository property. |
void |
setPurchaseProcessHelper(PurchaseProcessHelper pPurchaseProcessHelper)
Sets property purchaseProcessHelper |
void |
setRepeatingRequestMonitor(RepeatingRequestMonitor pRepeatingRequestMonitor)
Set the RepeatingRequestMonitor property. |
void |
setRepriceOrderChainId(java.lang.String pRepriceOrderChainId)
Sets property RepriceOrderChainId |
void |
setSessionExpirationURL(java.lang.String pSessionExpirationURL)
Set the SessionExpirationURL property. |
void |
setShippingGroupManager(ShippingGroupManager pShippingGroupManager)
Set the ShippingGroupManager property. |
void |
setShippingGroupMapContainer(ShippingGroupMapContainer pShippingGroupMapContainer)
Set the ShippingGroupMapContainer property. |
void |
setShoppingCart(OrderHolder pShoppingCart)
Sets property ShoppingCart |
void |
setTransactionLockFactory(TransactionLockFactory pTransactionLockFactory)
The transactionLockFactory is used to get the locks if useLocksArountTransactions is true |
void |
setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
Sets property TransactionManager |
void |
setUseLocksAroundTransactions(boolean pUseLocksAroundTransactions)
Deprecated. Use the TransactionLockFactory instead |
void |
setUserPricingModels(PricingModelHolder pUserPricingModels)
Sets property UserPricingModels |
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 PurchaseProcessConfiguration()
Method Detail |
---|
public void setCommercePropertyManager(CommercePropertyManager pCommercePropertyManager)
pCommercePropertyManager
- the Commerce profile property managerpublic CommercePropertyManager getCommercePropertyManager()
public void setPriceListManager(PriceListManager pPriceListManager)
pPriceListManager
- the Price List Managerpublic PriceListManager getPriceListManager()
public void setClaimableManager(ClaimableManager pClaimableManager)
pClaimableManager
- a ClaimableManager
valuepublic ClaimableManager getClaimableManager()
ClaimableManager
valuepublic void setCommerceIdentifierPaymentInfoContainer(CommerceIdentifierPaymentInfoContainer pCommerceIdentifierPaymentInfoContainer)
pCommerceIdentifierPaymentInfoContainer
- a CommerceIdentifierPaymentInfoContainer
valuepublic CommerceIdentifierPaymentInfoContainer getCommerceIdentifierPaymentInfoContainer()
CommerceIdentifierPaymentInfoContainer
valuepublic void setCommerceItemManager(CommerceItemManager pCommerceItemManager)
pCommerceItemManager
- a CommerceItemManager
valuepublic CommerceItemManager getCommerceItemManager()
CommerceItemManager
valuepublic void setCommerceItemShippingInfoContainer(CommerceItemShippingInfoContainer pCommerceItemShippingInfoContainer)
pCommerceItemShippingInfoContainer
- a CommerceItemShippingInfoContainer
valuepublic CommerceItemShippingInfoContainer getCommerceItemShippingInfoContainer()
CommerceItemShippingInfoContainer
valuepublic void setCommerceProfileTools(CommerceProfileTools pCommerceProfileTools)
public CommerceProfileTools getCommerceProfileTools()
public void setEnsureTransaction(boolean pEnsureTransaction)
pEnsureTransaction
- a boolean
valuepublic boolean isEnsureTransaction()
boolean
valuepublic void setGiftlistManager(GiftlistManager pGiftlistManager)
public GiftlistManager getGiftlistManager()
public void setHandlingInstructionManager(HandlingInstructionManager pHandlingInstructionManager)
pHandlingInstructionManager
- a HandlingInstructionManager
valuepublic HandlingInstructionManager getHandlingInstructionManager()
HandlingInstructionManager
valuepublic void setLocalLockManager(ClientLockManager pLocalLockManager)
useLocksAroundTransactions
is true in PurchaseProcessFormHandler
subclasses.
PurchaseProcessFormHandler.setUseLocksAroundTransactions(boolean)
public ClientLockManager getLocalLockManager()
useLocksAroundTransactions
is true in PurchaseProcessFormHandler
subclasses.
PurchaseProcessFormHandler.setUseLocksAroundTransactions(boolean)
public void setOrderManager(SimpleOrderManager pOrderManager)
public SimpleOrderManager getOrderManager()
public void setPaymentGroupManager(PaymentGroupManager pPaymentGroupManager)
pPaymentGroupManager
- a PaymentGroupManager
valuepublic PaymentGroupManager getPaymentGroupManager()
PaymentGroupManager
valuepublic void setPaymentGroupMapContainer(PaymentGroupMapContainer pPaymentGroupMapContainer)
pPaymentGroupMapContainer
- a PaymentGroupMapContainer
valuepublic PaymentGroupMapContainer getPaymentGroupMapContainer()
PaymentGroupMapContainer
valuepublic void setPipelineManager(PipelineManager pPipelineManager)
public PipelineManager getPipelineManager()
public void setProfile(RepositoryItem pProfile)
public RepositoryItem getProfile()
public void setProfileRepository(Repository pProfileRepository)
pProfileRepository
- a Repository
valuepublic Repository getProfileRepository()
Repository
valuepublic void setRepeatingRequestMonitor(RepeatingRequestMonitor pRepeatingRequestMonitor)
pRepeatingRequestMonitor
- a RepeatingRequestMonitor
valuepublic RepeatingRequestMonitor getRepeatingRequestMonitor()
RepeatingRequestMonitor
valuepublic void setRepriceOrderChainId(java.lang.String pRepriceOrderChainId)
public java.lang.String getRepriceOrderChainId()
public void setSessionExpirationURL(java.lang.String pSessionExpirationURL)
pSessionExpirationURL
- a String
valuepublic java.lang.String getSessionExpirationURL()
String
valuepublic void setShippingGroupManager(ShippingGroupManager pShippingGroupManager)
pShippingGroupManager
- a ShippingGroupManager
valuepublic ShippingGroupManager getShippingGroupManager()
ShippingGroupManager
valuepublic void setShippingGroupMapContainer(ShippingGroupMapContainer pShippingGroupMapContainer)
pShippingGroupMapContainer
- a ShippingGroupMapContainer
valuepublic ShippingGroupMapContainer getShippingGroupMapContainer()
ShippingGroupMapContainer
valuepublic void setShoppingCart(OrderHolder pShoppingCart)
public OrderHolder getShoppingCart()
public void setTransactionLockFactory(TransactionLockFactory pTransactionLockFactory)
useLocksArountTransactions
is true
public TransactionLockFactory getTransactionLockFactory()
useLocksArountTransactions
is true
public void setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
public javax.transaction.TransactionManager getTransactionManager()
public void setUseLocksAroundTransactions(boolean pUseLocksAroundTransactions)
If this property is set to true, locking will be used to prevent one
user from trying to modify orders in multiple concurrent threads.
This has a small performance impact as we obtain and release the lock,
but minimizes the possibility of concurrent update exceptions if
two threads try to modify the same order for the same user.
The default value for useLocksAroundTransactions
is true.
public boolean isUseLocksAroundTransactions()
public boolean isUseLocksAroundTransactionExplicitlySet()
useLocksAroundTransaction
has been
explicitly set either through code or through a properties file.
public void setUserPricingModels(PricingModelHolder pUserPricingModels)
public PricingModelHolder getUserPricingModels()
public void setPurchaseProcessHelper(PurchaseProcessHelper pPurchaseProcessHelper)
public PurchaseProcessHelper getPurchaseProcessHelper()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |