Skip to content
Snippets Groups Projects

KIA -13515016 - Kevin Erdiza Yogatama

Viewing commit 9c620ba9
Show latest version
2 files
+ 12
0
Preferences
Compare changes
Files
2
@@ -66,6 +66,15 @@ public class LocationServiceImpl implements LocationService {
return new Location[0];
}
@Override
public Location[] getAllLocation(Integer id) {
if(id){
ArrayList<Location> locations = locationDAO.getAllLocation(user.getId());
return locations.toArray(new Location[locations.size()]);
}
return new Location[0];
}
@Override
public Boolean editLocation(String token, Location pastLocation, Location newLocation) {
if(getIdentityService().isTokenValid(token)) {