|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.logging.ApplicationLoggingImpl
atg.commerce.order.processor.ProcUpdateGiftRepository
public class ProcUpdateGiftRepository
Check the shipping groups of an order for Handlers. Update the gift repository where appropriate.
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 | |
---|---|
ProcUpdateGiftRepository()
|
Method Summary | |
---|---|
java.lang.String |
getCatalogRefDisplayNameProperty()
The property of a catalog ref item that is the display name |
GiftlistManager |
getGiftlistManager()
All Giftlist manipulations are done with this. |
java.lang.String |
getLoggingIdentifier()
Returns property LoggingIdentifier |
OrderManager |
getOrderManager()
The class responsible for managing changes to orders |
int[] |
getRetCodes()
Returns the valid return codes 1 - The processor completed |
javax.transaction.TransactionManager |
getTransactionManager()
Component that controls management of the transactions |
protected void |
prepareToRemoveHandlingInstruction(Order pOrder,
java.lang.String pShippingGroupId,
java.lang.String pHandlingInstructionId,
PipelineResult pResult)
Register with the transaction. |
protected void |
removeHandlingInstruction(Order pOrder,
java.lang.String pShippingGroupId,
java.lang.String pHandlingInstructionId)
Remove the given handling instruction from the order. |
int |
runProcess(java.lang.Object pParam,
PipelineResult pResult)
This method runs the actual processor and does the work. |
void |
setCatalogRefDisplayNameProperty(java.lang.String pCatalogRefDisplayNameProperty)
|
void |
setGiftlistManager(GiftlistManager pGiftlistManager)
|
void |
setLoggingIdentifier(java.lang.String pLoggingIdentifier)
Sets property LoggingIdentifier |
void |
setOrderManager(OrderManager pOrderManager)
|
void |
setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
|
protected void |
updateGiftlistItem(Order pOrder,
java.lang.String pGiftlistId,
java.lang.String pGiftlistItemId,
CommerceItem pCommerceItem,
long pQuantity,
PipelineResult pResult)
Deprecated. |
protected int |
updateGiftlistItem(Order pOrder,
java.lang.String pHandlingInstructionId,
java.lang.String pShippingGroupId,
java.lang.String pGiftlistId,
java.lang.String pGiftlistItemId,
CommerceItem pCommerceItem,
long pQuantity,
java.util.ResourceBundle pBundle,
PipelineResult pResult)
This method increments the quantityPurchased property for the given item in the given Giftlist by some quantity. |
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
Constructor Detail |
---|
public ProcUpdateGiftRepository()
Method Detail |
---|
public int[] getRetCodes()
getRetCodes
in interface PipelineProcessor
public void setGiftlistManager(GiftlistManager pGiftlistManager)
public GiftlistManager getGiftlistManager()
public void setOrderManager(OrderManager pOrderManager)
public OrderManager getOrderManager()
public void setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
public javax.transaction.TransactionManager getTransactionManager()
public void setCatalogRefDisplayNameProperty(java.lang.String pCatalogRefDisplayNameProperty)
public java.lang.String getCatalogRefDisplayNameProperty()
public void setLoggingIdentifier(java.lang.String pLoggingIdentifier)
setLoggingIdentifier
in class ApplicationLoggingImpl
public java.lang.String getLoggingIdentifier()
getLoggingIdentifier
in class ApplicationLoggingImpl
public int runProcess(java.lang.Object pParam, PipelineResult pResult) throws java.lang.Exception
runProcess
in interface PipelineProcessor
pParam
- a HashMap which must contain an Order and optionally a Locale objectpResult
- a PipelineResult object which stores any information which must
be returned from this method invokation
java.lang.Exception
- throws any exception back to the callerPipelineProcessor.runProcess(Object, PipelineResult)
protected void updateGiftlistItem(Order pOrder, java.lang.String pGiftlistId, java.lang.String pGiftlistItemId, CommerceItem pCommerceItem, long pQuantity, PipelineResult pResult)
pOrder
- The order containing the gift.pGiftlistId
- The id of the giftlist to be updated.pGiftlistItemId
- The id of the giftlist item to be updated.pCommerceItem
- The commerce item in the giftlist to be updated.pQuantity
- The quantity purchasedpResult
- a PipelineResult object which stores any information which must
be returned from this method invokationprotected int updateGiftlistItem(Order pOrder, java.lang.String pHandlingInstructionId, java.lang.String pShippingGroupId, java.lang.String pGiftlistId, java.lang.String pGiftlistItemId, CommerceItem pCommerceItem, long pQuantity, java.util.ResourceBundle pBundle, PipelineResult pResult)
pOrder
- The order containing the gift.pGiftlistId
- The id of the giftlist to be updated.pGiftlistItemId
- The id of the giftlist item to be updated.pCommerceItem
- The commerce item in the giftlist to be updated.pQuantity
- The quantity purchasedpBundle
- resource bundle specific to users localepResult
- a PipelineResult object which stores any information which must
be returned from this method invokation
protected void prepareToRemoveHandlingInstruction(Order pOrder, java.lang.String pShippingGroupId, java.lang.String pHandlingInstructionId, PipelineResult pResult) throws CommerceException
pOrder
- The order containing the handling instructionpShippingGroupId
- The shipping group containing the handling instructionpHandlingInstructionId
- The handling instruction that should be removedpResult
- The pipeline result object
CommerceException
protected void removeHandlingInstruction(Order pOrder, java.lang.String pShippingGroupId, java.lang.String pHandlingInstructionId) throws CommerceException
CommerceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |