mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 05:25:50 +00:00
Update UserService.java
Signed-off-by: jeet041 <mahorjitendra@gmail.com>
This commit is contained in:
parent
4463e5fa34
commit
c2a6520756
1 changed files with 9 additions and 6 deletions
|
@ -1,18 +1,21 @@
|
||||||
// File: UserService.java
|
|
||||||
public class UserService {
|
public class UserService {
|
||||||
public String getUserName(int userId) {
|
public String getUserName(int userId) {
|
||||||
return "FeatureBranch_User_" + userId; // Changed logic
|
return "User" + userId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isUserActive(int userId) {
|
public boolean isUserActive(int userId) {
|
||||||
return false; // Changed logic
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateUserStatus(int userId, boolean isActive) {
|
public void updateUserStatus(int userId, boolean isActive) {
|
||||||
System.out.println("Feature Branch: Updating user " + userId + " to " + (isActive ? "active" : "inactive"));
|
// update logic here
|
||||||
}
|
}
|
||||||
|
|
||||||
public void deactivateUser(int userId) {
|
public void deleteUser(int userId) {
|
||||||
System.out.println("Feature Branch: Deactivating user " + userId);
|
// deletion logic
|
||||||
|
}
|
||||||
|
|
||||||
|
public void notifyUser(int userId, String message) {
|
||||||
|
System.out.println("Sending message: " + message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue