Revize b539ef29
Přidáno uživatelem Jakub Šmíd před asi 2 roky(ů)
backend/src/main/java/cz/zcu/kiv/backendapi/type/TypeServiceImpl.java | ||
---|---|---|
5 | 5 |
import org.springframework.transaction.annotation.Transactional; |
6 | 6 |
|
7 | 7 |
import java.util.Optional; |
8 |
import java.util.Set; |
|
9 |
import java.util.stream.Collectors; |
|
8 | 10 |
|
9 | 11 |
/** |
10 | 12 |
* Type service implementation |
... | ... | |
28 | 30 |
return typeRepository.findById(type); |
29 | 31 |
} |
30 | 32 |
|
33 |
@Override |
|
34 |
public Set<String> getAllTypesAsString() { |
|
35 |
return typeRepository.findAll().stream().map(Type::getType).collect(Collectors.toSet()); |
|
36 |
} |
|
37 |
|
|
31 | 38 |
|
32 | 39 |
} |
Také k dispozici: Unified diff
Added path
- searching and highlighting text
- returning list of found catalog items
re #9490