aswi2022code-of-duty-gitlab/backend/src/main/java/cz/zcu/kiv/backendapi/catalog/ICatalogItemService.java @ e21b7441
1 |
package cz.zcu.kiv.backendapi.catalog; |
---|---|
2 |
|
3 |
import cz.zcu.kiv.backendapi.path.PathDto; |
4 |
|
5 |
import java.util.List; |
6 |
import java.util.UUID; |
7 |
|
8 |
/**
|
9 |
* Catalog item service interface
|
10 |
*/
|
11 |
public interface ICatalogItemService { |
12 |
/**
|
13 |
* Saves list of catalog items
|
14 |
*
|
15 |
* @param catalogItems catalog items
|
16 |
*/
|
17 |
void saveCatalog(List<CatalogItem> catalogItems); |
18 |
|
19 |
/**
|
20 |
* Saves one catalog item
|
21 |
*
|
22 |
* @param catalogItemDto catalog item DTO
|
23 |
*/
|
24 |
void saveCatalogItem(CatalogItemDto catalogItemDto); |
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 |
/**
|
35 |
* Deletes catalog item with given ID
|
36 |
*
|
37 |
* @param id ID
|
38 |
*/
|
39 |
void deleteCatalogItem(UUID id); |
40 |
|
41 |
/**
|
42 |
* Returns catalog items satisfying given filter
|
43 |
*
|
44 |
* @param name name - optional
|
45 |
* @param country country - optional
|
46 |
* @param type type - optional
|
47 |
* @param writtenForm written form - optional
|
48 |
* @return list of catalog items satisfying given filter
|
49 |
*/
|
50 |
List<CatalogItemDto> getCatalog(String name, String country, String type, String writtenForm); |
51 |
|
52 |
/**
|
53 |
* Returns catalog item with given ID
|
54 |
*
|
55 |
* @param id ID
|
56 |
* @return catalog item with given ID
|
57 |
*/
|
58 |
CatalogItemDto getCatalogItem(UUID id); |
59 |
|
60 |
/**
|
61 |
* Returns highlighted searched text and searched items
|
62 |
*
|
63 |
* @param text text
|
64 |
* @return highlighted searched text and searched items
|
65 |
*/
|
66 |
PathDto getPath(String text); |
67 |
|
68 |
}
|
- « Předchozí
- 1
- …
- 4
- 5
- 6
- Další »