|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.oness.common.all.BaseObject net.sf.oness.inventory.model.facade.InventorySpringFacadeDelegate
Field Summary |
Fields inherited from class net.sf.oness.common.all.BaseObject |
log |
Constructor Summary | |
InventorySpringFacadeDelegate()
|
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 |
net.sf.oness.common.model.dao.Dao |
getColorDao()
|
net.sf.oness.common.model.dao.Dao |
getFareDao()
|
net.sf.oness.common.model.dao.Dao |
getModelDao()
|
net.sf.oness.common.model.dao.Dao |
getPriceDao()
|
net.sf.oness.common.model.dao.Dao |
getProductDao()
|
net.sf.oness.common.model.dao.Dao |
getSizeGroupDao()
|
net.sf.oness.common.model.dao.Dao |
getStockDao()
|
net.sf.oness.common.model.dao.Dao |
getWarehouseDao()
|
void |
setColorDao(net.sf.oness.common.model.dao.Dao colorDao)
|
void |
setFareDao(net.sf.oness.common.model.dao.Dao fareDao)
|
void |
setModelDao(net.sf.oness.common.model.dao.Dao modelDao)
|
void |
setPriceDao(net.sf.oness.common.model.dao.Dao priceDao)
|
void |
setProductDao(net.sf.oness.common.model.dao.Dao productDao)
|
void |
setSizeGroupDao(net.sf.oness.common.model.dao.Dao sizeGroupDao)
|
void |
setStockDao(net.sf.oness.common.model.dao.Dao stockDao)
|
void |
setWarehouseDao(net.sf.oness.common.model.dao.Dao warehouseDao)
|
Model |
updateModel(Model model)
|
Model |
updatePrices(java.util.Map productPrices)
Update the prices for some products. |
Methods inherited from class net.sf.oness.common.all.BaseObject |
clone, equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public InventorySpringFacadeDelegate()
Method Detail |
public void setModelDao(net.sf.oness.common.model.dao.Dao modelDao)
modelDao
- The modelDao to set.public net.sf.oness.common.model.dao.Dao getModelDao()
public void setSizeGroupDao(net.sf.oness.common.model.dao.Dao sizeGroupDao)
sizeGroupDao
- The sizeGroupDao to set.public net.sf.oness.common.model.dao.Dao getSizeGroupDao()
public void setColorDao(net.sf.oness.common.model.dao.Dao colorDao)
colorDao
- The colorDao to set.public net.sf.oness.common.model.dao.Dao getColorDao()
public void setProductDao(net.sf.oness.common.model.dao.Dao productDao)
productDao
- The productDao to set.public net.sf.oness.common.model.dao.Dao getProductDao()
public void setStockDao(net.sf.oness.common.model.dao.Dao stockDao)
stockDao
- The stockDao to set.public net.sf.oness.common.model.dao.Dao getStockDao()
public void setPriceDao(net.sf.oness.common.model.dao.Dao priceDao)
priceDao
- The priceDao to set.public net.sf.oness.common.model.dao.Dao getPriceDao()
public void setWarehouseDao(net.sf.oness.common.model.dao.Dao warehouseDao)
warehouseDao
- The warehouseDao to set.public net.sf.oness.common.model.dao.Dao getWarehouseDao()
public void setFareDao(net.sf.oness.common.model.dao.Dao fareDao)
fareDao
- The fareDao to set.public net.sf.oness.common.model.dao.Dao getFareDao()
public Model createModel(Model model, java.lang.Long sizeGroupId, java.util.Collection colorIds)
InventoryFacadeDelegate
createModel
in interface InventoryFacadeDelegate
model
- sizeGroupId
- colorIds
-
public Model updateModel(Model model)
updateModel
in interface InventoryFacadeDelegate
model
-
InventoryFacadeDelegate.updateModel(net.sf.oness.inventory.model.product.bo.Model)
public void deleteModel(java.lang.Long id)
deleteModel
in interface InventoryFacadeDelegate
id
- InventoryFacadeDelegate.deleteModel(java.lang.Long)
public Model findModel(java.lang.Long id)
InventoryFacadeDelegate
findModel
in interface InventoryFacadeDelegate
id
-
InventoryFacadeDelegate.findModel(java.lang.Long)
public Model findModelWithDetails(java.lang.Long id)
InventoryFacadeDelegate
findModelWithDetails
in interface InventoryFacadeDelegate
id
-
InventoryFacadeDelegate.findModelWithDetails(java.lang.Long)
public Product findProductWithDetails(java.lang.Long id)
InventoryFacadeDelegate
findProductWithDetails
in interface InventoryFacadeDelegate
id
-
InventoryFacadeDelegate.findProductWithDetails(java.lang.Long)
public net.sf.oness.common.model.util.PaginatedList findModel(Model model, int firstElement, int maxElements)
InventoryFacadeDelegate
findModel
in interface InventoryFacadeDelegate
model
- firstElement
- maxElements
-
InventoryFacadeDelegate.findModel(net.sf.oness.inventory.model.product.bo.Model,
int, int)
public java.util.List getAllSizeGroups()
InventoryFacadeDelegate
getAllSizeGroups
in interface InventoryFacadeDelegate
InventoryFacadeDelegate.getAllSizeGroups()
public java.util.List getAllColors()
InventoryFacadeDelegate
getAllColors
in interface InventoryFacadeDelegate
InventoryFacadeDelegate.getAllColors()
public java.util.List getAllFares()
InventoryFacadeDelegate
getAllFares
in interface InventoryFacadeDelegate
InventoryFacadeDelegate.getAllFares()
public java.util.List getAllWarehouses()
InventoryFacadeDelegate
getAllWarehouses
in interface InventoryFacadeDelegate
InventoryFacadeDelegate.getAllWarehouses()
public Model editPrices(java.lang.Long modelId)
InventoryFacadeDelegate
editPrices
in interface InventoryFacadeDelegate
modelId
- id of the model
InventoryFacadeDelegate.editPrices(java.lang.Long)
public Model updatePrices(java.util.Map productPrices)
InventoryFacadeDelegate
updatePrices
in interface InventoryFacadeDelegate
productPrices
- Map with product ids as keys and a map (fare id, price amount
as BigDecimal) as value.
InventoryFacadeDelegate.updatePrices(java.util.Map)
public java.util.Map findProducts(java.util.Collection productIds)
InventoryFacadeDelegate
findProducts
in interface InventoryFacadeDelegate
productIds
-
InventoryFacadeDelegate.findProducts(java.util.Collection)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |