Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: joist/java/org/joist/account UserAdminMaint.java

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

CVS update: joist/java/org/joist/account UserAdminMaint.java

Author dlr
Full name Daniel Rall
Date 2000-11-10 12:01:14 PST
Message User: dlr
  Date: 00/11/10 12:01:14

  Modified: java/org/joist/account UserAdminMaint.java
  Log:
  Slimmed method.
  
  Revision Changes Path
  1.2 +16 -16 joist/java/org/joist​/account/UserAdminMa​int.java
  
  Index: UserAdminMaint.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/account/UserAd​minMaint.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- UserAdminMaint.java 2000/07/14 20:45:42 1.1
  +++ UserAdminMaint.java 2000/11/10 20:01:14 1.2
  @@ -22,7 +22,7 @@
     * for additional processing, such as displaying details of the Sponsor.
     *
     * @author Elicia David <A HREF="elicia@collab.​net">elicia@colla​b.net</A>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
     *
     * Copyright (c) 1999 Collab.Net, Inc.
     */
  @@ -112,22 +112,22 @@
   
   
       /**
  - * Gets a list of the roles from the database.
  + * Gets a list of the roles from the database.
        *
  - * @param connection A connection to a JDBC database
  - * @param context A WebContext partially populated by WMServlet
  - * @return A vector containing the list of roles from the given database
  - * @exception SQLException
  - * @exception DataSetException
  + * @param conn A connection to a JDBC database
  + * @param ctx A WebContext partially populated by WMServlet
  + * @return The list of roles from the given database
  + *
  + * @exception SQLException
  + * @exception DataSetException
        */
  - protected Vector
  - getRoles(Connection connection, WebContext context)
  + protected Vector getRoles(Connection conn, WebContext ctx)
           throws SQLException, DataSetException
  - {
  - DataManager dMgr = (DataManager)getData​Manager(context);
  - UserManager userMgr = (UserManager)dMgr.ge​tManager("org.joist.​database.UserManager​");
  - UserRoleManager userRoleMgr = (UserRoleManager)dMg​r.getManager("org.jo​ist.database.UserRol​eManager");
  - Vector userRoles = userRoleMgr.getRoles​(connection);
  - return userRoles;
  - }
  + {
  + DataManager dMgr = (DataManager)getData​Manager(ctx);
  + UserRoleManager userRoleMgr = (UserRoleManager)
  + dMgr.getManager("org​.joist.database.User​RoleManager");
  + Vector userRoles = userRoleMgr.getRoles(conn);
  + return userRoles;
  + }
   }

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

Messages

Show all messages in topic

CVS update: joist/java/org/joist/account UserAdminMaint.java dlr Daniel Rall 2000-11-10 12:01:14 PST
Messages per page: