aswi2020vldc-gitlab/src/main/java/vldc/aswi/service/LocationManager.java @ 9e9e8d67
1 |
package vldc.aswi.service; |
---|---|
2 |
|
3 |
import vldc.aswi.domain.Location; |
4 |
|
5 |
import java.util.List; |
6 |
|
7 |
/**
|
8 |
* Interface for Location manager.
|
9 |
*/
|
10 |
public interface LocationManager { |
11 |
|
12 |
/**
|
13 |
* Get all locations from database.
|
14 |
* @return List of locations.
|
15 |
*/
|
16 |
List<Location> getLocations(); |
17 |
|
18 |
/**
|
19 |
* Get location from database by ID.
|
20 |
* @return location by ID.
|
21 |
*/
|
22 |
public Location getLocationById(long id); |
23 |
}
|