Class CatalogService

java.lang.Object
org.mybatis.jpetstore.service.CatalogService

@Service public class CatalogService extends Object
The Class CatalogService.
Author:
Eduardo Macarron
  • Constructor Details

  • Method Details

    • getCategoryList

      public List<Category> getCategoryList()
    • getCategory

      public Category getCategory(String categoryId)
    • getProduct

      public Product getProduct(String productId)
    • getProductListByCategory

      public List<Product> getProductListByCategory(String categoryId)
    • searchProductList

      public List<Product> searchProductList(String keywords)
      Search product list.
      Parameters:
      keywords - the keywords
      Returns:
      the list
    • getItemListByProduct

      public List<Item> getItemListByProduct(String productId)
    • getItem

      public Item getItem(String itemId)
    • isItemInStock

      public boolean isItemInStock(String itemId)