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