Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Predicate<Avatar.Size> |
Avatar.Size.LOW_RES |
Modifier and Type | Method and Description |
---|---|
static Avatar.Size |
Avatar.Size.approx(int size)
Returns the Size which is exactly the same size as the given pixel edge value, rounding upward if no
exact match is available, except if the given value is greater than the maximum available size in which
case the maximum size will be returned.
|
static Avatar.Size |
Avatar.Size.biggerThan(int pixelValue) |
static Avatar.Size |
Avatar.Size.defaultSize() |
static Avatar.Size |
Avatar.Size.fromString(String text)
Returns an avatar image size matching the text provided.
|
Avatar.Size |
AvatarManager.ImageSize.getSize()
Deprecated.
|
static Avatar.Size |
Avatar.Size.getSizeFromParam(String param)
Returns the
Avatar.Size for the given AUI standard size name. |
static Avatar.Size |
Avatar.Size.largest()
In order to cater for future addition of larger sizes this method finds the largest image size.
|
static Avatar.Size |
Avatar.Size.smallerThan(int pixelValue) |
static Avatar.Size |
Avatar.Size.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Avatar.Size[] |
Avatar.Size.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
File |
AvatarImageDataStorage.createAvatarFile(Avatar avatar,
Avatar.Size size) |
static AvatarManager.ImageSize |
AvatarManager.ImageSize.fromSize(Avatar.Size size)
Deprecated.
|
URI |
AvatarServiceImpl.GravatarUrlStrategy.get(ApplicationUser remoteUser,
ApplicationUser user,
Avatar.Size size) |
URI |
AvatarImageResolver.getAvatarAbsoluteUri(ApplicationUser remoteUser,
Avatar avatar,
Avatar.Size requestedSize)
Deprecated.
Return absolute link to display avatar image of given size.
|
URI |
AvatarServiceImpl.getAvatarAbsoluteURL(ApplicationUser remoteUser,
ApplicationUser avatarUser,
Avatar.Size size) |
URI |
AvatarService.getAvatarAbsoluteURL(ApplicationUser remoteUser,
ApplicationUser avatarUser,
Avatar.Size size)
This is the same as
AvatarService.getAvatarURL(ApplicationUser, String, Avatar.Size)
but returns an absolute URL. |
URI |
AvatarServiceImpl.getAvatarAbsoluteURL(ApplicationUser remoteUser,
String username,
Avatar.Size size) |
URI |
AvatarService.getAvatarAbsoluteURL(ApplicationUser remoteUser,
String username,
Avatar.Size size)
Deprecated.
Use
#getAvatarAbsoluteURL(ApplicationUser, ApplicationUser, Size) . Since v6.0 |
static String |
AvatarFilenames.getAvatarFilename(Avatar avatar,
Avatar.Size size) |
static String |
AvatarFilenames.getAvatarFilename(long id,
String filename,
Avatar.Size size) |
URI |
AvatarImageResolver.getAvatarRelativeUri(ApplicationUser remoteUser,
Avatar avatar,
Avatar.Size requestedSize)
Deprecated.
Return link (relative to application context) to display avatar image of given size.
|
URI |
AvatarServiceImpl.getAvatarURL(ApplicationUser remoteUser,
ApplicationUser avatarUser,
Avatar.Size size) |
URI |
AvatarService.getAvatarURL(ApplicationUser remoteUser,
ApplicationUser avatarUser,
Avatar.Size size)
Returns the URL for the avatar of the user having the given username for displaying on a page that should be
shown for the passed in remoteUser.
|
URI |
AvatarServiceImpl.getAvatarURL(ApplicationUser remoteUser,
String username,
Avatar.Size size) |
URI |
AvatarService.getAvatarURL(ApplicationUser remoteUser,
String username,
Avatar.Size size)
Deprecated.
Use
#getAvatarURL(ApplicationUser, ApplicationUser, Size) . Since v6.0 |
URI |
AvatarServiceImpl.getAvatarUrlNoPermCheck(ApplicationUser avatarUser,
Avatar.Size size) |
URI |
AvatarService.getAvatarUrlNoPermCheck(ApplicationUser avatarUser,
Avatar.Size size)
This is the same as
#getAvatarURL(ApplicationUser, String, Size) but does no permission checking. |
URI |
AvatarServiceImpl.getAvatarUrlNoPermCheck(ApplicationUser avatarUser,
Avatar avatar,
Avatar.Size size)
Builds a URI for a JIRA avatar with the requested size.
|
URI |
AvatarService.getAvatarUrlNoPermCheck(ApplicationUser applicationUser,
Avatar avatar,
Avatar.Size size)
Deprecated.
|
URI |
AvatarServiceImpl.getAvatarUrlNoPermCheck(String username,
Avatar.Size size) |
URI |
AvatarService.getAvatarUrlNoPermCheck(String username,
Avatar.Size size)
Deprecated.
Use
#getAvatarUrlNoPermCheck(ApplicationUser, Size) . Since v6.0 |
static String |
AvatarFilenames.getFilenameFlag(Avatar.Size size) |
Optional<URI> |
AvatarServiceImpl.getGravatarAvatarURL(ApplicationUser avatarUser,
Avatar.Size size) |
Optional<URI> |
AvatarService.getGravatarAvatarURL(ApplicationUser avatarUser,
Avatar.Size size)
If Gravatar is enabled returns Gravatar url for given user at given size.
|
File |
AvatarTranscoder.getOrCreateRasterizedAvatarFile(Avatar avatar,
Avatar.Size size,
InputStream inputStream)
Creates a PNG image file for the given avatar based on the base avatar image file which should be in SVG format.
|
File |
AvatarTranscoderImpl.getOrCreateRasterizedAvatarFile(Avatar avatar,
Avatar.Size size,
InputStream inputStream) |
URI |
AvatarServiceImpl.getProjectAvatarAbsoluteURL(Project project,
Avatar.Size size) |
URI |
AvatarService.getProjectAvatarAbsoluteURL(Project project,
Avatar.Size size)
Returns the URL for the avatar of the given project.
|
URI |
AvatarServiceImpl.getProjectAvatarURL(Project project,
Avatar.Size size) |
URI |
AvatarService.getProjectAvatarURL(Project project,
Avatar.Size size)
Returns the URL for the avatar of the given project.
|
URI |
AvatarServiceImpl.getProjectDefaultAvatarAbsoluteURL(Avatar.Size size) |
URI |
AvatarService.getProjectDefaultAvatarAbsoluteURL(Avatar.Size size)
Returns the URL for the default avatar of a project.
|
URI |
AvatarServiceImpl.getProjectDefaultAvatarURL(Avatar.Size size) |
URI |
AvatarService.getProjectDefaultAvatarURL(Avatar.Size size)
Returns the URL for the default avatar of a project.
|
void |
AvatarManagerImpl.readAvatarData(Avatar avatar,
Avatar.Size size,
AvatarFormatPolicy avatarFormatPolicy,
MediaConsumer mediaConsumer) |
void |
AvatarManager.readAvatarData(Avatar avatar,
Avatar.Size size,
AvatarFormatPolicy avatarFormatPolicy,
MediaConsumer mediaConsumer)
Provides read-only access to the data of the avatar image as an
InputStream passed to the
provided dataAccessor. |
void |
AvatarManagerImpl.readAvatarData(Avatar avatar,
Avatar.Size size,
Consumer<InputStream> dataAccessor) |
void |
AvatarManager.readAvatarData(Avatar avatar,
Avatar.Size size,
Consumer<InputStream> dataAccessor)
Provides read-only access to the data of the avatar image as an
InputStream passed to the
provided dataAccessor. |
String |
AvatarServiceHelper.renderURL(ApplicationUser loggedInUser,
ApplicationUser avatarUser,
Avatar.Size size) |
void |
AvatarImageDataProvider.storeImage(Avatar.Size requestSize,
OutputStream output)
Stores avatar image data for requestedSize to given output stream.
|
byte[] |
AvatarTranscoder.transcodeAndTag(String imageKey,
InputStream inputStream,
Avatar.Size size)
Converts a given SVG data to PNG format.
|
byte[] |
AvatarTranscoderImpl.transcodeAndTag(String imageKey,
InputStream inputStream,
Avatar.Size size) |
Modifier and Type | Method and Description |
---|---|
URI |
BasicAvatarsImageResolver.getAvatarAbsoluteUri(ApplicationUser avatarUser,
Avatar avatar,
Avatar.Size requestedSize)
Deprecated.
|
URI |
BasicAvatarsImageResolver.getAvatarRelativeUri(ApplicationUser remoteUser,
Avatar avatar,
Avatar.Size requestedSize)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static MailAttachment |
MailAttachments.newAvatarAttachment(Avatar avatar,
String avatarOwnerDescription,
AvatarManager avatarManager,
Avatar.Size size)
Creates an image attachment from provided avatar.
|
static MailAttachment |
MailAttachments.newTranscodedAvatarAttachment(Avatar avatar,
String avatarOwnerDescription,
AvatarManager avatarManager,
Avatar.Size size)
Creates an image attachment from provided avatar via
AvatarTranscoderImpl to get the image in raster fromat. |
Modifier and Type | Method and Description |
---|---|
URI |
IconImageResolverImpl.getAvatarAbsoluteUri(ApplicationUser avatarUser,
Avatar avatar,
Avatar.Size requestedSize) |
URI |
IconImageResolverImpl.getAvatarRelativeUri(ApplicationUser remoteUser,
Avatar avatar,
Avatar.Size requestedSize) |
InputStream |
DefaultSystemIconImageProvider.getSystemIconInputStream(Avatar icon,
Avatar.Size size) |
InputStream |
SystemIconImageProvider.getSystemIconInputStream(Avatar icon,
Avatar.Size size)
Get the input stream for this system icon.
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
TemporaryAvatarHelper.storeTemporaryAvatar(ApplicationUser remoteUser,
IconType iconType,
String ownerId,
Avatar.Size targetSize,
com.atlassian.plugins.rest.common.multipart.FilePart filePart,
javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
TemporaryAvatarHelper.storeTemporaryAvatar(ApplicationUser remoteUser,
IconType iconType,
String ownerId,
Avatar.Size targetSize,
String filename,
Long size,
javax.servlet.http.HttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
protected void |
ViewUserAvatarServlet.defaultDoGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String ownerId,
Long avatarId,
Avatar.Size size) |
protected void |
AbstractAvatarServlet.defaultDoGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String ownerId,
Long avatarId,
Avatar.Size size)
Template method that processes the GET request.
|
void |
AvatarToStream.sendAvatar(Avatar avatar,
Avatar.Size size,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Copyright © 2002-2017 Atlassian. All Rights Reserved.