com.elasticpath.service.catalog
Interface InventoryService

All Superinterfaces:
EpPersistenceService, EpService
All Known Implementing Classes:
InventoryServiceImpl

public interface InventoryService
extends EpPersistenceService

Provides inventory-related services.


Method Summary
 Inventory get(long inventoryUid)
          Get the inventory with the given UID.
 void saveOrUpdate(Inventory inventory)
          Save or update the given inventory item.
 void update(Inventory inventory)
          Save or update the given inventory item.
 void updateBySkuCode(java.lang.String skuCode, Inventory inventory)
          Save or update the given inventory item with the given skuCode.
 
Methods inherited from interface com.elasticpath.service.EpPersistenceService
getObject, getPersistenceEngine, setPersistenceEngine
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Method Detail

get

Inventory get(long inventoryUid)
              throws EpServiceException
Get the inventory with the given UID. Return null if no matching record exists.

Parameters:
inventoryUid - the order UID
Returns:
the inventory if UID exists, otherwise null
Throws:
EpServiceException - - in case of any errors

saveOrUpdate

void saveOrUpdate(Inventory inventory)
                  throws EpServiceException
Save or update the given inventory item.

Parameters:
inventory - the inventory to save or update
Throws:
EpServiceException - - in case of any errors

update

void update(Inventory inventory)
            throws EpServiceException
Save or update the given inventory item.

Parameters:
inventory - the inventory to save or update
Throws:
EpServiceException - - in case of any errors

updateBySkuCode

void updateBySkuCode(java.lang.String skuCode,
                     Inventory inventory)
                     throws EpServiceException
Save or update the given inventory item with the given skuCode.

Parameters:
skuCode - the sku code of inventory to save or update
inventory - the inventory to save or update
Throws:
EpServiceException - - in case of any errors