Interface InventoryClient
-
- All Known Subinterfaces:
InventoryMgmtRemote
- All Known Implementing Classes:
InventoryJaxRSClientImpl
,InventoryMgmtRMIEJB
public interface InventoryClient
Defines a remote interface used by clients of the WAR-deployed EJB.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Product
createProduct(Product product, String string)
boolean
deleteCategory(int id)
boolean
deleteProduct(int id)
Categories
findCategoryByName(String name, int offset, int limit)
Products
findProductsByName(String name, int offset, int limit)
Category
getCategory(int id)
Product
getProduct(int id)
Product
updateProduct(Product product)
-
-
-
Method Detail
-
findCategoryByName
Categories findCategoryByName(String name, int offset, int limit) throws javax.ws.rs.client.ResponseProcessingException
- Throws:
javax.ws.rs.client.ResponseProcessingException
-
getCategory
Category getCategory(int id) throws javax.ws.rs.client.ResponseProcessingException
- Throws:
javax.ws.rs.client.ResponseProcessingException
-
deleteCategory
boolean deleteCategory(int id) throws javax.ws.rs.client.ResponseProcessingException
- Throws:
javax.ws.rs.client.ResponseProcessingException
-
createProduct
Product createProduct(Product product, String string) throws javax.ws.rs.client.ResponseProcessingException
- Throws:
javax.ws.rs.client.ResponseProcessingException
-
findProductsByName
Products findProductsByName(String name, int offset, int limit) throws javax.ws.rs.client.ResponseProcessingException
- Throws:
javax.ws.rs.client.ResponseProcessingException
-
getProduct
Product getProduct(int id) throws javax.ws.rs.client.ResponseProcessingException
- Throws:
javax.ws.rs.client.ResponseProcessingException
-
updateProduct
Product updateProduct(Product product) throws javax.ws.rs.client.ResponseProcessingException
- Throws:
javax.ws.rs.client.ResponseProcessingException
-
deleteProduct
boolean deleteProduct(int id) throws javax.ws.rs.client.ResponseProcessingException
- Throws:
javax.ws.rs.client.ResponseProcessingException
-
-