Modifier and Type | Method and Description |
---|---|
Avatar.Type |
AvatarImpl.getAvatarType() |
Avatar.Type |
Avatar.getAvatarType()
The type of Avatar.
|
static Avatar.Type |
Avatar.Type.getByName(String name) |
static Avatar.Type |
Avatar.Type.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Avatar.Type[] |
Avatar.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
AvatarPickerHelperImpl.Result<Avatar> |
AvatarPickerHelperImpl.convertTemporaryToReal(String ownerId,
Avatar.Type type,
Selection selection) |
AvatarPickerHelperImpl.Result<Avatar> |
AvatarPickerHelper.convertTemporaryToReal(String ownerId,
Avatar.Type type,
Selection selection)
Converts temporary avatar (uploaded) to real avatar
|
Avatar |
AvatarManagerImpl.create(Avatar.Type avatarType,
String owningObjectId,
AvatarImageDataProvider imageDataProvider) |
Avatar |
AvatarManager.create(Avatar.Type avatarType,
String owningObjectId,
AvatarImageDataProvider imageDataProvider)
Creates a database record for the given avatar and uses the content of the InputStream as the image.
|
static AvatarImpl |
AvatarImpl.createCustomAvatar(String fileName,
String contentType,
String ownerId,
Avatar.Type type) |
static AvatarImpl |
AvatarImpl.createSystemAvatar(String fileName,
String contentType,
Avatar.Type avatarType)
Factory method for creating a system Avatar to be created by
AvatarManager . |
AvatarPickerHelperImpl.Result<AvatarPickerHelperImpl.TemporaryAvatarBean> |
AvatarPickerHelperImpl.cropTemporary(String ownerId,
Avatar.Type type,
Selection selection) |
AvatarPickerHelperImpl.Result<AvatarPickerHelperImpl.TemporaryAvatarBean> |
AvatarPickerHelper.cropTemporary(String ownerId,
Avatar.Type type,
Selection selection)
Crops the temporary avatar (uploaded) using the given selection.
|
List<Avatar> |
CachingTaggingAvatarStore.getAllSystemAvatars(Avatar.Type type) |
List<Avatar> |
AvatarManagerImpl.getAllSystemAvatars(Avatar.Type type) |
List<Avatar> |
AvatarStore.getAllSystemAvatars(Avatar.Type type)
Provides a list of all system avatars.
|
List<Avatar> |
AvatarManager.getAllSystemAvatars(Avatar.Type type)
Provides a list of all system avatars.
|
TypeAvatarService |
UniversalAvatarsServiceImpl.getAvatars(Avatar.Type type) |
TypeAvatarService |
UniversalAvatarsService.getAvatars(Avatar.Type type)
Provides object dedicated to manipulate avatars of given type.
|
List<Avatar> |
CachingTaggingAvatarStore.getCustomAvatarsForOwner(Avatar.Type type,
String ownerId) |
List<Avatar> |
AvatarManagerImpl.getCustomAvatarsForOwner(Avatar.Type type,
String ownerId) |
List<Avatar> |
AvatarStore.getCustomAvatarsForOwner(Avatar.Type type,
String ownerId)
Provides a list of all avatars that are of the given type which have the given owner.
|
List<Avatar> |
AvatarManager.getCustomAvatarsForOwner(Avatar.Type type,
String ownerId)
Deprecated.
there can only be one. Since v6.4.
|
Long |
AvatarManagerImpl.getDefaultAvatarId(Avatar.Type ofType) |
Long |
AvatarManager.getDefaultAvatarId(Avatar.Type ofType)
Gets the default avatar for the given type.
|
AvatarImageResolver |
UniversalAvatarsServiceImpl.getImages(Avatar.Type type) |
AvatarImageResolver |
UniversalAvatarsService.getImages(Avatar.Type type)
Provides object dedicated to retrieve links (or image date) to avatars of given type.
|
boolean |
AvatarManagerImpl.hasPermissionToEdit(ApplicationUser remoteUser,
Avatar.Type type,
String ownerId) |
boolean |
AvatarManager.hasPermissionToEdit(ApplicationUser remoteUser,
Avatar.Type type,
String ownerId)
|
boolean |
AvatarManagerImpl.hasPermissionToView(ApplicationUser remoteUser,
Avatar.Type type,
String ownerId) |
boolean |
AvatarManager.hasPermissionToView(ApplicationUser remoteUser,
Avatar.Type type,
String ownerId)
|
static boolean |
AvatarImpl.isOldSystemAvatar(Avatar.Type type,
String filename) |
void |
TemporaryAvatars.storeTemporaryAvatar(ApplicationUser remoteUser,
TemporaryAvatar avatar,
Avatar.Type type,
String owningObjectId)
Store temporary avatar - make it available to displaying servlet.
|
AvatarPickerHelperImpl.Result<AvatarPickerHelperImpl.TemporaryAvatarBean> |
AvatarPickerHelperImpl.upload(InputStream stream,
String fileName,
String contentType,
long size,
String ownerId,
Avatar.Type type) |
AvatarPickerHelperImpl.Result<AvatarPickerHelperImpl.TemporaryAvatarBean> |
AvatarPickerHelper.upload(InputStream stream,
String fileName,
String contentType,
long size,
String ownerId,
Avatar.Type type)
Handles upload of temporary avatar
|
Modifier and Type | Method and Description |
---|---|
void |
TemporaryAvatarsImpl.storeTemporaryAvatar(ApplicationUser remoteUser,
TemporaryAvatar avatar,
Avatar.Type type,
String ownerId) |
Constructor and Description |
---|
BasicAvatarsImageResolver(Avatar.Type type,
VelocityRequestContextFactory velocityRequestContextFactory,
ApplicationProperties applicationProperties) |
BasicTypedTypeAvatarService(Avatar.Type type,
AvatarManager avatarManager,
AvatarAccessPolicy policy) |
TypedAvatarAccessPolicy(Avatar.Type type) |
Modifier and Type | Method and Description |
---|---|
Avatar.Type |
MockAvatar.getAvatarType() |
Constructor and Description |
---|
MockAvatar(long id,
String fileName,
String contentType,
Avatar.Type type,
String owner,
boolean system) |
Modifier and Type | Method and Description |
---|---|
abstract String |
AvatarId.asRelativeLinkForDefaultSize(Avatar.Type type) |
Modifier and Type | Method and Description |
---|---|
Avatar |
TemporaryAvatarHelper.convertTemporaryToReal(ApplicationUser remoteUser,
String ownerId,
Avatar.Type type,
Selection selection) |
AvatarBean |
TemporaryAvatarHelper.createAvatarFromTemporary(ApplicationUser remoteUser,
Avatar.Type type,
String ownerId,
AvatarCroppingBean croppingInstructions) |
javax.ws.rs.core.Response |
TemporaryAvatarHelper.storeTemporaryAvatar(ApplicationUser remoteUser,
Avatar.Type type,
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,
Avatar.Type type,
String ownerId,
Avatar.Size targetSize,
String filename,
Long size,
javax.servlet.http.HttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
AvatarResourceHelper.createAvatarFromTemporary(Avatar.Type type,
String ownerId,
AvatarCroppingBean croppingInstructions)
Converts temporary avatar into a real avatar
|
javax.ws.rs.core.Response |
AvatarResourceHelper.cropTemporaryAvatar(Avatar.Type type,
String ownerId,
AvatarCroppingBean croppingInstructions) |
Map<String,List<AvatarBean>> |
AvatarResourceHelper.getAllAvatars(Avatar.Type type,
String ownerId,
Long selectedAvatarId)
Returns all avatars which are visible for the currently logged in user.
|
javax.ws.rs.core.Response |
AvatarResourceHelper.getAllSystemAvatars(Avatar.Type type)
Returns all system avatars of the given type.
|
javax.ws.rs.core.Response |
AvatarResourceHelper.storeTemporaryAvatar(Avatar.Type type,
String ownerId,
String filename,
Long size,
javax.servlet.http.HttpServletRequest request)
Creates temporary avatar and provides instructions for cropping (if needed)
|
javax.ws.rs.core.Response |
AvatarResourceHelper.storeTemporaryAvatarUsingMultiPart(Avatar.Type type,
String ownerId,
com.atlassian.plugins.rest.common.multipart.FilePart filePart,
javax.servlet.http.HttpServletRequest request)
Creates temporary avatar using multipart.
|
Copyright © 2002-2015 Atlassian. All Rights Reserved.