com.atlassian.jira.rest.v2.issue
Class AvatarResource

java.lang.Object
  extended by com.atlassian.jira.rest.v2.issue.AvatarResource

public class AvatarResource
extends Object

Since:
v5.0

Constructor Summary
AvatarResource(JiraAuthenticationContext authContext, AvatarManager avatarManager, AvatarPickerHelper avatarPickerHelper, AttachmentHelper attachmentHelper)
           
 
Method Summary
 javax.ws.rs.core.Response createAvatarFromTemporary(String type, AvatarCroppingBean croppingInstructions)
          Updates the cropping instructions of the temporary avatar.
 javax.ws.rs.core.Response getAllSystemAvatars(String type)
          Returns all system avatars of the given type.
 javax.ws.rs.core.Response storeTemporaryAvatar(String type, String filename, Long size, javax.servlet.http.HttpServletRequest request)
          Creates temporary avatar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvatarResource

public AvatarResource(JiraAuthenticationContext authContext,
                      AvatarManager avatarManager,
                      AvatarPickerHelper avatarPickerHelper,
                      AttachmentHelper attachmentHelper)
Method Detail

getAllSystemAvatars

public javax.ws.rs.core.Response getAllSystemAvatars(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

public javax.ws.rs.core.Response storeTemporaryAvatar(String type,
                                                      String filename,
                                                      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

public javax.ws.rs.core.Response createAvatarFromTemporary(String type,
                                                           AvatarCroppingBean croppingInstructions)
Updates the cropping instructions of the temporary avatar.

Parameters:
type - the avatar type
croppingInstructions - cropping instructions
Since:
v5.0


Copyright © 2002-2013 Atlassian. All Rights Reserved.