Class HigherOrderAvatarProviderImpl

    • Constructor Detail

      • HigherOrderAvatarProviderImpl

        @Inject
        public HigherOrderAvatarProviderImpl​(AvatarService avatarService)
    • Method Detail

      • getForUser

        @NotNull
        public @NotNull io.atlassian.fugue.Either<String,​CacheableAvatarSupplier> getForUser​(@NotNull
                                                                                                   @NotNull com.atlassian.user.User user,
                                                                                                   int size)
        Description copied from interface: HigherOrderAvatarProvider
        Returns either the avatar supplier or the gravatar url for the given user. All UI related use cases.
        Specified by:
        getForUser in interface HigherOrderAvatarProvider
        Parameters:
        user - the user to get the avatar for
        size - the size to retrieve the avatar in
        Returns:
        either the avatar supplier for the given user or gravatar url
      • getForAnonymousUser

        @NotNull
        public @NotNull io.atlassian.fugue.Either<String,​CacheableAvatarSupplier> getForAnonymousUser​(int size)
        Description copied from interface: HigherOrderAvatarProvider
        Returns either the avatar supplier or the gravatar url for an anonymous user. All UI related use cases.
        Specified by:
        getForAnonymousUser in interface HigherOrderAvatarProvider
        Parameters:
        size - the size to retrieve the avatar in
        Returns:
        either the avatar supplier or gravatar url