Package org.kuali.rice.kim.api.identity.entity

Examples of org.kuali.rice.kim.api.identity.entity.Entity


    String entityId = null;
    for (EntityExternalIdentifierBo extId: results) {
      entityId = extId.getEntityId();
    }
    // get the first principal and return details
    Entity entity = getIdentityService().getEntity(entityId);
    Principal principal = entity.getPrincipals().get(0);
    List<GrantedAuthority> auths = new ArrayList<GrantedAuthority>();
    auths.add(new SimpleGrantedAuthority("ROLE_USER"));
    if (principal.isActive()) {
      return new User(principal.getPrincipalName(), "password", true, true, true, true, auths);
    } else {
View Full Code Here

TOP

Related Classes of org.kuali.rice.kim.api.identity.entity.Entity

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.