Coverage Report - org.kuali.mobility.user.service.UserServiceImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
UserServiceImpl
0%
0/12
N/A
1
 
 1  
 /**
 2  
  * Copyright 2011 The Kuali Foundation Licensed under the
 3  
  * Educational Community License, Version 2.0 (the "License"); you may
 4  
  * not use this file except in compliance with the License. You may
 5  
  * obtain a copy of the License at
 6  
  *
 7  
  * http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing,
 10  
  * software distributed under the License is distributed on an "AS IS"
 11  
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  * or implied. See the License for the specific language governing
 13  
  * permissions and limitations under the License.
 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  
 }