I am planning to add few tables like blc_ext_fulfilment_locations (location_id,location_name) and blc_ext_fulfilment_location_inventory (location_id,sku_id,quantity).
The question is which is the right object to extend - InventoryServiceImpl or InventoryServiceExtensionHandler or CheckAvailabilityActivity as mentioned in http://www.broadleafcommerce.com/docs/c ... /inventory
I am assuming I should extend InventoryServiceImpl, but I am not able to get how the DAOs are actually getting called from the proxy in this call extensionManager.getProxy().retrieveQuantitiesAvailable.
Which piece of code do I modify so that I can retrieve Inventory from my table blc_ext_fulfilment_location_inventory instead of blc_sku.
I guess , below is the relevant code:
Code: Select all
@Service("blInventoryService")
public class InventoryServiceImpl implements ContextualInventoryService {
...
@Resource(name = "blInventoryServiceExtensionManager")
protected InventoryServiceExtensionManager extensionManager;
...
@Override
public Map<Sku, Integer> retrieveQuantitiesAvailable(Collection<Sku> skus, Map<String, Object> context) {
ExtensionResultHolder<Map<Sku, Integer>> holder = new ExtensionResultHolder<Map<Sku, Integer>>();
ExtensionResultStatusType res = extensionManager.getProxy().retrieveQuantitiesAvailable(skus, context, holder);
...
}
...
}