Merge branch 'develop' of https://bitbucket-student.it.hs-heilbronn.de/scm/labswp19/labswp_2019_sose_geocaching into develop
This commit is contained in:
commit
e5c4a2a5e8
@ -89,7 +89,7 @@ public class FinderUtil {
|
||||
if (cacheOptional.isPresent()) {
|
||||
return ResponseEntity.status(200).body(cacheOptional.get());
|
||||
} else {
|
||||
return ResponseEntity.status(404).body("Couldnt find Cache " + cacheID);
|
||||
return ResponseEntity.status(404).body("Ein Fehler ist aufgetreten. Bitte versuchen sie es erneut.");
|
||||
}
|
||||
}
|
||||
|
||||
@ -99,7 +99,7 @@ public class FinderUtil {
|
||||
if (stationOptional.isPresent()) {
|
||||
return ResponseEntity.status(200).body(stationOptional.get());
|
||||
} else {
|
||||
return ResponseEntity.status(404).body("Couldnt find Station " + stationID);
|
||||
return ResponseEntity.status(404).body("Ein Fehler ist aufgetreten. Bitte versuchen sie es erneut.");
|
||||
}
|
||||
}
|
||||
|
||||
@ -111,7 +111,7 @@ public class FinderUtil {
|
||||
return ResponseEntity.status(200).body(bearbeitet);
|
||||
}
|
||||
|
||||
return ResponseEntity.status(404).body("The user has not started this cache yet");
|
||||
return ResponseEntity.status(404).body("Ein Fehler ist aufgetreten. Bitte versuchen sie es erneut.");
|
||||
}
|
||||
|
||||
public static ResponseEntity findCacheAccesDefinitionById(String cacheAccesDefinitionID) {
|
||||
@ -119,7 +119,7 @@ public class FinderUtil {
|
||||
if (cacheAccesDefinitionOptional.isPresent()) {
|
||||
return ResponseEntity.status(200).body(cacheAccesDefinitionOptional.get());
|
||||
} else {
|
||||
return ResponseEntity.status(404).body("Couldnt find CacheAccesDefinition " + cacheAccesDefinitionID);
|
||||
return ResponseEntity.status(404).body("Ein Fehler ist aufgetreten. Bitte versuchen sie es erneut.");
|
||||
}
|
||||
}
|
||||
|
||||
@ -135,11 +135,11 @@ public class FinderUtil {
|
||||
User user = userOptional.get();
|
||||
return ResponseEntity.status(200).body(user);
|
||||
} else {
|
||||
return ResponseEntity.status(404).body("Couldnt find User " + userID);
|
||||
return ResponseEntity.status(404).body("Ein Fehler ist aufgetreten. Bitte versuchen sie es erneut.");
|
||||
}
|
||||
} catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
return ResponseEntity.status(404).body("String format was corrupt");
|
||||
return ResponseEntity.status(404).body("Ein Fehler ist aufgetreten. Bitte versuchen sie es erneut.");
|
||||
}
|
||||
}
|
||||
|
||||
@ -148,7 +148,7 @@ public class FinderUtil {
|
||||
if (teamOptional.isPresent()) {
|
||||
return ResponseEntity.status(200).body(teamOptional.get());
|
||||
} else {
|
||||
return ResponseEntity.status(404).body("Couldnt find User_Info " + teamID);
|
||||
return ResponseEntity.status(404).body("Ein Fehler ist aufgetreten. Bitte versuchen sie es erneut.");
|
||||
}
|
||||
}
|
||||
|
||||
@ -157,7 +157,7 @@ public class FinderUtil {
|
||||
if (teamInviteOptional.isPresent()) {
|
||||
return ResponseEntity.status(200).body(teamInviteOptional.get());
|
||||
} else {
|
||||
return ResponseEntity.status(404).body("Couldnt find User_Info " + teamInviteID);
|
||||
return ResponseEntity.status(404).body("Ein Fehler ist aufgetreten. Bitte versuchen sie es erneut.");
|
||||
}
|
||||
}
|
||||
|
||||
@ -167,7 +167,7 @@ public class FinderUtil {
|
||||
if (team != null) {
|
||||
return ResponseEntity.status(200).body(team);
|
||||
} else {
|
||||
return ResponseEntity.status(404).body("Couldnt find Team with name " + name);
|
||||
return ResponseEntity.status(404).body("Ein Fehler ist aufgetreten. Bitte versuchen sie es erneut.");
|
||||
}
|
||||
}
|
||||
|
||||
@ -189,7 +189,7 @@ public class FinderUtil {
|
||||
|
||||
return ResponseEntity.status(200).body(new Gson().toJson(sendBack));
|
||||
} else {
|
||||
return ResponseEntity.status(404).body("Couldnt find Team member of Team " + name);
|
||||
return ResponseEntity.status(404).body("Ein Fehler ist aufgetreten. Bitte versuchen sie es erneut.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user