Package com.example.seraphine.service
Interface AdminService
- All Known Implementing Classes:
AdminServiceImpl
public interface AdminService
Provides methods that admin can use to do basic operations with user's information in the database
- Author:
- Tri Nguyen Minh
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createAdmin
(User admin) create adminvoid
deleteUser
(Long id) Delete user from the repository using user's idQuery all user from the repositorygetUserById
(Long id) Query user from the repository using idvoid
updateUser
(Long id, User newUser) Update specific user using user's id
-
Method Details
-
getAllUsers
Query all user from the repository -
getUserById
Query user from the repository using id- Parameters:
id
- Long
-
updateUser
Update specific user using user's id- Parameters:
id
- LongnewUser
- User
-
deleteUser
Delete user from the repository using user's id- Parameters:
id
- Long
-
createAdmin
create admin- Parameters:
admin
- User
-