public class NameBasedUserNameGenerator extends Object implements UserNameGenerator
Constructor and Description |
---|
NameBasedUserNameGenerator() |
Modifier and Type | Method and Description |
---|---|
String |
generateUserName(String firstName,
String lastName,
String emailAddress,
int seed)
Returns a generated user name
|
void |
setNamePattern(String userNamePattern)
The pattern of the user name to generate
e.g.
|
void |
setUserNameLength(int userNameLength)
Set the user name length
|
public void setNamePattern(String userNamePattern)
userNamePattern
- Stringpublic void setUserNameLength(int userNameLength)
userNameLength
- the user name lengthpublic 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"Copyright © 2005–2017 Alfresco Software. All rights reserved.