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:
ru.bitel.bgbilling.common.BGException
-
getWarehouse
- Throws:
ru.bitel.bgbilling.common.BGException
-
updateWarehouse
- Throws:
ru.bitel.bgbilling.common.BGException
-
deleteWarehouse
void deleteWarehouse(int warehouseId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getStockItemById
- Throws:
ru.bitel.bgbilling.common.BGException
-
updateStockItem
- Throws:
ru.bitel.bgbilling.common.BGException
-
getWarehouseItemsByType
SearchResult<StockItem> getWarehouseItemsByType(int warehouseId, int stockItemTypeId, Page page) throws ru.bitel.bgbilling.common.BGException Вернёт список товаров для указанного склада.- Parameters:
warehouseId- ID складаstockItemTypeId- ID типа товаров указанного склада или invalid input: '<'=0, чтобы получить все товары склада всех типовpage- null, если нужен весь список товаров склада- Throws:
ru.bitel.bgbilling.common.BGException
-
deleteStockItem
void deleteStockItem(int stockItemId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getStockItemType
- Throws:
ru.bitel.bgbilling.common.BGException
-
getStockItemTypeTreeRoot
- Throws:
ru.bitel.bgbilling.common.BGException
-
stockItemTypeList
- Throws:
ru.bitel.bgbilling.common.BGException
-
updateStockItemType
StockItemType updateStockItemType(StockItemType stockItemType) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
deleteStockItemType
void deleteStockItemType(int stockItemTypeId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getStockItemTypesByWarehouse
List<StockItemType> getStockItemTypesByWarehouse(int warehouseId) throws ru.bitel.bgbilling.common.BGException - Returns:
- вернет список типов товара, которые есть на складе
- Throws:
ru.bitel.bgbilling.common.BGException
-
getAttributeKitList
- Throws:
ru.bitel.bgbilling.common.BGException
-
getAttributeKit
StockItemAttributeKit getAttributeKit(int attributeKitId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
updateAttributeKit
StockItemAttributeKit updateAttributeKit(StockItemAttributeKit attributeKit) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
deleteAttributeKit
void deleteAttributeKit(int attributeKitId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
updateAttribute
StockItemAttribute updateAttribute(StockItemAttribute attribute) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getAttributeList
- Throws:
ru.bitel.bgbilling.common.BGException
-
deleteAttribute
void deleteAttribute(int attributeId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getAttributeValuesByStockItem
List<StockItemAttributeValue> getAttributeValuesByStockItem(int stockItemId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getCurrentUserId
int getCurrentUserId() throws ru.bitel.bgbilling.common.BGException- Throws:
ru.bitel.bgbilling.common.BGException
-
searchStockItems
List<StockItem> searchStockItems(int warehouseId, int attributeId, String data) throws ru.bitel.bgbilling.common.BGException Поиск товаров на складе- Parameters:
warehouseId- id склада по которому будет поискattributeId- id аттрибута в значении которого будем искатьdata- введённые пользователем данные для поиска- Throws:
ru.bitel.bgbilling.common.BGException
-