1 package ejava.examples.ejbwar.inventory.client;
2
3 import javax.ws.rs.client.ResponseProcessingException;
4
5 import ejava.examples.ejbwar.inventory.bo.Categories;
6 import ejava.examples.ejbwar.inventory.bo.Category;
7 import ejava.examples.ejbwar.inventory.bo.Product;
8 import ejava.examples.ejbwar.inventory.bo.Products;
9
10
11
12
13 public interface InventoryClient {
14 Categories findCategoryByName(String name, int offset, int limit) throws ResponseProcessingException;
15 Category getCategory(int id) throws ResponseProcessingException;
16 boolean deleteCategory(int id) throws ResponseProcessingException;
17
18 Product createProduct(Product product, String string) throws ResponseProcessingException;
19 Products findProductsByName(String name, int offset, int limit) throws ResponseProcessingException;
20 Product getProduct(int id) throws ResponseProcessingException;
21 Product updateProduct(Product product) throws ResponseProcessingException;
22 boolean deleteProduct(int id) throws ResponseProcessingException;
23 }