Uses of Interface
com.atlassian.bamboo.avatar.AvatarSupplier
-
Uses of AvatarSupplier in com.atlassian.bamboo.avatar
Modifier and TypeInterfaceDescriptioninterface
Augments theAvatarSupplier
with timestamp information that can be used to control caching, or to simply display a modification date indicating when the avatar was last updated.Modifier and TypeClassDescriptionclass
class
AnCacheableAvatarSupplier
implementation which delegates to anAvatarSupplier
, storing the avatar'smodification timestamp
separately.class
AnAvatarSupplier
implementation which supplies an avatar from a classpath resource.Modifier and TypeMethodDescription@NotNull AvatarSupplier
AvatarType.loadDefault
(@NotNull String id, int size) Retrieves a default avatar, potentially randomized based on the requested ID.@NotNull AvatarSupplier
AvatarType.loadFixedDefault
(int size) Retrieves a fixed default avatar, agnostic of any form of identifier.Modifier and TypeMethodDescriptionvoid
AvatarRepository.store
(@NotNull AvatarType type, @NotNull String id, @NotNull AvatarSupplier supplier) Stores the provided avatar for the specified object and type.void
DiskAvatarRepository.store
(@NotNull AvatarType type, @NotNull String avatarId, @NotNull AvatarSupplier supplier) Modifier and TypeMethodDescriptionvoid
AvatarService.saveForUser
(@NotNull Principal user, @NotNull Supplier<AvatarSupplier> metaSupplier) Saves the avatar contained in the providedavatarSupplier
obtained from the providedmetaSupplier
as the new avatar for the specifiedUser
, removing any previously-stored avatar.void
AvatarServiceImpl.saveForUser
(@NotNull Principal user, @NotNull Supplier<AvatarSupplier> metaSupplier) ModifierConstructorDescriptionDelegatingCacheableAvatarSupplier
(@NotNull AvatarSupplier supplier) Constructs a newDelegatingCacheableAvatarSupplier
with anunknown
timestamp.DelegatingCacheableAvatarSupplier
(@NotNull AvatarSupplier supplier, long timestamp) Constructs a newDelegatingCacheableAvatarSupplier
with the providedtimestamp
. -
Uses of AvatarSupplier in com.atlassian.bamboo.plugins.rest.common.avatar