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 Details

  • 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 type
      filename - name of file being uploaded
      size - size of file
      request - 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 type
      croppingInstructions - cropping instructions
      Since:
      v5.0