public interface AvatarProvider
Modifier and Type | Field and Description |
---|---|
static AvatarProvider |
NULL_PROVIDER |
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. |
static final AvatarProvider NULL_PROVIDER
@Nullable URI getUserAvatar(User user, int sizeHint)
User
, 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.user
- the user to fetch an avatar for, as returned from a find
methodsizeHint
- a hint in pixels for how large the image should be@Nullable URI getHostedUserAvatarUrl(long applicationId, String username, int sizeHint)
Copyright © 2020 Atlassian. All rights reserved.