|
||||||||||
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.PurchaseProcessHelper atg.projects.store.order.purchase.StorePurchaseProcessHelper atg.projects.store.order.purchase.StoreCartProcessHelper
public class StoreCartProcessHelper
Extends the StorePurchaseProcessHelper to implement cart processing helper methods.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected atg.userprofiling.ProfileTools |
mProfileTools
Profile tools. |
static java.lang.String |
MSG_ERROR_ADDING_TO_GIFTLIST
Error adding to giftlist message resource key. |
static java.lang.String |
MSG_ERROR_MODIFYING_ORDER
Error modifying order message resource key. |
static java.lang.String |
MSG_INVALID_ITEMS
Invalid items message resource key. |
static java.lang.String |
MSG_INVALID_RECIPIENT_EMAIL
Invalid recipient e-mail address resource key. |
static java.lang.String |
MSG_INVALID_SENDER_EMAIL
Invalid sender e-mail address. |
static java.lang.String |
MSG_NO_ITEMS_SELECT
No items selected message resource key. |
Fields inherited from class atg.projects.store.order.purchase.StorePurchaseProcessHelper |
---|
MSG_MISSING_REQUIRED_ADDRESS_PROPERTY, MSG_MULTIPLE_COUPONS_PER_ORDER, MSG_UNCLAIMABLE_COUPON, PRICING_ERROR, PRICING_ERROR_ADDRESS |
Fields inherited from class atg.commerce.order.purchase.PurchaseProcessHelper |
---|
ERROR_FETCHING_PROFILE, MSG_ERROR_ADDING_CREDIT_CARD, MSG_ERROR_ADDING_SHIPPINGGROUP, MSG_ERROR_ADDING_TO_ORDER, MSG_ERROR_CREATING_ORDER, MSG_ERROR_MOVING_ITEM_BETWEEN_SHIPPING_GROUPS, MSG_ERROR_PROCESS_ADD_ITEM_CHAIN, MSG_ERROR_REMOVING_ITEM, MSG_ERROR_REMOVING_ITEM_FROM_SHIPPING_GROUP, MSG_ERROR_REPRICING_ORDER_AFTER_ADD_ITEM, MSG_ERROR_SETTING_ORDER_AMOUNT, MSG_INVALID_PROFILE_ID |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
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 | |
---|---|
StoreCartProcessHelper()
|
Method Summary | |
---|---|
java.lang.String |
addItemsToGiftlist(java.lang.String pGiftlistId,
atg.commerce.order.purchase.AddCommerceItemInfo[] pItems,
atg.commerce.gifts.GiftlistManager pGiftlistManager)
Adds the given item(s) to the selected giftlist. |
void |
addRemoveGiftServices(StoreOrderImpl pStoreOrder,
boolean pAddGiftWrap,
boolean pAddGiftMessage,
java.lang.String pGiftWrapSkuId,
java.lang.String pGiftWrapProductId)
This method can be used by form handlers to add / remove gift message or gift wrap from the order. |
boolean |
areItemsInCatalog(atg.commerce.order.Order pOrder)
Check if all items on the order are in the catalog. |
atg.userprofiling.PropertyManager |
getProfilePropertyManager()
|
atg.userprofiling.ProfileTools |
getProfileTools()
|
int |
getSecurityStatus(atg.repository.RepositoryItem pProfile)
Get the current security status from the provided profile. |
boolean |
isAllGiftWrap(StoreOrderImpl pOrder)
Check to see if the order contains only gift wrap items |
boolean |
isAuthorizedUser(atg.repository.RepositoryItem pProfile)
Check the security status of the profile to see if the user is Authorized. |
boolean |
isGiftWrapAddedOrRemoved(StoreOrderImpl pOrder,
boolean pGiftWrapSelected)
Check to see if gift wrap has been added or removed from the order. |
boolean |
isLoginUser(atg.repository.RepositoryItem pProfile)
Check the security status of the profile to see if the user is Logged in. |
void |
rollbackTransaction(javax.transaction.TransactionManager pTransactionManager)
Rollback the provided transaction. |
void |
setProfilePropertyManager(atg.userprofiling.PropertyManager pProfilePropertyManager)
|
void |
setProfileTools(atg.userprofiling.ProfileTools pProfileTools)
|
Methods inherited from class atg.commerce.order.purchase.PurchaseProcessHelper |
---|
addCreditCardToOrder, addItemsToOrder, addItemsToOrder, addShippingAddressToOrder, adjustItemRelationshipsForQuantityChange, adjustNonGiftHandlingInstructionsForQuantityDecrease, adjustNonGiftHandlingInstructionsForQuantityIncrease, applyValueDictionary, copyCreditCardInfo, createCommerceItem, createConfigurableSubitems, createOrder, decreaseRelationshipQuantity, deleteItems, deleteItems, getAddItemToOrderChainId, getAddItemToOrderPricingOp, getCommerceItemManager, getDefaultHardgoodShippingGroupType, getDeleteItemsFromOrderPricingOp, getGiftlistManager, getOrderManager, getPipelineManager, getRepriceOrderChainId, getShippingGroupForItem, getShippingGroupManager, getTransactionManager, increaseRelationshipQuantity, isAddItemToDefaultShippingGroup, isTransactionMarkedAsRollBack, moveItemBetweenShippingGroups, processPipelineErrors, removeEntireRelationshipQuantity, removeItemQuantityFromShippingGroup, runProcess, runProcess, runProcess, runProcessAddItemToOrder, runProcessRepriceOrder, runProcessSendScenarioEvent, runProcessSendScenarioEvent, runRepricingProcess, setAddItemToDefaultShippingGroup, setAddItemToOrderChainId, setAddItemToOrderPricingOp, setCommerceItemManager, setCommerceItemProperties, setDefaultHardgoodShippingGroupType, setDeleteItemsFromOrderPricingOp, setGiftlistManager, setOrderAmountToPaymentGroup, setOrderManager, setPipelineManager, setRepriceOrderChainId, setShippingGroupManager, setTransactionManager |
Methods inherited from class atg.nucleus.GenericService |
---|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, 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, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService |
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
public static final java.lang.String MSG_ERROR_MODIFYING_ORDER
public static final java.lang.String MSG_ERROR_ADDING_TO_GIFTLIST
public static final java.lang.String MSG_NO_ITEMS_SELECT
public static final java.lang.String MSG_INVALID_ITEMS
public static final java.lang.String MSG_INVALID_RECIPIENT_EMAIL
public static final java.lang.String MSG_INVALID_SENDER_EMAIL
protected atg.userprofiling.ProfileTools mProfileTools
Constructor Detail |
---|
public StoreCartProcessHelper()
Method Detail |
---|
public atg.userprofiling.ProfileTools getProfileTools()
public void setProfileTools(atg.userprofiling.ProfileTools pProfileTools)
pProfileTools
- - the profile tools to set.public void setProfilePropertyManager(atg.userprofiling.PropertyManager pProfilePropertyManager)
pProfilePropertyManager
- - the property manager for profiles, used to see if the user is logged inpublic atg.userprofiling.PropertyManager getProfilePropertyManager()
public java.lang.String addItemsToGiftlist(java.lang.String pGiftlistId, atg.commerce.order.purchase.AddCommerceItemInfo[] pItems, atg.commerce.gifts.GiftlistManager pGiftlistManager) throws javax.servlet.ServletException, java.io.IOException, atg.commerce.CommerceException
This method uses the AddCommerceItemInfo items to determine which skus and quantities to add to the gift list.
pGiftlistId
- - A String
value.pItems
- - The items to add to the giftlist, a AddCommerceItemInfo[]
value.pGiftlistManager
- - The giftlist manager, a GiftlistManager
value.
javax.servlet.ServletException
java.io.IOException
atg.commerce.CommerceException
public boolean areItemsInCatalog(atg.commerce.order.Order pOrder)
pOrder
- - An Order
value.pOrderManager
-
public int getSecurityStatus(atg.repository.RepositoryItem pProfile)
pProfile
- - A RepositoryItem
value.
int
value.public boolean isGiftWrapAddedOrRemoved(StoreOrderImpl pOrder, boolean pGiftWrapSelected)
pOrder
- - An StoreOrderImpl
value.pGiftWrapSelected
- - value for whether or not gift wrap is selected, a boolean
value.
boolean
value.public boolean isAllGiftWrap(StoreOrderImpl pOrder)
pOrder
- - An Order
value.
boolean
value.public boolean isAuthorizedUser(atg.repository.RepositoryItem pProfile)
pProfile
- - A RepositoryItem
value.
boolean
value.public boolean isLoginUser(atg.repository.RepositoryItem pProfile)
pProfile
- - A RepositoryItem
value.
boolean
value.public void rollbackTransaction(javax.transaction.TransactionManager pTransactionManager)
pTransactionManager
- - Transaction Manager containing the transaction to rollback, A TransactionManager
value.public void addRemoveGiftServices(StoreOrderImpl pStoreOrder, boolean pAddGiftWrap, boolean pAddGiftMessage, java.lang.String pGiftWrapSkuId, java.lang.String pGiftWrapProductId)
pOrder
- -
The orderpAddGiftWrap
- -
boolean value indicating whether or not to add gift wrappAddGiftMessage
- -
boolean value indicating whether or not to add gift messagepGiftWrapSkuId
- -
String value indicating Sku Id of the gift wrappedpGiftWrapProductId
- -
String value indicating Product Id of the gift wrapped
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |