Package kr.or.common.security.ibatis.domain

Examples of kr.or.common.security.ibatis.domain.CustomGrantedAuthority


    List<GrantedAuthority> gAuthList = new ArrayList<GrantedAuthority> ();
    User user = memberBO.getUser(param);
    if (user != null) {
      if (user.getRoleAuthList() != null) {
        for (RoleAuth role : user.getRoleAuthList()) {
          CustomGrantedAuthority gAuth = new CustomGrantedAuthority(role.getRoleAuth());
          gAuthList.add(gAuth);
        }       
      } else {
        CustomGrantedAuthority gAuth = new CustomGrantedAuthority("ROLE_USER");
        gAuthList.add(gAuth);       
      }
    } else {
      throw new UsernameNotFoundException(username + " not found user!!!!");
    }
View Full Code Here

TOP

Related Classes of kr.or.common.security.ibatis.domain.CustomGrantedAuthority

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.