source: trip-planner/src/main/java/finki/diplomska/tripplanner/service/LocationService.java

Last change on this file was 6fe77af, checked in by Ema <ema_spirova@…>, 3 years ago

add location feature

  • Property mode set to 100644
File size: 1.5 KB
Line 
1package finki.diplomska.tripplanner.service;
2
3
4import finki.diplomska.tripplanner.models.Location;
5import finki.diplomska.tripplanner.models.Planner;
6import finki.diplomska.tripplanner.models.dto.LocationDto;
7import finki.diplomska.tripplanner.models.dto.PlannerLocationDto;
8import org.springframework.data.repository.query.Param;
9
10import java.util.List;
11import java.util.Optional;
12
13
14public 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}
Note: See TracBrowser for help on using the repository browser.