Package com.atlassian.crowd.integration.acegi.user

Examples of com.atlassian.crowd.integration.acegi.user.CrowdUserDetails


        // LDAP not active
        Hudson hudson = Hudson.getInstance();
        if (!(hudson.getSecurityRealm() instanceof CrowdSecurityRealm))
            return null;
        try {
            CrowdUserDetails details = (CrowdUserDetails) hudson.getSecurityRealm()
                    .getSecurityComponents().userDetails.loadUserByUsername(u.getId());
            String mail = details.getEmail();
            if (mail == null)
                return null; // not found
            return mail;
        } catch (UsernameNotFoundException e) {
            LOGGER.log(Level.FINE, "Failed to look up LDAP for e-mail address", e);
View Full Code Here


        // LDAP not active
        Hudson hudson = Hudson.getInstance();
        if (!(hudson.getSecurityRealm() instanceof CrowdSecurityRealm))
            return null;
        try {
            CrowdUserDetails details = (CrowdUserDetails) hudson.getSecurityRealm()
                    .getSecurityComponents().userDetails.loadUserByUsername(u.getId());
            String mail = details.getEmail();
            if (mail == null)
                return null; // not found
            return mail;
        } catch (UsernameNotFoundException e) {
            LOGGER.log(Level.FINE, "Failed to look up LDAP for e-mail address", e);
View Full Code Here

TOP

Related Classes of com.atlassian.crowd.integration.acegi.user.CrowdUserDetails

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.