Interface InventoryClient
-
- All Known Subinterfaces:
InventoryMgmtRemote
- All Known Implementing Classes:
InventoryJaxRSClientImpl,InventoryMgmtRMIEJB
public interface InventoryClientDefines a remote interface used by clients of the WAR-deployed EJB.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProductcreateProduct(Product product, String string)booleandeleteCategory(int id)booleandeleteProduct(int id)CategoriesfindCategoryByName(String name, int offset, int limit)ProductsfindProductsByName(String name, int offset, int limit)CategorygetCategory(int id)ProductgetProduct(int id)ProductupdateProduct(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
-
-