class CustomerServicesImpl extends AbstractCustomerServices{

	private static final Logger LOGGER = LoggerFactory.getLogger(CustomerServicesImpl.class);
	

	private CustomerService customerService;
	private PermissionService  permissionService;
	private GroupService   groupService;
	
	@Inject
	public CustomerServicesImpl(CustomerService customerService, PermissionService permissionService, GroupService groupService) {
		super(customerService, permissionService, groupService);
		this.customerService = customerService;
		this.permissionService = permissionService;
		this.groupService = groupService;
	}
	
	@Override
	protected UserDetails userDetails(String userName, Customer customer, Collection<GrantedAuthority> authorities) {<FILL_FUNCTION_BODY>}
	




}


		CustomerDetails authUser = new CustomerDetails(userName, customer.getPassword(), true, true,
				true, true, authorities);
		
		authUser.setEmail(customer.getEmailAddress());
		authUser.setId(customer.getId());
		
		return authUser;
	
<methods>public void <init>(com.salesmanager.core.business.services.customer.CustomerService, com.salesmanager.core.business.services.user.PermissionService, com.salesmanager.core.business.services.user.GroupService) ,public UserDetails loadUserByUsername(java.lang.String) throws UsernameNotFoundException, org.springframework.dao.DataAccessException<variables>private static final org.slf4j.Logger LOGGER,public static final java.lang.String ROLE_PREFIX,protected com.salesmanager.core.business.services.customer.CustomerService customerService,protected com.salesmanager.core.business.services.user.GroupService groupService,protected com.salesmanager.core.business.services.user.PermissionService permissionService