removed old unneeded methods
This commit is contained in:
parent
ac15616e22
commit
ac484e5d0c
@ -111,16 +111,6 @@ public class FinderUtil {
|
|||||||
return ResponseEntity.status(404).body("The user has not started this cache yet");
|
return ResponseEntity.status(404).body("The user has not started this cache yet");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ResponseEntity findUserByUsername(String username) {
|
|
||||||
|
|
||||||
User user = userRepository.findByUsername(username);
|
|
||||||
if (user != null) {
|
|
||||||
return ResponseEntity.status(200).body(user);
|
|
||||||
}
|
|
||||||
|
|
||||||
return ResponseEntity.status(404).body("Couldnt find user with username " + username);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static ResponseEntity findCacheAccesDefinitionById(String cacheAccesDefinitionID) {
|
public static ResponseEntity findCacheAccesDefinitionById(String cacheAccesDefinitionID) {
|
||||||
Optional<CacheAccesDefinition> cacheAccesDefinitionOptional = cacheAccesDefinitionRepository.findById(Integer.valueOf(cacheAccesDefinitionID));
|
Optional<CacheAccesDefinition> cacheAccesDefinitionOptional = cacheAccesDefinitionRepository.findById(Integer.valueOf(cacheAccesDefinitionID));
|
||||||
if (cacheAccesDefinitionOptional.isPresent()) {
|
if (cacheAccesDefinitionOptional.isPresent()) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user