Package org.sonatype.security.ldap.dao

Examples of org.sonatype.security.ldap.dao.NoLdapUserRolesFoundException


      this.log.debug("Failed to find user: " + userId, e);
    }
    catch (NoSuchLdapUserException e) {
      this.log.debug("Failed to find user: " + userId, e);
    }
    throw new NoLdapUserRolesFoundException(userId);
  }
View Full Code Here


    for (LdapUser ldapUser : this.users) {
      if (ldapUser.getUsername().equals(username)) {
        // if we do not have any roles, throw
        if (ldapUser.getMembership() == null || ldapUser.getMembership().isEmpty()) {
          throw new NoLdapUserRolesFoundException(username);
        }
        return ldapUser.getMembership();
      }
    }
    // no user, throw
    throw new NoLdapUserRolesFoundException(username);
  }
View Full Code Here

TOP

Related Classes of org.sonatype.security.ldap.dao.NoLdapUserRolesFoundException

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.