Class TenantAwareUserNameGenerator

  • All Implemented Interfaces:
    UserNameGenerator

    public class TenantAwareUserNameGenerator
    extends 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​(TenantService tenantService)
      • generateUserName

        public String generateUserName​(String firstName,
                                       String lastName,
                                       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