@Transactional @Service(value="userService") public class DefaultUserService extends Object implements UserService
UserService
interface. This service implements operations
related to User data.Constructor and Description |
---|
DefaultUserService() |
Modifier and Type | Method and Description |
---|---|
void |
createUser(String username,
String email,
String password) |
void |
deleteUser(Long userId) |
List<User> |
getAllUsers() |
User |
getCurrentUser() |
User |
getUser(Long userId) |
void |
setUserDAO(UserDAO userDAO) |
void |
updateUser(User user) |
@Autowired public void setUserDAO(UserDAO userDAO)
public User getCurrentUser()
getCurrentUser
in interface UserService
public void createUser(String username, String email, String password)
createUser
in interface UserService
public List<User> getAllUsers()
getAllUsers
in interface UserService
public User getUser(Long userId)
getUser
in interface UserService
public void deleteUser(Long userId)
deleteUser
in interface UserService
public void updateUser(User user)
updateUser
in interface UserService
Copyright © 2015. All rights reserved.