Class SimpleUserLoginGenerator
java.lang.Object
com.flowable.platform.rest.service.api.user.SimpleUserLoginGenerator
- All Implemented Interfaces:
UserLoginGenerator
public class SimpleUserLoginGenerator extends java.lang.Object implements UserLoginGenerator
A
UserLoginGenerator
that uses the first and last name of a user to generate the login.
It always generates a unique login in the system, by appending a number to the login and checking within the system.- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected com.flowable.core.idm.api.PlatformIdentityService
identityService
-
Constructor Summary
Constructors Constructor Description SimpleUserLoginGenerator(com.flowable.core.idm.api.PlatformIdentityService identityService)
-
Method Summary
Modifier and Type Method Description java.lang.String
generateLogin(CreateUserRepresentation request)
Generate a login from the providedrequest
-
Field Details
-
identityService
protected final com.flowable.core.idm.api.PlatformIdentityService identityService
-
-
Constructor Details
-
SimpleUserLoginGenerator
public SimpleUserLoginGenerator(com.flowable.core.idm.api.PlatformIdentityService identityService)
-
-
Method Details
-
generateLogin
Description copied from interface:UserLoginGenerator
Generate a login from the providedrequest
- Specified by:
generateLogin
in interfaceUserLoginGenerator
- Parameters:
request
- the request that is used to create the user- Returns:
- the generated login for the user
-