Class 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.
    • Constructor Detail

      • TenantAwareUserNameGenerator

        public TenantAwareUserNameGenerator()
    • Method Detail

      • 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 user
        lastName - the family name of the new user
        emailAddress - the email address of the new user
        seed - a seed for user name generation, the value 0 means "no seed"
        Returns:
        the generated user name