public interface UserNamePolicy
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription(java.util.Locale locale)
Gets the description of the user name policy in the specified locale
|
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 |
java.lang.String getUserNameFromPolicy(java.util.Map reqData) throws UserNameGenerationException
Map
reqData
- the Map
containing the user dataUserNameGenerationException
- if there is an exception while generating the user nameboolean isUserNameValid(java.lang.String userName, java.util.Map reqData)
Map
is valid as per the user name generation policyuserName
- the user name to be validated against the policyreqData
- the Map
containing the user datajava.lang.String getDescription(java.util.Locale locale)
locale
- locale in which the policy description is to be specified