Package edu.uga.galileo.voci.exception

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


        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

      }     
    }
    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

    {
      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

      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

      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

TOP

Related Classes of edu.uga.galileo.voci.exception.NoSuchRoleException

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.