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);
 
loading table of contents...