source: src/main/java/mk/ukim/finki/eglas/services/AddressService.java@ ac151d1

main
Last change on this file since ac151d1 was ac151d1, checked in by David <darsov2@…>, 11 days ago

initial

  • Property mode set to 100644
File size: 1.6 KB
Line 
1package mk.ukim.finki.eglas.services;
2
3import mk.ukim.finki.eglas.model.Address;
4import mk.ukim.finki.eglas.model.PollingStation;
5
6import java.util.List;
7
8public interface AddressService {
9
10 List<Address> findAllAddresses();
11 Address findAddressById(Long id);
12 Address updateAddress(Long id,
13 String street,
14 Integer houseNumber,
15 Integer entranceNumber,
16 Integer apartmentNumber,
17 Long municipality,
18 Long pollingStation);
19 void deleteAddress(Long id);
20
21 List<PollingStation> findAllPollingStations();
22 List<PollingStation> findAllPollingStationsByMunicipalityId(Long municipalityId);
23 PollingStation findPollingStationById(Long id);
24 PollingStation updatePollingStation(Long id, String name, String street, Integer houseNumber, Integer entranceNumber, Integer apartmentNumber, Long municipality, Long electoralUnitId);
25 PollingStation deletePollingStation(Long id);
26 PollingStation findPollingStationByCitizenId(Long citizenId);
27 List<String> findStreetNames();
28 Address findByStreetLikeAndHouseNumberAndEntranceNumberAndApartmentNumberAAndMunicipality(String street,
29 Integer houseNumber,
30 Integer entranceNumber,
31 Integer apartmentNumber,
32 Long municipality);
33}
Note: See TracBrowser for help on using the repository browser.