1 | package finki.diplomska.tripplanner.service;
|
---|
2 |
|
---|
3 |
|
---|
4 | import finki.diplomska.tripplanner.models.Location;
|
---|
5 | import finki.diplomska.tripplanner.models.Planner;
|
---|
6 | import finki.diplomska.tripplanner.models.dto.LocationDto;
|
---|
7 | import finki.diplomska.tripplanner.models.dto.PlannerLocationDto;
|
---|
8 | import org.springframework.data.repository.query.Param;
|
---|
9 |
|
---|
10 | import java.util.List;
|
---|
11 | import java.util.Optional;
|
---|
12 |
|
---|
13 |
|
---|
14 | public interface LocationService {
|
---|
15 | List<Location> findLocationsFromCity(String locName, String companion, List<String> categories);
|
---|
16 | List<Location> findLocationsFromCountry (String locName, String companion,String region, List<String> categories );
|
---|
17 | List<Location> findAll();
|
---|
18 | Location getById(Long id);
|
---|
19 | List<Location> scheduleLocations(String locName, String companion,String region, List<String> categories, int numberOfDays);
|
---|
20 | Optional<Location> findById(Long id);
|
---|
21 | List<Location> findLocationsFromCityForm(Long cityId, Long companionId, Long lengthOfStay, String categoryIds);
|
---|
22 | List<Location> findLocationsFromRegionForm(Long regionId, Long companionId, Long lengthOfStay, String categoryIds);
|
---|
23 | Location addLocationToPlanner(PlannerLocationDto plannerLocationDto);
|
---|
24 | List<Location> getAllLocationsForPlanner(Long plannerId);
|
---|
25 | List<Location> getWeekendGetaways();
|
---|
26 | List<Location> getVillages();
|
---|
27 | List<Long> getAllLocationIdsForPlanner(Long plannerId);
|
---|
28 | List<Location> getAllLocations(String place);
|
---|
29 | Optional<Location> save (LocationDto locationDto, String username);
|
---|
30 | }
|
---|