public class ProcUpdateGiftRepository extends ApplicationLoggingImpl implements PipelineProcessor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
STOP_CHAIN_EXECUTION, STOP_CHAIN_EXECUTION_AND_COMMIT, STOP_CHAIN_EXECUTION_AND_ROLLBACK
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
ProcUpdateGiftRepository() |
Modifier and Type | Method and Description |
---|---|
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.
Replaced by alternative updateGiftlistItem methods.
|
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,
double pQuantityWithFraction,
java.util.ResourceBundle pBundle,
PipelineResult pResult)
This method increments the quantityPurchased property for the
given item in the given Giftlist by some quantity.
|
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.
|
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
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
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 invokationjava.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 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, double pQuantityWithFraction, 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 purchasedpQuantityWithFraction
- The quantity purchasedpBundle
- resource bundle specific to users localepResult
- a PipelineResult object which stores any information which must
be returned from this method invokationprotected 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 objectCommerceException
protected void removeHandlingInstruction(Order pOrder, java.lang.String pShippingGroupId, java.lang.String pHandlingInstructionId) throws CommerceException
CommerceException