Package org.java.demo.model

Examples of org.java.demo.model.Account


  @Resource
  private AccountService accountService;

  public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
    Account account = accountService.getByLoginName(username);
    UserDetails userDetails = new UserDetailsImpl(account);
    return userDetails;   
  }
View Full Code Here


@Transactional
public class AccountServiceImpl extends BasicServiceImpl<Account, Long, AccountDao> implements AccountService {

  @Override
  public Account getByLoginName(String loginName) {
    Account account = dao.getByLoginName(loginName);
    return account;
  }
View Full Code Here

@Repository
public class AccountDaoImpl extends BasicDaoImpl<Account, Long> implements AccountDao {

  @Override
  public Account getByLoginName(final String loginName) {
    Account result = super.findUniqueByProperty(Account.PROP_LOGIN_NAME, loginName);
    return result;
  }
View Full Code Here

  private Block scoreListBlock;

  @SetupRender
  void setupRender() {
    Authentication auth = SecurityContextHolder.getContext().getAuthentication();
    Account account = accountService.getByLoginName(auth.getName());
    studentId = account.getId();
  }
View Full Code Here

TOP

Related Classes of org.java.demo.model.Account

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.