public abstract class AbstractUserNameGenerationPolicy extends java.lang.Object implements UserNameGenerationPolicy
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXISTING_DATA
Key/Constant to retrieve the User's existing attributes from the input parameter Map.
|
Constructor and Description |
---|
AbstractUserNameGenerationPolicy() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getUserNameFromPolicy(java.util.Map reqData)
Generates a user name based on the user name generation policy
using the user data available in the input
Map |
boolean |
isUserNameValid(java.lang.String userName,
java.util.Map reqData)
Validates if the user name based on the user data specified in the input
Map is valid as per the user name generation policy |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUserName, isGivenUserNameValid
getDescription
public static final java.lang.String EXISTING_DATA
public java.lang.String getUserNameFromPolicy(java.util.Map reqData) throws UserNameGenerationException
UserNamePolicy
Map
getUserNameFromPolicy
in interface UserNamePolicy
reqData
- the Map
containing the user dataUserNameGenerationException
- if there is an exception while generating the user namepublic boolean isUserNameValid(java.lang.String userName, java.util.Map reqData)
UserNamePolicy
Map
is valid as per the user name generation policyisUserNameValid
in interface UserNamePolicy
userName
- the user name to be validated against the policyreqData
- the Map
containing the user data