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

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

public class AvatarBeanFactory
extends Object

Since:
v5.0

Constructor Summary
AvatarBeanFactory()
           
 
Method Summary
static AvatarBean createAvatarBean(Avatar avatar)
          Creates an AvatarBean from Avatar domain object
static List<AvatarBean> createAvatarBeans(List<Avatar> avatars)
          Create a list of AvatarBeans given the passed List of Avatar domain objects.
static AvatarCroppingBean createTemporaryAvatarCroppingInstructions(AvatarPickerHelperImpl.TemporaryAvatarBean temporaryAvatarBean)
          Gets cropping instructions for temporary avatar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvatarBeanFactory

public AvatarBeanFactory()
Method Detail

createAvatarBeans

public static List<AvatarBean> createAvatarBeans(List<Avatar> avatars)
Create a list of AvatarBeans given the passed List of Avatar domain objects.

Returns:
the List of AvatarBeans from the passed List of Avatar domain objects.

createAvatarBean

public static AvatarBean createAvatarBean(Avatar avatar)
Creates an AvatarBean from Avatar domain object

Parameters:
avatar - - domain object
Returns:
avatar bean

createTemporaryAvatarCroppingInstructions

public static AvatarCroppingBean createTemporaryAvatarCroppingInstructions(AvatarPickerHelperImpl.TemporaryAvatarBean temporaryAvatarBean)
Gets cropping instructions for temporary avatar

Parameters:
temporaryAvatarBean - temporary avatar representation
Returns:
cropping instructions for temporary avatar


Copyright © 2002-2012 Atlassian. All Rights Reserved.