public class RandomUserNameGenerator extends Object implements UserNameGenerator
Constructor and Description |
---|
RandomUserNameGenerator() |
Modifier and Type | Method and Description |
---|---|
String |
generateUserName(String firstName,
String lastName,
String emailAddress,
int seed)
Returns a generated user name
|
int |
getUserNameLength() |
void |
setUserNameLength(int userNameLength) |
public String generateUserName(String firstName, String lastName, String emailAddress, int seed)
generateUserName
in interface UserNameGenerator
firstName
- the given name of the new userlastName
- the family name of the new useremailAddress
- the email address of the new userseed
- a seed for user name generation, the value 0 means "no seed"public void setUserNameLength(int userNameLength)
public int getUserNameLength()
Copyright © 2005–2017 Alfresco Software. All rights reserved.