java.lang.Object
com.finconsgroup.itserr.marketplace.usercommunication.dm.controller.UserController
All Implemented Interfaces:
UserApi

@RestController public class UserController extends Object implements UserApi
REST controller implementing UserApi for user listing, search and maintenance endpoints. Delegates persistence to UserRepository and logs operations for observability.
  • Constructor Details

    • UserController

      public UserController()
  • Method Details

    • getOnlineUsers

      public org.springframework.http.ResponseEntity<List<User>> getOnlineUsers()
      Get all online users
      Specified by:
      getOnlineUsers in interface UserApi
      Returns:
      HTTP 200 with the list of online users; 500 on server errors
    • getRecentlyActiveUsers

      public org.springframework.http.ResponseEntity<List<User>> getRecentlyActiveUsers()
      Get recently active users (online or active within last hour)
      Specified by:
      getRecentlyActiveUsers in interface UserApi
      Returns:
      HTTP 200 with the list of recently active users; 500 on server errors
    • getUserById

      public org.springframework.http.ResponseEntity<User> getUserById(UUID userId)
      Get user by userId
      Specified by:
      getUserById in interface UserApi
      Parameters:
      userId - the business user identifier
      Returns:
      HTTP 200 with user if found; 404 if not; 500 on server errors
    • updateUserStatus

      public org.springframework.http.ResponseEntity<String> updateUserStatus(boolean online)
      Update user online status
      Specified by:
      updateUserStatus in interface UserApi
      Parameters:
      online - new online flag value
      Returns:
      HTTP 200 on success; 500 on server errors