Uses of Interface
com.atlassian.bamboo.avatar.CacheableAvatarSupplier
-
Uses of CacheableAvatarSupplier in com.atlassian.bamboo.avatar
Modifier and TypeClassDescriptionclass
AnCacheableAvatarSupplier
implementation which delegates to anAvatarSupplier
, storing the avatar'smodification timestamp
separately.Modifier and TypeMethodDescription@Nullable CacheableAvatarSupplier
AvatarService.getForUser
(@NotNull Principal user, int size) Retrieves the current avatar for the specifieduser
.@Nullable CacheableAvatarSupplier
AvatarServiceImpl.getForUser
(@NotNull Principal user, int size) @NotNull CacheableAvatarSupplier
AvatarService.getUserDefault
(int size) Retrieves a stable default user avatar, suitable for display in anonymous contexts.@NotNull CacheableAvatarSupplier
AvatarServiceImpl.getUserDefault
(int size) @Nullable CacheableAvatarSupplier
AvatarRepository.load
(@NotNull AvatarType type, @NotNull String id, int size) Retrieves the current avatar for the specified object and type, or a null if no avatar has been stored.@Nullable CacheableAvatarSupplier
DiskAvatarRepository.load
(@NotNull AvatarType type, @NotNull String avatarId, int size) @NotNull CacheableAvatarSupplier
AvatarRepository.loadDefault
(@NotNull AvatarType type, int size) Loads a default avatar for the specified type in an approximation of the requested size.@NotNull CacheableAvatarSupplier
DiskAvatarRepository.loadDefault
(@NotNull AvatarType type, int size) Modifier and TypeMethodDescription@NotNull io.atlassian.fugue.Either<String,
CacheableAvatarSupplier> HigherOrderAvatarProvider.getForAnonymousUser
(int size) Returns either the avatar supplier or the gravatar url for an anonymous user.@NotNull io.atlassian.fugue.Either<String,
CacheableAvatarSupplier> HigherOrderAvatarProviderImpl.getForAnonymousUser
(int size) @NotNull io.atlassian.fugue.Either<String,
CacheableAvatarSupplier> HigherOrderAvatarProvider.getForUser
(@NotNull com.atlassian.user.User user, int size) Returns either the avatar supplier or the gravatar url for the given user.@NotNull io.atlassian.fugue.Either<String,
CacheableAvatarSupplier> HigherOrderAvatarProviderImpl.getForUser
(@NotNull com.atlassian.user.User user, int size) -
Uses of CacheableAvatarSupplier in com.atlassian.bamboo.plugins.rest.resource
Modifier and TypeMethodDescriptionprotected javax.ws.rs.core.Response
UserProfileAvatarResource.streamAvatar
(CacheableAvatarSupplier supplier, javax.servlet.http.HttpServletRequest request) Streams the providedavatar
, automatically handling "If-Modified-Since" and "Last-Modified" headers to encourage browsers to cache avatars.