Fish & Chips Club 4.10.0.0

hirondelle.fish.access.user
Class UserDAO

Object
  extended by hirondelle.fish.access.user.UserDAO

public final class UserDAO
extends Object

Data Access Object for Users.


Field Summary
static SqlId FETCH_FORM_SOURCE_ID
          Used by WEB4J to protect against CSRF attacks.
static SqlId SAVE_FORM_SOURCE_ID
          Used by WEB4J to protect against CSRF attacks.
 
Constructor Summary
UserDAO()
           
 
Method Summary
(package private)  void add(User aUser)
          Add a new User, with no initial roles.
(package private)  void delete(SafeText aUserName)
          Delete a User, along with all related roles.
 List<User> list()
          Return a List of all User objects.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FETCH_FORM_SOURCE_ID

public static final SqlId FETCH_FORM_SOURCE_ID
Used by WEB4J to protect against CSRF attacks.


SAVE_FORM_SOURCE_ID

public static final SqlId SAVE_FORM_SOURCE_ID
Used by WEB4J to protect against CSRF attacks.

Constructor Detail

UserDAO

public UserDAO()
Method Detail

list

public List<User> list()
                throws DAOException
Return a List of all User objects.

Throws:
DAOException

add

void add(User aUser)
   throws DAOException,
          DuplicateException
Add a new User, with no initial roles.

The user name must be unique. If the name is duplicated, then a DuplicateException will be thrown.

Throws:
DAOException
DuplicateException

delete

void delete(SafeText aUserName)
      throws DAOException
Delete a User, along with all related roles.

(This method uses a transaction.)

Throws:
DAOException

Fish & Chips Club 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26