Class UserAPIImpl
java.lang.Object
com.brihaspathee.zeus.web.resource.impl.UserAPIImpl
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionorg.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 userorg.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.UserList>>Get all the users in the systemorg.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.UserList>>getUserById(UUID userId) Get user by user idorg.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.UserList>>getUserByUsername(String username) Get user by usernameorg.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
-
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:
getAllUsersin interfaceUserAPI- 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:
getUserByIdin interfaceUserAPI- 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:
getUserByUsernamein interfaceUserAPI- 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:
createUserin interfaceUserAPI- 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:
updateUserin interfaceUserAPI- Parameters:
userId-userDto-- Returns:
-