|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Facade that models the service of inventory management
| Method Summary | |
Model |
createModel(Model model,
Long sizeGroupId,
Collection colorIds)
Create a model and a product for each size and color. |
void |
deleteModel(Long id)
|
Model |
editPrices(Long modelId)
Get a model for editing its prices |
Model |
findModel(Long id)
Find a model without its products nor sizes of its sizeGroup |
PaginatedList |
findModel(Model model,
int firstElement,
int maxElements)
Find a model without products |
Model |
findModelWithDetails(Long id)
Find a model with all its products and sizes of its sizeGroup |
Map |
findProducts(Collection productIds)
Find products by ids |
Product |
findProductWithDetails(Long id)
Find a product with all its stocks and prices |
List |
getAllColors()
Get all colors |
List |
getAllFares()
Get all fares |
List |
getAllSizeGroups()
Get all size groups with its sizes |
List |
getAllWarehouses()
Get all Warehouses |
Model |
updateModel(Model model)
|
Model |
updatePrices(Map productPrices)
Update the prices for some products. |
| Method Detail |
public Model createModel(Model model,
Long sizeGroupId,
Collection colorIds)
model - sizeGroupId - colorIds -
org.springframework.dao.DataAccessExceptionpublic Model updateModel(Model model)
model -
org.springframework.dao.DataAccessExceptionpublic void deleteModel(Long id)
id -
org.springframework.dao.DataRetrievalFailureException
org.springframework.dao.DataAccessExceptionpublic Model findModel(Long id)
id -
org.springframework.dao.DataRetrievalFailureException
org.springframework.dao.DataAccessExceptionpublic Model findModelWithDetails(Long id)
id -
org.springframework.dao.DataRetrievalFailureException
org.springframework.dao.DataAccessExceptionpublic Product findProductWithDetails(Long id)
id -
org.springframework.dao.DataRetrievalFailureException
org.springframework.dao.DataAccessException
public PaginatedList findModel(Model model,
int firstElement,
int maxElements)
model - firstElement - maxElements -
org.springframework.dao.DataAccessExceptionpublic List getAllSizeGroups()
public List getAllColors()
public List getAllWarehouses()
public List getAllFares()
public Model editPrices(Long modelId)
modelId - id of the model
org.springframework.dao.DataAccessExceptionpublic Model updatePrices(Map productPrices)
productPrices - Map with product ids as keys and a map (fare id, price amount
as BigDecimal) as value.
org.springframework.dao.DataAccessExceptionpublic Map findProducts(Collection productIds)
productIds -
org.springframework.dao.DataAccessException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||