java.lang.Object | |
↳ | com.atlassian.jira.rest.v2.issue.AvatarResourceHelper |
A helper resource for Project and User avatars.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Converts temporary avatar into a real avatar
| |||||||||||
Deletes avatar
| |||||||||||
Returns all avatars which are visible for the currently logged in user.
| |||||||||||
Returns all system avatars of the given type.
| |||||||||||
Creates temporary avatar and provides instructions for cropping (if needed)
| |||||||||||
Creates temporary avatar using multipart.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Converts temporary avatar into a real avatar
type | - Type of avatars (User or Project) |
---|---|
ownerId | - (project id or username) |
croppingInstructions | - Corrdinates to crop image |
Deletes avatar
id | database id for avatar |
---|
Returns all avatars which are visible for the currently logged in user.
type | - Type of avatars (User or Project) |
---|---|
ownerId | - (project id or username) |
selectedAvatarId | - id of selected avatar |
Returns all system avatars of the given type.
type | - Type of avatars (User or Project) |
---|
Creates temporary avatar and provides instructions for cropping (if needed)
type | - Type of avatars (User or Project) |
---|---|
ownerId | - (project id or username) |
filename | - name of file being uploaded |
size | - size of file |
request | - servlet request |
Creates temporary avatar using multipart. The cropping instructions (or validation errors) are sent back as JSON stored in a textarea. This is because the client uses remote iframing to submit avatars using multipart. So we must send them a valid HTML page back from which the client parses the JSON.
type | - Type of avatars (User or Project) |
---|---|
ownerId | - (project id or username) |
filePart | - File body |
request | - servlet request |