public interface AvatarService
Modifier and Type | Method and Description |
---|---|
long |
getMaxUploadSize()
Retrieves the maximum size, in bytes, for uploaded avatars.
|
String |
getUrlForPerson(Person person,
AvatarRequest request)
Retrieves a URL referencing an avatar for the provided
person . |
String |
getUrlForProject(Project project,
AvatarRequest request)
Retrieves a URL referencing an avatar for the provided
project . |
long getMaxUploadSize()
@Nonnull String getUrlForProject(@Nonnull Project project, @Nonnull AvatarRequest request)
project
.
Implementations of this interface shall not return null
. If no avatar is available for the
provided project
, the URL of a default avatar is returned. The default avatar for a project will
be randomly assigned, but will be stable once set.
project
- the project whose avatar is being requestedrequest
- a request describing the avatar being requestedproject
@Nonnull String getUrlForPerson(@Nonnull Person person, @Nonnull AvatarRequest request)
person
.
Implementations of this interface shall not return null
. If no avatar is available for the
provided person
, the URL of a default avatar is returned.
person
- the person whose avatar is being requestedrequest
- a request describing the avatar being requestedperson
Copyright © 2019 Atlassian. All rights reserved.