public class UniqueOAuthProviderUsernameListener
extends org.exoplatform.services.organization.UserProfileEventListener
OAuthProviderType
If OAuth username is not unique, then OAuthException with code OAuthExceptionCode.DUPLICATE_OAUTH_PROVIDER_USERNAME
will be thrown and it will encapsulate some other needed info (useful for showing error message)| Constructor and Description |
|---|
UniqueOAuthProviderUsernameListener(SocialNetworkService socialNetworkService,
OAuthProviderTypeRegistry oauthProviderTypeRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
preSave(org.exoplatform.services.organization.UserProfile user,
boolean isNew) |
postDelete, postSave, preDeletepublic UniqueOAuthProviderUsernameListener(SocialNetworkService socialNetworkService, OAuthProviderTypeRegistry oauthProviderTypeRegistry)
Copyright © 2017 JBoss by Red Hat. All Rights Reserved.