Package com.jpoweredcart.common.entity.sale

Examples of com.jpoweredcart.common.entity.sale.Customer


 
  @Override
  public UserDetails loadUserByUsername(String email)
      throws UsernameNotFoundException {
    try{
      Customer customer = userService.getCustomerByEmail(email);
      if(customer==null) throw new EmptyResultDataAccessException(1);
     
      CartUserDetails userDetails = new CartUserDetails();
      userDetails.userId = customer.getId();
      userDetails.salt = customer.getSalt();
      userDetails.password = customer.getPassword();
      userDetails.username = customer.getEmail();
      userDetails.enabled = customer.getStatus()==1;
     
      logger.debug("Found user email={}, enabled={}", email, userDetails.enabled);
     
      return userDetails;
     
View Full Code Here

TOP

Related Classes of com.jpoweredcart.common.entity.sale.Customer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.