userman
Class Utilities

java.lang.Object
  extended by userman.Utilities

public class Utilities
extends java.lang.Object

Utility class not used by the web application. Provides facilities for testing database connections and adding dummy users.


Constructor Summary
Utilities()
           
 
Method Summary
static void createDummyUser(java.lang.String name, java.lang.String password, java.lang.String email, int accessLevel)
          Creates a dummy user in the database.
static void main(java.lang.String[] args)
          Can be used for any utility purpose.
static void testManualConnection()
          Static method that simply attempts to get and close a connection to the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utilities

public Utilities()
Method Detail

testManualConnection

public static void testManualConnection()
                                 throws java.sql.SQLException
Static method that simply attempts to get and close a connection to the database.

Throws:
java.sql.SQLException

createDummyUser

public static void createDummyUser(java.lang.String name,
                                   java.lang.String password,
                                   java.lang.String email,
                                   int accessLevel)
                            throws java.sql.SQLException,
                                   java.io.IOException
Creates a dummy user in the database.

Parameters:
name -
password -
email -
accessLevel -
Throws:
java.sql.SQLException
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.sql.SQLException,
                        java.io.IOException
Can be used for any utility purpose. Currently just creates dummy users at each currently used access level.

Parameters:
args -
Throws:
java.sql.SQLException
java.io.IOException