Revize 0598e57d
Přidáno uživatelem Jakub Šmíd před asi 2 roky(ů)
backend/src/main/java/cz/zcu/kiv/backendapi/catalog/ICatalogItemService.java | ||
---|---|---|
10 | 10 |
*/ |
11 | 11 |
public interface ICatalogItemService { |
12 | 12 |
/** |
13 |
* Saves list of catalog items |
|
13 |
* Saves list of catalog items DTO
|
|
14 | 14 |
* |
15 |
* @param catalogItems catalog items
|
|
15 |
* @param catalogItemDtoList list of catalog items DTO
|
|
16 | 16 |
*/ |
17 |
void saveCatalog(List<CatalogItem> catalogItems);
|
|
17 |
void saveCatalogItems(List<CatalogItemDto> catalogItemDtoList);
|
|
18 | 18 |
|
19 | 19 |
/** |
20 |
* Saves one catalog item |
|
20 |
* Saves one catalog item (creates new if ID is null or does not exist, updates catalog item otherwise)
|
|
21 | 21 |
* |
22 | 22 |
* @param catalogItemDto catalog item DTO |
23 | 23 |
*/ |
24 | 24 |
void saveCatalogItem(CatalogItemDto catalogItemDto); |
25 | 25 |
|
26 |
/** |
|
27 |
* Updates catalog item with given ID |
|
28 |
* |
|
29 |
* @param id ID |
|
30 |
* @param catalogItemDto catalog item DTO |
|
31 |
*/ |
|
32 |
void updateCatalogItem(UUID id, CatalogItemDto catalogItemDto); |
|
33 |
|
|
34 | 26 |
/** |
35 | 27 |
* Deletes catalog item with given ID |
36 | 28 |
* |
Také k dispozici: Unified diff
Added batch endpoint for saving multiple catalog items, POST and PUT endpoint for catalog items merged
re #9753