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
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.PlannerLocationDto;
7import org.springframework.data.repository.query.Param;
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);
15 List<Location> findLocationsFromCountry (String locName, String companion,String region, List<String> categories );
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);
20 List<Location> findLocationsFromCityForm(Long cityId, Long companionId, Long lengthOfStay, String categoryIds);
21 List<Location> findLocationsFromRegionForm(Long regionId, Long companionId, Long lengthOfStay, String categoryIds);
22 Location addLocationToPlanner(PlannerLocationDto plannerLocationDto);
23 List<Location> getAllLocationsForPlanner(Long plannerId);
24 List<Location> getWeekendGetaways();
25 List<Location> getVillages();
26 List<Long> getAllLocationIdsForPlanner(Long plannerId);
27}
Note: See TracBrowser for help on using the repository browser.