| com.atlassian.jira.avatar.AvatarPickerHelper |
Known Indirect Subclasses
|
A helper interface for uploading and creating custom avatars The user will upload an image that is then stored in the session. A url and cropping instructions are sent back to the user so they can select part of the image to be the avatar. Those coordinates are sent back to the server and used to convert the temporary image into an avatar.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Converts temporary avatar (uploaded) to real avatar
| |||||||||||
Crops the temporary avatar (uploaded) using the given selection.
| |||||||||||
Gets temporary avatar url
| |||||||||||
Handles upload of temporary avatar
| |||||||||||
Converts temporary avatar (uploaded) to real avatar
| ownerId | the id of the owner, matches the type (project id or user key) |
|---|---|
| type | the desired type of the avatar |
| selection | the area of the temporary avatar to crop real avatar to |
Crops the temporary avatar (uploaded) using the given selection.
| ownerId | the id of the owner, matches the type (project id or user key) |
|---|---|
| type | the desired type of the avatar. |
| selection | the area of the temporary avatar to crop real avatar to |
Handles upload of temporary avatar
| stream | upload io stream |
|---|---|
| fileName | name of upload file |
| contentType | image type |
| size | size of avatar |
| ownerId | ownerId the id of the owner, matches the type (project id or user key) |
| type | the desired type of the avatar. |

