Package com.atlassian.jira.rest.v2.issue
Class AvatarResource
java.lang.Object
com.atlassian.jira.rest.v2.issue.AvatarResource
@Path("avatar")
@Consumes("application/json")
@Produces("application/json")
public class AvatarResource
extends Object
- Since:
- v5.0
-
Constructor Summary
ConstructorsConstructorDescriptionAvatarResource(AvatarResourceHelper avatarResourceHelper, JiraAuthenticationContext authContext, com.atlassian.event.api.EventPublisher eventPublisher, AccessDisablingHelper accessDisablingHelper) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsecreateAvatarFromTemporary(String type, AvatarCroppingBean croppingInstructions) Updates the cropping instructions of the temporary avatar.javax.ws.rs.core.ResponsegetAllSystemAvatars(String type) Returns all system avatars of the given type.javax.ws.rs.core.ResponsestoreTemporaryAvatar(String type, String filename, Long size, javax.servlet.http.HttpServletRequest request) Creates temporary avatar
-
Constructor Details
-
AvatarResource
@Inject public AvatarResource(AvatarResourceHelper avatarResourceHelper, JiraAuthenticationContext authContext, com.atlassian.event.api.EventPublisher eventPublisher, AccessDisablingHelper accessDisablingHelper)
-
-
Method Details
-
getAllSystemAvatars
@GET @Path("{type}/system") public javax.ws.rs.core.Response getAllSystemAvatars(@PathParam("type") String type) Returns all system avatars of the given type.- Parameters:
type- the avatar type- Returns:
- all system avatars of the given type.
- Since:
- v5.0
-
storeTemporaryAvatar
@POST @Consumes("*/*") @Path("{type}/temporary") public javax.ws.rs.core.Response storeTemporaryAvatar(@PathParam("type") String type, @QueryParam("filename") String filename, @QueryParam("size") Long size, @Context javax.servlet.http.HttpServletRequest request) Creates temporary avatar- Parameters:
type- the avatar typefilename- name of file being uploadedsize- size of filerequest- servlet request- Returns:
- temporary avatar cropping instructions
- Since:
- v5.0
-
createAvatarFromTemporary
@POST @Path("{type}/temporaryCrop") public javax.ws.rs.core.Response createAvatarFromTemporary(@PathParam("type") String type, AvatarCroppingBean croppingInstructions) Updates the cropping instructions of the temporary avatar.- Parameters:
type- the avatar typecroppingInstructions- cropping instructions- Since:
- v5.0
-