| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package org.kuali.mobility.user.service; |
| 17 | |
|
| 18 | |
import java.util.List; |
| 19 | |
|
| 20 | |
import org.kuali.mobility.user.dao.UserDao; |
| 21 | |
import org.kuali.mobility.user.entity.User; |
| 22 | |
import org.kuali.mobility.user.entity.UserPreference; |
| 23 | |
import org.springframework.beans.factory.annotation.Autowired; |
| 24 | |
import org.springframework.stereotype.Service; |
| 25 | |
import org.springframework.transaction.annotation.Transactional; |
| 26 | |
|
| 27 | |
@Service |
| 28 | 0 | public class UserServiceImpl implements UserService { |
| 29 | |
|
| 30 | |
@Autowired |
| 31 | |
private UserDao userDao; |
| 32 | |
|
| 33 | |
@Transactional |
| 34 | |
public User findUserByDeviceId(String deviceId) { |
| 35 | 0 | return userDao.findUserByDeviceId(deviceId); |
| 36 | |
} |
| 37 | |
|
| 38 | |
@Transactional |
| 39 | |
public User findUserByPrincipalName(String principalName) { |
| 40 | 0 | return userDao.findUserByPrincipalName(principalName); |
| 41 | |
} |
| 42 | |
|
| 43 | |
@Transactional |
| 44 | |
public User findUserByPrincipalId(Long principalId) { |
| 45 | 0 | return userDao.findUserByPrincipalId(principalId); |
| 46 | |
} |
| 47 | |
|
| 48 | |
@Transactional |
| 49 | |
public void saveUser(User user) { |
| 50 | 0 | userDao.saveUser(user); |
| 51 | 0 | } |
| 52 | |
|
| 53 | |
@Transactional |
| 54 | |
public void saveUserPreference(UserPreference userPreference) { |
| 55 | 0 | userDao.saveUserPreference(userPreference); |
| 56 | 0 | } |
| 57 | |
|
| 58 | |
@Transactional |
| 59 | |
public void deleteUserPreferenceById(Long preferenceId) { |
| 60 | 0 | userDao.deleteUserPreferenceById(preferenceId); |
| 61 | 0 | } |
| 62 | |
|
| 63 | |
@Transactional |
| 64 | |
public List<UserPreference> findAllUserPreferencesByPrincipalId(Long principalId) { |
| 65 | 0 | return userDao.findAllUserPreferencesByPrincipalId(principalId); |
| 66 | |
} |
| 67 | |
|
| 68 | |
@Transactional |
| 69 | |
public UserPreference findUserPreferenceByPreferenceId(Long preferenceId) { |
| 70 | 0 | return userDao.findUserPreferenceByPreferenceId(preferenceId); |
| 71 | |
} |
| 72 | |
|
| 73 | |
} |