Projekt

Obecné

Profil

Stáhnout (1.53 KB) Statistiky
| Větev: | Tag: | Revize:
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 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
     * @return list of catalog items satisfying given filter
48
     */
49
    List<CatalogItemDto> getCatalog(String name, String country, String type);
50

    
51
    /**
52
     * Returns catalog item with given ID
53
     *
54
     * @param id ID
55
     * @return catalog item with given ID
56
     */
57
    CatalogItemDto getCatalogItem(UUID id);
58

    
59
    /**
60
     * Returns highlighted searched text and searched items
61
     *
62
     * @param text text
63
     * @return highlighted searched text and searched items
64
     */
65
    PathDto getPath(String text);
66

    
67
}
(6-6/6)