Пример #1
0
 @Override
 @Transactional(readOnly = false)
 public Serializable saveUser(User user) {
   if (user.getAuthorities().isEmpty()) {
     user.getRoles().add(new Authority(user, "ROLE_USER"));
   }
   return userDao.saveUser(user);
 }
Пример #2
0
 @Override
 public User getUserByEmail(String email) {
   return userDao.getUserByEmail(email);
 }
Пример #3
0
 public List<User> getAllServiceReps() {
   return userDao.getAllUsersWithRole("ROLE_SERVICEREP");
 }
Пример #4
0
 @Override
 @Transactional(readOnly = true)
 public List<User> getAllManagers() {
   return userDao.getAllUsersWithRole("ROLE_MANAGER");
 }
Пример #5
0
 @Override
 @Transactional(readOnly = true)
 public List<User> getAllAdmins() {
   return userDao.getAllUsersWithRole("ROLE_ADMIN");
 }
Пример #6
0
 @Override
 @Transactional(readOnly = true)
 public List<User> getAllUsers() {
   return userDao.getAllUsers();
 }
Пример #7
0
 @Override
 @Transactional(readOnly = true)
 public List<User> searchByUsername(String username) {
   return userDao.searchByUsername(username);
 }
Пример #8
0
 @Override
 @Transactional(readOnly = true)
 public List<User> searchByEmail(String email) {
   return userDao.searchByEmail(email);
 }
Пример #9
0
 @Override
 @Transactional
 public void persistUser(User user) {
   userDao.persistUser(user);
 }
Пример #10
0
 @Override
 @Transactional
 public void saveOrUpdateUser(User user) {
   userDao.saveOrUpdateUser(user);
 }
Пример #11
0
 public void saveAdminHql(Admin admin) {
   userDao.saveAdminHql(admin);
 }
Пример #12
0
 public void saveAdminSql(User user) {
   userDao.saveAdminSql(user);
 }
Пример #13
0
 @Override
 @Transactional(readOnly = true)
 public List<User> search(String param) {
   return userDao.search(param);
 }
Пример #14
0
 @Override
 @Transactional(readOnly = true)
 public User getUserByUsername(String username) {
   return userDao.getUserByUsername(username);
 }
Пример #15
0
 @Override
 @Transactional(readOnly = false)
 public void updateUser(User user) {
   userDao.updateUser(user);
 }
Пример #16
0
 @Override
 @Transactional(readOnly = true)
 public User getUserById(int id) {
   return userDao.getUserById(id);
 }
Пример #17
0
 @Override
 @Transactional(readOnly = false)
 public void disableUser(User user) {
   userDao.disableUser(user);
 }
Пример #18
0
 public List<User> searchById(String id) {
   return userDao.searchById(id);
 }
Пример #19
0
 @Transactional(readOnly = true)
 public List<User> searchByNotEmailAndDate(String email, DateTime startDate, DateTime endDate) {
   return userDao.searchByNotEmailAndDate(email, startDate, endDate);
 }