org.alfresco.repo.security.authentication
Class TenantAwareUserNameGenerator
java.lang.Object
org.alfresco.repo.security.authentication.TenantAwareUserNameGenerator
- All Implemented Interfaces:
- UserNameGenerator
public class TenantAwareUserNameGenerator
- extends java.lang.Object
- implements UserNameGenerator
Tenant Aware user name generator generates user names for each specific tenant.
It does this by delegating to other user name generators.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TenantAwareUserNameGenerator
public TenantAwareUserNameGenerator()
init
public void init()
setTenantService
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
generateUserName
public java.lang.String generateUserName(java.lang.String firstName,
java.lang.String lastName,
java.lang.String emailAddress,
int seed)
- Returns a generated user name
- Specified by:
generateUserName
in interface UserNameGenerator
- 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
public void setGenerator(UserNameGenerator generator)
getGenerator
public UserNameGenerator getGenerator()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.