Class NtsRestLocationProvider
- java.lang.Object
-
- org.nentangso.core.service.helper.location.NtsRestLocationProvider
-
- All Implemented Interfaces:
NtsLocationProvider<NtsDefaultLocationDTO>
public class NtsRestLocationProvider extends Object implements NtsLocationProvider<NtsDefaultLocationDTO>
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROVIDER_NAME
-
Constructor Summary
Constructors Constructor Description NtsRestLocationProvider(NtsDefaultLocationCacheable locationCacheable, NtsHelperLocationRestClient restClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Long,NtsDefaultLocationDTO>findAll()Set<Long>findAllIds()Optional<NtsDefaultLocationDTO>findById(Long id)
-
-
-
Field Detail
-
PROVIDER_NAME
public static final String PROVIDER_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NtsRestLocationProvider
public NtsRestLocationProvider(NtsDefaultLocationCacheable locationCacheable, NtsHelperLocationRestClient restClient)
-
-
Method Detail
-
findAll
public Map<Long,NtsDefaultLocationDTO> findAll()
- Specified by:
findAllin interfaceNtsLocationProvider<NtsDefaultLocationDTO>
-
findAllIds
public Set<Long> findAllIds()
- Specified by:
findAllIdsin interfaceNtsLocationProvider<NtsDefaultLocationDTO>
-
findById
public Optional<NtsDefaultLocationDTO> findById(Long id)
- Specified by:
findByIdin interfaceNtsLocationProvider<NtsDefaultLocationDTO>
-
-