@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); }
@Override public User getUserByEmail(String email) { return userDao.getUserByEmail(email); }
public List<User> getAllServiceReps() { return userDao.getAllUsersWithRole("ROLE_SERVICEREP"); }
@Override @Transactional(readOnly = true) public List<User> getAllManagers() { return userDao.getAllUsersWithRole("ROLE_MANAGER"); }
@Override @Transactional(readOnly = true) public List<User> getAllAdmins() { return userDao.getAllUsersWithRole("ROLE_ADMIN"); }
@Override @Transactional(readOnly = true) public List<User> getAllUsers() { return userDao.getAllUsers(); }
@Override @Transactional(readOnly = true) public List<User> searchByUsername(String username) { return userDao.searchByUsername(username); }
@Override @Transactional(readOnly = true) public List<User> searchByEmail(String email) { return userDao.searchByEmail(email); }
@Override @Transactional public void persistUser(User user) { userDao.persistUser(user); }
@Override @Transactional public void saveOrUpdateUser(User user) { userDao.saveOrUpdateUser(user); }
public void saveAdminHql(Admin admin) { userDao.saveAdminHql(admin); }
public void saveAdminSql(User user) { userDao.saveAdminSql(user); }
@Override @Transactional(readOnly = true) public List<User> search(String param) { return userDao.search(param); }
@Override @Transactional(readOnly = true) public User getUserByUsername(String username) { return userDao.getUserByUsername(username); }
@Override @Transactional(readOnly = false) public void updateUser(User user) { userDao.updateUser(user); }
@Override @Transactional(readOnly = true) public User getUserById(int id) { return userDao.getUserById(id); }
@Override @Transactional(readOnly = false) public void disableUser(User user) { userDao.disableUser(user); }
public List<User> searchById(String id) { return userDao.searchById(id); }
@Transactional(readOnly = true) public List<User> searchByNotEmailAndDate(String email, DateTime startDate, DateTime endDate) { return userDao.searchByNotEmailAndDate(email, startDate, endDate); }