Interface UserNameGenerator
- All Known Implementing Classes:
NameBasedUserNameGenerator,RandomUserNameGenerator,TenantAwareUserNameGenerator
public interface UserNameGenerator
Implementations of this interface generate a user name
- Author:
- glen johnson at Alfresco dot com
-
Method Summary
Modifier and TypeMethodDescriptiongenerateUserName(String firstName, String lastName, String emailAddress, int seed) Returns a generated user name.
-
Method Details
-
generateUserName
Returns a generated user name. A seed value of 0 means first attempt. A non zero seed value indicates that the obvious user name is already taken and that some random element needs to be added to make a unique user id.- Parameters:
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"- Returns:
- the generated user name
-