Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: joist/java/org/joist/database RoleManager.java

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

CVS update: joist/java/org/joist/database RoleManager.java

Author stack
Full name Michael Stack
Date 2000-10-10 20:17:02 PDT
Message User: stack
  Date: 00/10/10 20:17:02

  Modified: java/org/joist/database RoleManager.java
  Log:
  roleName( ) was returning the roleName instead of the roleID. roleID was
  returning the role name when it should hvae been returning the roleID. The
  column specification on the roles.getRecord(0) were reversed.
  
  Revision Changes Path
  1.6 +3 -3 joist/java/org/joist​/database/RoleManage​r.java
  
  Index: RoleManager.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/database/RoleM​anager.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- RoleManager.java 2000/10/11 02:48:47 1.5
  +++ RoleManager.java 2000/10/11 03:17:02 1.6
  @@ -13,7 +13,7 @@
    * Manages the Role table.
    *
    * @author <a href="mailto:leonard​r@collab.net">Leo​nard Richardson</a>
  - * @version $Id: RoleManager.java,v 1.5 2000/10/11 02:48:47 leonardr Exp $
  + * @version $Id: RoleManager.java,v 1.6 2000/10/11 03:17:02 stack Exp $
    *
    * Copyright (c) 2000 CollabNet, Inc.
    */
  @@ -71,7 +71,7 @@
           DataSet roles = getRoles(connection, roleID, null);
           if (roles.containsRecord(0))
           {
  - return roles.getRecord(0).g​etValue(ROLE_ID).asS​tring();
  + return roles.getRecord(0).g​etValue(ROLE_NAME).a​sString();
           }
           else
           {
  @@ -94,7 +94,7 @@
           DataSet roles = getRoles(connection, null, roleName);
           if (roles.containsRecord(0))
           {
  - return roles.getRecord(0).g​etValue(ROLE_NAME).a​sString();
  + return roles.getRecord(0).g​etValue(ROLE_ID).asS​tring();
           }
           else
           {

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: joist/java/org/joist/database RoleManager.java stack Michael Stack 2000-10-10 20:17:02 PDT
Messages per page: