public class TenantAwareUserNameGenerator extends Object implements UserNameGenerator
| Constructor and Description |
|---|
TenantAwareUserNameGenerator() |
| Modifier and Type | Method and Description |
|---|---|
String |
generateUserName(String firstName,
String lastName,
String emailAddress,
int seed)
Returns a generated user name
|
UserNameGenerator |
getGenerator() |
void |
init() |
void |
setGenerator(UserNameGenerator generator) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
public void init()
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public String generateUserName(String firstName, String lastName, String emailAddress, int seed)
generateUserName in interface UserNameGeneratorfirstName - 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 setGenerator(UserNameGenerator generator)
public UserNameGenerator getGenerator()
Copyright © 2005–2018 Alfresco Software. All rights reserved.