Class UserController
java.lang.Object
com.finconsgroup.itserr.marketplace.usercommunication.dm.controller.UserController
- All Implemented Interfaces:
UserApi
REST controller implementing UserApi for user listing, search and maintenance endpoints.
Delegates persistence to UserRepository and logs operations for observability.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet all online usersGet recently active users (online or active within last hour)org.springframework.http.ResponseEntity<User> getUserById(UUID userId) Get user by userIdorg.springframework.http.ResponseEntity<String> updateUserStatus(boolean online) Update user online status
-
Constructor Details
-
UserController
public UserController()
-
-
Method Details
-
getOnlineUsers
Get all online users- Specified by:
getOnlineUsersin interfaceUserApi- Returns:
- HTTP 200 with the list of online users; 500 on server errors
-
getRecentlyActiveUsers
Get recently active users (online or active within last hour)- Specified by:
getRecentlyActiveUsersin interfaceUserApi- Returns:
- HTTP 200 with the list of recently active users; 500 on server errors
-
getUserById
Get user by userId- Specified by:
getUserByIdin interfaceUserApi- Parameters:
userId- the business user identifier- Returns:
- HTTP 200 with user if found; 404 if not; 500 on server errors
-
updateUserStatus
Update user online status- Specified by:
updateUserStatusin interfaceUserApi- Parameters:
online- new online flag value- Returns:
- HTTP 200 on success; 500 on server errors
-