com.arsdigita.kernel
Class UserFactory

java.lang.Object
  extended bycom.arsdigita.kernel.UserFactory

public final class UserFactory
extends Object

UserFactory is a utility class for creating


Constructor Summary
UserFactory()
           
 
Method Summary
static User newUser(EmailAddress primaryEmail, String givenName, String familyName, String password, String passwordQuestion, String passwordAnswer, String screenName, String uri, EmailAddress additionalEmail)
          Creates a new user, sets up authentication, and adds to the system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserFactory

public UserFactory()
Method Detail

newUser

public static User newUser(EmailAddress primaryEmail,
                           String givenName,
                           String familyName,
                           String password,
                           String passwordQuestion,
                           String passwordAnswer,
                           String screenName,
                           String uri,
                           EmailAddress additionalEmail)
Creates a new user, sets up authentication, and adds to the system. Any parameter not marked Optional must be non-null.

Parameters:
primaryEmail - - The user's primary email
givenName - - First name
familyName - - Last name
password - - The user's password
passwordQuestion - - The question asked of the user if he forgets his password
passwordAnswer - - The answer to the question. Password reset on correct answer
screenName - - AOL, IRC, etc screen name. Optional
uri - - The URI for the user's web page. Optional
additionalEmail - - An additional email address for the user. Optional
Returns:
User The user created.


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC