com.elasticpath.cmweb.ajaxservice.impl
Class InventoryAjaxServiceImpl

java.lang.Object
  extended by com.elasticpath.service.impl.AbstractEpServiceImpl
      extended by com.elasticpath.cmweb.ajaxservice.impl.InventoryAjaxServiceImpl
All Implemented Interfaces:
InventoryAjaxService, EpService

public class InventoryAjaxServiceImpl
extends AbstractEpServiceImpl
implements InventoryAjaxService

This service provides access to functionality and data (beans) for manipulating order on the Javascript client.


Constructor Summary
InventoryAjaxServiceImpl()
           
 
Method Summary
 java.lang.String adjustInventoryBySkuCode(java.lang.String skuCode, InventoryAudit inventoryAudit, javax.servlet.http.HttpServletRequest request)
           
 void setInventoryAuditService(InventoryAuditService inventoryAuditService)
           
 void setInventoryService(InventoryService inventoryService)
           
 void setProductService(ProductService productService)
           
 void setProductSkuService(ProductSkuService productSkuService)
           
 void setRequestHelper(RequestHelper requestHelper)
           
 
Methods inherited from class com.elasticpath.service.impl.AbstractEpServiceImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Constructor Detail

InventoryAjaxServiceImpl

public InventoryAjaxServiceImpl()
Method Detail

adjustInventoryBySkuCode

public java.lang.String adjustInventoryBySkuCode(java.lang.String skuCode,
                                                 InventoryAudit inventoryAudit,
                                                 javax.servlet.http.HttpServletRequest request)
Specified by:
adjustInventoryBySkuCode in interface InventoryAjaxService
Parameters:
skuCode - the code of the ProductSku to adjust inventory on
inventoryAudit - the audit for this inventory adjustment
request - the current request
Returns:
an error message on failure or an empty string on success

setInventoryAuditService

public void setInventoryAuditService(InventoryAuditService inventoryAuditService)
Specified by:
setInventoryAuditService in interface InventoryAjaxService
Parameters:
inventoryAuditService - the inventoryAuditService to set

setInventoryService

public void setInventoryService(InventoryService inventoryService)
Specified by:
setInventoryService in interface InventoryAjaxService
Parameters:
inventoryService - the inventoryService to set

setProductService

public void setProductService(ProductService productService)
Parameters:
productService - the productService to set

setProductSkuService

public void setProductSkuService(ProductSkuService productSkuService)
Specified by:
setProductSkuService in interface InventoryAjaxService
Parameters:
productSkuService - the productSkuService to set

setRequestHelper

public void setRequestHelper(RequestHelper requestHelper)
Specified by:
setRequestHelper in interface InventoryAjaxService
Parameters:
requestHelper - the requestHelper to set