Class UsersController
java.lang.Object
net.andresbustamante.yafoot.commons.web.controllers.AbstractController
net.andresbustamante.yafoot.users.web.controllers.UsersController
- All Implemented Interfaces:
UsersApi
@RestController
public class UsersController
extends net.andresbustamante.yafoot.commons.web.controllers.AbstractController
implements UsersApi
-
Field Summary
Fields inherited from class net.andresbustamante.yafoot.commons.web.controllers.AbstractController
DATABASE_BASIC_ERROR, UNAUTHORISED_USER_ERROR -
Constructor Summary
ConstructorsConstructorDescriptionUsersController(net.andresbustamante.yafoot.users.services.UserManagementService userManagementService, net.andresbustamante.yafoot.users.services.UserSearchService userSearchService, UserMapper userMapper) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void>deleteUser(String email) org.springframework.http.ResponseEntity<Void>updateUserDetails(String email, UserForm userDto) Methods inherited from class net.andresbustamante.yafoot.commons.web.controllers.AbstractController
getLocationURI, getObjectMapper, getRequest, getUserContext, handleConstraintViolationException, translateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.andresbustamante.yafoot.users.web.controllers.UsersApi
getObjectMapper, getRequest
-
Constructor Details
-
UsersController
public UsersController(net.andresbustamante.yafoot.users.services.UserManagementService userManagementService, net.andresbustamante.yafoot.users.services.UserSearchService userSearchService, UserMapper userMapper)
-
-
Method Details
-
updateUserDetails
public org.springframework.http.ResponseEntity<Void> updateUserDetails(String email, UserForm userDto) - Specified by:
updateUserDetailsin interfaceUsersApi
-
deleteUser
- Specified by:
deleteUserin interfaceUsersApi
-