![]() There is a need to be able to set the avatar image URL from gerrit. For example: Desired scenario - OAuth plugin take avatarURL from OAuth provider site. - OAuth plugin pass avatarURL (and user identifier object) to AvatarProvider.setUrl() method. - AvatarProvider pass avatarURL to avatarStorage (or avatarManager). - avatarStorage (or avatarManager) associate this url with user for future usage. If call AvatarProvider.getUrl() then AvatarProvider get URL from avatarStorage (or avatarManager) and return to caller. Now is one problem: OAuth plugin can not pass avatarURL (and user identifier object) to the AvatarProvider because setter of avatarURL is missing in AvatarProvider. In order to resolve this problem we need to add avatar image URL setter to AvatarProvider interface. For backwards compatibility with old code, the setter is implemented as a default method rather than an interface method declaration. Change-Id: Ie0e3f33bbdec8dbc2406da4072813085d7840108 |
||
---|---|---|
.. | ||
AvatarProvider.java |