Interface WarehouseService
public interface WarehouseService
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteAttribute(int attributeId) voiddeleteAttributeKit(int attributeKitId) voiddeleteStockItem(int stockItemId) voiddeleteStockItemType(int stockItemTypeId) voiddeleteWarehouse(int warehouseId) getAttributeKit(int attributeKitId) getAttributeValuesByStockItem(int stockItemId) intgetStockItemById(int stockItemId) getStockItemType(int stockItemTypeId) getStockItemTypesByWarehouse(int warehouseId) getWarehouse(int id) getWarehouseItemsByType(int warehouseId, int stockItemTypeId, Page page) Вернёт список товаров для указанного склада.searchStockItems(int warehouseId, int attributeId, String data) Поиск товаров на складеupdateAttribute(StockItemAttribute attribute) updateAttributeKit(StockItemAttributeKit attributeKit) updateStockItem(StockItem stockItem) updateStockItemType(StockItemType stockItemType) updateWarehouse(Warehouse warehouse)
-
Method Details
-
getWarehouseList
- Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
getWarehouse
- Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
updateWarehouse
Warehouse updateWarehouse(Warehouse warehouse) throws Exception, ru.bitel.bgbilling.common.BGMessageException - Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
deleteWarehouse
void deleteWarehouse(int warehouseId) throws Exception, ru.bitel.bgbilling.common.BGMessageException - Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
getStockItemById
StockItem getStockItemById(int stockItemId) throws Exception, ru.bitel.bgbilling.common.BGMessageException - Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
updateStockItem
StockItem updateStockItem(StockItem stockItem) throws Exception, ru.bitel.bgbilling.common.BGMessageException - Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
getWarehouseItemsByType
SearchResult<StockItem> getWarehouseItemsByType(int warehouseId, int stockItemTypeId, Page page) throws Exception, ru.bitel.bgbilling.common.BGMessageException Вернёт список товаров для указанного склада.- Parameters:
warehouseId- ID складаstockItemTypeId- ID типа товаров указанного склада или invalid input: '<'=0, чтобы получить все товары склада всех типовpage- null, если нужен весь список товаров склада- Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
deleteStockItem
void deleteStockItem(int stockItemId) throws Exception, ru.bitel.bgbilling.common.BGMessageException - Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
getStockItemType
StockItemType getStockItemType(int stockItemTypeId) throws Exception, ru.bitel.bgbilling.common.BGMessageException - Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
getStockItemTypeTreeRoot
StockItemType getStockItemTypeTreeRoot() throws Exception, ru.bitel.bgbilling.common.BGMessageException- Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
stockItemTypeList
List<StockItemType> stockItemTypeList() throws Exception, ru.bitel.bgbilling.common.BGMessageException- Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
updateStockItemType
StockItemType updateStockItemType(StockItemType stockItemType) throws Exception, ru.bitel.bgbilling.common.BGMessageException - Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
deleteStockItemType
void deleteStockItemType(int stockItemTypeId) throws Exception, ru.bitel.bgbilling.common.BGMessageException - Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
getStockItemTypesByWarehouse
List<StockItemType> getStockItemTypesByWarehouse(int warehouseId) throws Exception, ru.bitel.bgbilling.common.BGMessageException - Returns:
- вернет список типов товара, которые есть на складе
- Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
getAttributeKitList
List<StockItemAttributeKit> getAttributeKitList() throws Exception, ru.bitel.bgbilling.common.BGMessageException- Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
getAttributeKit
StockItemAttributeKit getAttributeKit(int attributeKitId) throws Exception, ru.bitel.bgbilling.common.BGMessageException - Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
updateAttributeKit
StockItemAttributeKit updateAttributeKit(StockItemAttributeKit attributeKit) throws Exception, ru.bitel.bgbilling.common.BGMessageException - Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
deleteAttributeKit
void deleteAttributeKit(int attributeKitId) throws Exception, ru.bitel.bgbilling.common.BGMessageException - Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
updateAttribute
StockItemAttribute updateAttribute(StockItemAttribute attribute) throws Exception, ru.bitel.bgbilling.common.BGMessageException - Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
getAttributeList
List<StockItemAttribute> getAttributeList() throws Exception, ru.bitel.bgbilling.common.BGMessageException- Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
deleteAttribute
void deleteAttribute(int attributeId) throws Exception, ru.bitel.bgbilling.common.BGMessageException - Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
getAttributeValuesByStockItem
List<StockItemAttributeValue> getAttributeValuesByStockItem(int stockItemId) throws Exception, ru.bitel.bgbilling.common.BGMessageException - Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
getCurrentUserId
- Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-
searchStockItems
List<StockItem> searchStockItems(int warehouseId, int attributeId, String data) throws Exception, ru.bitel.bgbilling.common.BGMessageException Поиск товаров на складе- Parameters:
warehouseId- id склада по которому будет поискattributeId- id аттрибута в значении которого будем искатьdata- введённые пользователем данные для поиска- Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-