Examples of NoSuchRoleException


Examples of edu.uga.galileo.voci.exception.NoSuchRoleException

      }         
    }
    catch( SQLException e )
    {
      Logger.error("Role names couldn't be retrieved", e);
      throw new NoSuchRoleException("SQLException prevented role names retrieval: "
              + e.getMessage());
    }
       
    return roleNames;
   
View Full Code Here

Examples of edu.uga.galileo.voci.exception.NoSuchRoleException

        role = createObjectFromQueryParser(Role.class, qp);
      }
      else
      {
        role = null;
        throw new NoSuchRoleException("The requested role (" + roleId
            + ") doesn't exist.");
      }
    }
    catch( SQLException e )
    {
      Logger.warn("Role record couldn't be retrieved", e);
      throw new NoSuchRoleException(
          "SQLException prevented role record retrieval: "
              + e.getMessage());
    }

    return role;
View Full Code Here

Examples of edu.uga.galileo.voci.exception.NoSuchRoleException

      }     
    }
    catch( SQLException e1 )
    {     
      Logger.debug( "\n Database error occurred while searching for duplicate role . \n",e1);
      throw new NoSuchRoleException("\n System failed while searching for duplicate role  \n");
    }

    return isRole;
  }// end  isRoleExist()
View Full Code Here

Examples of edu.uga.galileo.voci.exception.NoSuchRoleException

    {
      roleList = null;
      Logger.debug(
              "\n Database error occurred while retrieving roles list. \n",
              e1);
      throw new NoSuchRoleException(
          "\n System couldn't retrieve role list. \n");
    }

    return roleList;
  }// end getRoleList()
View Full Code Here

Examples of edu.uga.galileo.voci.exception.NoSuchRoleException

      role = rdao.getRoleByRoleId(roleId);
    } catch (NoSuchRoleException nsrex) {
      role = null;
      Logger.debug("\n System couldn't retrieve role by roleId: ."
          + roleId + " \n", nsrex);
      throw new NoSuchRoleException(
          "\n System couldn't retrieve role by roleId: ." + roleId
              + " \n");
    }

    return role;
View Full Code Here

Examples of edu.uga.galileo.voci.exception.NoSuchRoleException

      user.setRoles(roleManager.getRolesByUserId(userId));
    }
    catch( NoSuchRoleException noRoleEx )
    {
      Logger.error("\n Couldn't set full roles list for user... \n", noRoleEx);
      throw new NoSuchRoleException("Couldn't find full roles list");
    }
    catch( NoUserRolesException noRoleEx )
    {
      Logger.error("\n Couldn't find roles for user... \n", noRoleEx);
    }
View Full Code Here

Examples of org.sonatype.security.authorization.NoSuchRoleException

    for (Role role : this.listRoles()) {
      if (role.getRoleId().equals(roleId)) {
        return role;
      }
    }
    throw new NoSuchRoleException("Role '" + roleId + "' not found.");
  }
View Full Code Here

Examples of org.sonatype.security.authorization.NoSuchRoleException

  {
    try {
      String roleName = this.ldapManager.getGroupName(roleId);

      if (roleName == null) {
        throw new NoSuchRoleException("Role: " + roleId + " was not found in LDAP.");
      }

      Role role = new Role();
      role.setName(roleId);
      role.setRoleId(roleId);
      role.setSource(this.getSource());

      return role;
    }
    catch (LdapDAOException e) {
      throw new NoSuchRoleException("Role: " + roleId + " was not found in LDAP.", e);
    }
    catch (NoSuchLdapGroupException e) {
      throw new NoSuchRoleException("Role: " + roleId + " was not found in LDAP.", e);
    }
  }
View Full Code Here

Examples of org.sonatype.security.authorization.NoSuchRoleException

      throws NoSuchRoleException
  {
    boolean found = getConfiguration().removeRoleById(id);

    if (!found) {
      throw new NoSuchRoleException(id);
    }

    if (clean) {
      cleanRemovedRole(id);
    }
View Full Code Here

Examples of org.sonatype.security.authorization.NoSuchRoleException

    if (role != null) {
      return role;
    }
    else {
      throw new NoSuchRoleException(id);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.