1
|
package cz.zcu.kiv.backendapi.catalog;
|
2
|
|
3
|
import java.util.List;
|
4
|
import java.util.UUID;
|
5
|
|
6
|
/**
|
7
|
* Catalog service interface
|
8
|
*/
|
9
|
public interface ICatalogItemService {
|
10
|
/**
|
11
|
* Saves list of catalog items DTOs
|
12
|
*
|
13
|
* @param catalogItems catalog items DTOs
|
14
|
*/
|
15
|
void saveCatalog(List<CatalogItemDto> catalogItems);
|
16
|
|
17
|
/**
|
18
|
* Saves one catalog item
|
19
|
*
|
20
|
* @param catalogItemDto catalog item DTO
|
21
|
*/
|
22
|
void saveCatalogItem(CatalogItemDto catalogItemDto);
|
23
|
|
24
|
/**
|
25
|
* Updates catalog item with given ID
|
26
|
*
|
27
|
* @param id ID
|
28
|
* @param catalogItemDto catalog item DTO
|
29
|
*/
|
30
|
void updateCatalogItem(UUID id, CatalogItemDto catalogItemDto);
|
31
|
|
32
|
/**
|
33
|
* Deletes catalog item with given ID
|
34
|
*
|
35
|
* @param id ID
|
36
|
*/
|
37
|
void deleteCatalogItem(UUID id);
|
38
|
|
39
|
/**
|
40
|
* Returns catalog items satisfying given filter
|
41
|
*
|
42
|
* @param name name - optional
|
43
|
* @param country country - optional
|
44
|
* @param type type - optional
|
45
|
* @return list of catalog items satisfying given filter
|
46
|
*/
|
47
|
List<CatalogItemDto> getCatalog(String name, String country, String type);
|
48
|
|
49
|
List<CatalogItemDto> getCatalog2(String name, String country, String type);
|
50
|
|
51
|
List<CatalogItemDto> getCatalog3(String name, String country, String type);
|
52
|
|
53
|
}
|