public class WebServiceAvatarProvider extends Object implements AvatarProvider
NULL_PROVIDER| Constructor and Description |
|---|
WebServiceAvatarProvider(PropertyManager propertyManager,
URI base) |
| Modifier and Type | Method and Description |
|---|---|
URI |
getHostedUserAvatarUrl(long applicationId,
String username,
int sizeHint)
Gets a URL for a Crowd-hosted avatar, identified by name, and specific to an application.
|
URI |
getUserAvatar(User user,
int sizeHint)
Gets a URL for an avatar based on the information in this
User, if one is available. |
public WebServiceAvatarProvider(PropertyManager propertyManager, URI base)
@Nullable public URI getUserAvatar(User user, int sizeHint)
AvatarProviderUser, if one is available. This may
consider the email address or some other property, as opposed to an avatar provided by a remote directory. This
may point back to the same Crowd server or to another service. The URI should be evaluated relative to Crowd's
base URL.getUserAvatar in interface AvatarProvideruser - the user to fetch an avatar for, as returned from a find methodsizeHint - a hint in pixels for how large the image should bepublic URI getHostedUserAvatarUrl(long applicationId, String username, int sizeHint)
AvatarProvidergetHostedUserAvatarUrl in interface AvatarProviderCopyright © 2016 Atlassian. All rights reserved.