@Service public class UserServiceImpl extends Object implements UserService
Constructor and Description |
---|
UserServiceImpl(UserRepository userRepository) |
Modifier and Type | Method and Description |
---|---|
Optional<org.oxerr.commons.user.domain.User> |
getUser(UUID id) |
Optional<org.oxerr.commons.user.domain.User> |
getUserByUsername(String username) |
org.springframework.data.domain.Page<org.oxerr.commons.user.domain.User> |
getUsers(String username,
Boolean enabled,
UUID[] roleIds,
org.springframework.data.domain.Pageable pageable) |
org.oxerr.commons.user.domain.User |
saveUser(org.oxerr.commons.user.domain.User user) |
@Autowired public UserServiceImpl(UserRepository userRepository)
public org.oxerr.commons.user.domain.User saveUser(org.oxerr.commons.user.domain.User user)
saveUser
in interface UserService
public Optional<org.oxerr.commons.user.domain.User> getUser(UUID id)
getUser
in interface UserService
public Optional<org.oxerr.commons.user.domain.User> getUserByUsername(String username)
getUserByUsername
in interface UserService
public org.springframework.data.domain.Page<org.oxerr.commons.user.domain.User> getUsers(String username, Boolean enabled, UUID[] roleIds, org.springframework.data.domain.Pageable pageable)
getUsers
in interface UserService
Copyright © 2019. All rights reserved.