<commit_before>package fr.openwide.core.showcase.core.business.user.service;

import java.util.List;

import org.apache.lucene.queryParser.ParseException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import fr.openwide.core.jpa.exception.SecurityServiceException;
import fr.openwide.core.jpa.exception.ServiceException;
import fr.openwide.core.jpa.security.business.person.service.GenericUserServiceImpl;
import fr.openwide.core.showcase.core.business.user.dao.IUserDao;
import fr.openwide.core.showcase.core.business.user.model.User;

@Service("personService")
public class UserServiceImpl extends GenericUserServiceImpl<User> implements IUserService {

	private IUserDao userDao;

	@Autowired
	public UserServiceImpl(IUserDao userDao) {
		super(userDao);
		this.userDao = userDao;
	}

	@Override
	public List<User> searchAutocomplete(String searchPattern) throws ServiceException {
		return userDao.searchAutocomplete(searchPattern);
	}<commit_msg>Utilisation de GenericSimpleUserServiceImpl là où c'est nécessaire.<commit_after>package fr.openwide.core.showcase.core.business.user.service;

import java.util.List;

import org.apache.lucene.queryParser.ParseException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import fr.openwide.core.jpa.exception.SecurityServiceException;
import fr.openwide.core.jpa.exception.ServiceException;
import fr.openwide.core.jpa.security.business.person.service.GenericSimpleUserServiceImpl;
import fr.openwide.core.showcase.core.business.user.dao.IUserDao;
import fr.openwide.core.showcase.core.business.user.model.User;

@Service("personService")
public class UserServiceImpl extends GenericSimpleUserServiceImpl<User> implements IUserService {

	private IUserDao userDao;

	@Autowired
	public UserServiceImpl(IUserDao userDao) {
		super(userDao);
		this.userDao = userDao;
	}

	@Override
	public List<User> searchAutocomplete(String searchPattern) throws ServiceException {
		return userDao.searchAutocomplete(searchPattern);
	}
{'fraction_non_alphanumeric': 0.09532888465204957, 'fraction_numerical': 0.0, 'mean_word_length': 6.890977443609023, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1380457', 'n_tokens_mistral': 631, 'n_tokens_neox': 640, 'n_words': 100}