public abstract class AbstractInventoryServiceExtensionHandler extends AbstractExtensionHandler implements InventoryServiceExtensionHandler
enabled, priority| Constructor and Description |
|---|
AbstractInventoryServiceExtensionHandler() |
| Modifier and Type | Method and Description |
|---|---|
ExtensionResultStatusType |
decrementInventory(Map<Sku,Integer> skuQuantities,
Map<String,Object> context)
Usually invoked within the
DecrementInventoryActivity to decrement inventory for the Skus that are in
skuQuantities |
ExtensionResultStatusType |
incrementInventory(Map<Sku,Integer> skuQuantities,
Map<String,Object> context) |
ExtensionResultStatusType |
retrieveQuantitiesAvailable(Collection<Sku> skus,
Map<String,Object> context,
ExtensionResultHolder<Map<Sku,Integer>> result)
Usually invoked within the
CheckAvailabilityActivity to retrieve the quantity that is available for the given
skus. |
getPriority, isEnabled, setEnabled, setPriorityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPriority, isEnabledpublic AbstractInventoryServiceExtensionHandler()
public ExtensionResultStatusType retrieveQuantitiesAvailable(Collection<Sku> skus, Map<String,Object> context, ExtensionResultHolder<Map<Sku,Integer>> result)
InventoryServiceExtensionHandlerCheckAvailabilityActivity to retrieve the quantity that is available for the given
skus.retrieveQuantitiesAvailable in interface InventoryServiceExtensionHandlercontext - can be null. If not null, this should at least contain the ContextualInventoryService.ORDER_KEYContextualInventoryService#retrieveQuantitiesAvailable(Set, Map)}public ExtensionResultStatusType decrementInventory(Map<Sku,Integer> skuQuantities, Map<String,Object> context) throws InventoryUnavailableException
InventoryServiceExtensionHandlerDecrementInventoryActivity to decrement inventory for the Skus that are in
skuQuantitiesdecrementInventory in interface InventoryServiceExtensionHandlercontext - can be null. If not null, this should at least contain the ContextualInventoryService.ORDER_KEY and/or the
ContextualInventoryService.ROLLBACK_STATE_KEYInventoryUnavailableExceptionContextualInventoryService#decrementInventory(Map, Map)}public ExtensionResultStatusType incrementInventory(Map<Sku,Integer> skuQuantities, Map<String,Object> context)
incrementInventory in interface InventoryServiceExtensionHandlercontext - can be null. If not null, this should at least contain the ContextualInventoryService.ROLLBACK_STATE_KEYContextualInventoryService#incrementInventory(Map, Map)}Copyright © 2015. All Rights Reserved.