Class UserService
java.lang.Object
com.fredriksonsound.iot_backoffice_auth.service.UserService
- All Implemented Interfaces:
IUserService
@Service public class UserService extends java.lang.Object implements IUserService
UserService implementation
-
Constructor Summary
Constructors Constructor Description UserService() -
Method Summary
Modifier and Type Method Description booleansaveNewUser(RegisterController.RegisterCredentials credentials)Saves a new user to the database
-
Constructor Details
-
UserService
public UserService()
-
-
Method Details
-
saveNewUser
public boolean saveNewUser(RegisterController.RegisterCredentials credentials) throws ValidationErrorSaves a new user to the database- Specified by:
saveNewUserin interfaceIUserService- Parameters:
credentials- the user- Returns:
- true if success
- Throws:
ValidationError- if the action is not valid given input
-