Predictions 4.10.0.0

hirondelle.predict.pub.register
Class RegisterDAO

Object
  extended by hirondelle.predict.pub.register.RegisterDAO

final class RegisterDAO
extends Object

Data Access Object (DAO) for registration of new users.


Constructor Summary
RegisterDAO()
           
 
Method Summary
(package private)  void add(Register aRegister)
          Add a newly registered user to the database.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegisterDAO

RegisterDAO()
Method Detail

add

void add(Register aRegister)
   throws DAOException,
          DuplicateException
Add a newly registered user to the database.

The password is saved using a hash - see PasswordHasher. The user is saved, and assigned a 'user' role. The implementation uses a database transaction. If the user has attempted to use a Login Name or Email Address that already exists, then the transaction will be rolled back.

Throws:
DAOException
DuplicateException

Predictions 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.27