import com.gnizr.db.AccountStatus;
.... String username = "newUser";
String password = "safePass";
String fullname = "John Smith";
String email = "johns@example.com";
int acctStatus = AccountStatus.ACTIVE;
Date createdOn = ... // create today's date
User u = new User(username,password,fullname,email,acctStatus,createdOn);
UserManager userManager = ... // create User Manager
userManager.createUser(u);
@author Harry Chen
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|