|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The catalog business service interface.
This class contains catalog management related businss logic.
Method Summary | |
void |
deleteProduct(Product product)
Delete product. |
java.util.List |
getAllCategories()
Get all categories. |
java.util.List |
getAllProducts()
Get all products. |
Category |
getCategory(java.lang.String categoryId)
Get category by id. |
Product |
getProduct(java.lang.String productId)
Get product by product id. |
Product |
saveProduct(Product product)
Save the product. |
void |
updateProduct(Product product)
Update product. |
Method Detail |
public Product saveProduct(Product product) throws CatalogException
product
- the product to be saved
CatalogException
public void updateProduct(Product product) throws CatalogException
product
- the product to be updated
CatalogException
public void deleteProduct(Product product) throws CatalogException
product
- the product to be deleted
CatalogException
public Product getProduct(java.lang.String productId) throws CatalogException
productId
- the product id
CatalogException
public Category getCategory(java.lang.String categoryId) throws CatalogException
categoryId
- the category id
CatalogException
public java.util.List getAllProducts() throws CatalogException
CatalogException
public java.util.List getAllCategories() throws CatalogException
CatalogException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |