Class TenantAwareUserNameGenerator
java.lang.Object
org.alfresco.repo.security.authentication.TenantAwareUserNameGenerator
- All Implemented Interfaces:
UserNameGenerator
Tenant Aware user name generator generates user names for each specific tenant.
It does this by delegating to other user name generators.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateUserName(String firstName, String lastName, String emailAddress, int seed) Returns a generated user namevoidinit()voidsetGenerator(UserNameGenerator generator) voidsetTenantService(TenantService tenantService)
-
Constructor Details
-
TenantAwareUserNameGenerator
public TenantAwareUserNameGenerator()
-
-
Method Details
-
init
public void init() -
setTenantService
-
generateUserName
Returns a generated user name- Specified by:
generateUserNamein interfaceUserNameGenerator- 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
-
setGenerator
-
getGenerator
-