Uses of Interface
com.atlassian.bamboo.avatar.CacheableAvatarSupplier
-
Packages that use CacheableAvatarSupplier Package Description com.atlassian.bamboo.avatar com.atlassian.bamboo.plugins.rest.resource -
-
Uses of CacheableAvatarSupplier in com.atlassian.bamboo.avatar
Classes in com.atlassian.bamboo.avatar that implement CacheableAvatarSupplier Modifier and Type Class Description class
DelegatingCacheableAvatarSupplier
AnCacheableAvatarSupplier
implementation which delegates to anAvatarSupplier
, storing the avatar'smodification timestamp
separately.Methods in com.atlassian.bamboo.avatar that return CacheableAvatarSupplier Modifier and Type Method Description @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)
Methods in com.atlassian.bamboo.avatar that return types with arguments of type CacheableAvatarSupplier Modifier and Type Method Description @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
Methods in com.atlassian.bamboo.plugins.rest.resource with parameters of type CacheableAvatarSupplier Modifier and Type Method Description protected 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.
-