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

Last change on this file since 1ad8e64 was 8d391a1, checked in by Ema <ema_spirova@…>, 3 years ago

disabling to add location if it already exists in the planner

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[6a3a178]1package finki.diplomska.tripplanner.service;
2
3
4import finki.diplomska.tripplanner.models.Location;
[ceaed42]5import finki.diplomska.tripplanner.models.Planner;
6import finki.diplomska.tripplanner.models.dto.PlannerLocationDto;
[8d391a1]7import org.springframework.data.repository.query.Param;
[6a3a178]8
9import java.util.List;
10import java.util.Optional;
11
12
13public interface LocationService {
14 List<Location> findLocationsFromCity(String locName, String companion, List<String> categories);
[188ee53]15 List<Location> findLocationsFromCountry (String locName, String companion,String region, List<String> categories );
[6a3a178]16 List<Location> findAll();
17 Location getById(Long id);
18 List<Location> scheduleLocations(String locName, String companion,String region, List<String> categories, int numberOfDays);
19 Optional<Location> findById(Long id);
[188ee53]20 List<Location> findLocationsFromCityForm(Long cityId, Long companionId, Long lengthOfStay, String categoryIds);
21 List<Location> findLocationsFromRegionForm(Long regionId, Long companionId, Long lengthOfStay, String categoryIds);
[ceaed42]22 Location addLocationToPlanner(PlannerLocationDto plannerLocationDto);
23 List<Location> getAllLocationsForPlanner(Long plannerId);
[59329aa]24 List<Location> getWeekendGetaways();
25 List<Location> getVillages();
[8d391a1]26 List<Long> getAllLocationIdsForPlanner(Long plannerId);
[6a3a178]27}
Note: See TracBrowser for help on using the repository browser.