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@…>, 2 years ago

add location feature

  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[6a3a178]1package finki.diplomska.tripplanner.service;
2
3
4import finki.diplomska.tripplanner.models.Location;
[ceaed42]5import finki.diplomska.tripplanner.models.Planner;
[6fe77af]6import finki.diplomska.tripplanner.models.dto.LocationDto;
[ceaed42]7import finki.diplomska.tripplanner.models.dto.PlannerLocationDto;
[8d391a1]8import org.springframework.data.repository.query.Param;
[6a3a178]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);
[188ee53]16 List<Location> findLocationsFromCountry (String locName, String companion,String region, List<String> categories );
[6a3a178]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);
[188ee53]21 List<Location> findLocationsFromCityForm(Long cityId, Long companionId, Long lengthOfStay, String categoryIds);
22 List<Location> findLocationsFromRegionForm(Long regionId, Long companionId, Long lengthOfStay, String categoryIds);
[ceaed42]23 Location addLocationToPlanner(PlannerLocationDto plannerLocationDto);
24 List<Location> getAllLocationsForPlanner(Long plannerId);
[59329aa]25 List<Location> getWeekendGetaways();
26 List<Location> getVillages();
[8d391a1]27 List<Long> getAllLocationIdsForPlanner(Long plannerId);
[76712b2]28 List<Location> getAllLocations(String place);
[6fe77af]29 Optional<Location> save (LocationDto locationDto, String username);
[6a3a178]30}
Note: See TracBrowser for help on using the repository browser.