Displaying an Item’s Availability to a Customer
The inventory manager is also used when building site pages. Display an item’s availability status to a customer browsing the site with the following code:
int availability = inventory.queryAvailabilityStatus(itemId);