[6a3a178] | 1 | package finki.diplomska.tripplanner.service;
|
---|
| 2 |
|
---|
| 3 |
|
---|
| 4 | import finki.diplomska.tripplanner.models.Location;
|
---|
[ceaed42] | 5 | import finki.diplomska.tripplanner.models.Planner;
|
---|
[6fe77af] | 6 | import finki.diplomska.tripplanner.models.dto.LocationDto;
|
---|
[ceaed42] | 7 | import finki.diplomska.tripplanner.models.dto.PlannerLocationDto;
|
---|
[8d391a1] | 8 | import org.springframework.data.repository.query.Param;
|
---|
[6a3a178] | 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);
|
---|
[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 | }
|
---|