Class UserAPIImpl

java.lang.Object
com.brihaspathee.zeus.web.resource.impl.UserAPIImpl
All Implemented Interfaces:
UserAPI

@RestController public class UserAPIImpl extends Object implements UserAPI
Created in Intellij IDEA User: Balaji Varadharajan Date: 07, July 2022 Time: 12:35 PM Project: Zeus Package Name: com.brihaspathee.zeus.web.resource.impl To change this template use File | Settings | File and Code Template
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.UserDto>>
    createUser(com.brihaspathee.zeus.security.model.UserDto userDto)
    Create a new user
    org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.UserList>>
    Get all the users in the system
    org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.UserList>>
    getUserById(UUID userId)
    Get user by user id
    org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.UserList>>
    Get user by username
    org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.UserDto>>
    updateUser(UUID userId, com.brihaspathee.zeus.security.model.UserDto userDto)
    Update an existing user

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UserAPIImpl

      public UserAPIImpl()
  • Method Details

    • getAllUsers

      public org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.UserList>> getAllUsers()
      Get all the users in the system
      Specified by:
      getAllUsers in interface UserAPI
      Returns:
    • getUserById

      public org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.UserList>> getUserById(UUID userId)
      Get user by user id
      Specified by:
      getUserById in interface UserAPI
      Parameters:
      userId -
      Returns:
    • getUserByUsername

      public org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.UserList>> getUserByUsername(String username)
      Get user by username
      Specified by:
      getUserByUsername in interface UserAPI
      Parameters:
      username -
      Returns:
    • createUser

      public org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.UserDto>> createUser(com.brihaspathee.zeus.security.model.UserDto userDto)
      Create a new user
      Specified by:
      createUser in interface UserAPI
      Parameters:
      userDto -
      Returns:
    • updateUser

      public org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.UserDto>> updateUser(UUID userId, com.brihaspathee.zeus.security.model.UserDto userDto)
      Update an existing user
      Specified by:
      updateUser in interface UserAPI
      Parameters:
      userId -
      userDto -
      Returns: