com.arsdigita.kernel
Class UserFactory
java.lang.Object
com.arsdigita.kernel.UserFactory
- public final class UserFactory
- extends Object
UserFactory is a utility class for creating
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 |
UserFactory
public UserFactory()
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 emailgivenName
- - First namefamilyName
- - Last namepassword
- - The user's passwordpasswordQuestion
- - The question asked of the user if he forgets his passwordpasswordAnswer
- - The answer to the question. Password reset on correct answerscreenName
- - AOL, IRC, etc screen name. Optionaluri
- - The URI for the user's web page. OptionaladditionalEmail
- - 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