com.atlassian.sal.bamboo.user
Class BambooUserProfile

java.lang.Object
  extended by com.atlassian.sal.bamboo.user.BambooUserProfile
All Implemented Interfaces:
UserProfile

public final class BambooUserProfile
extends Object
implements UserProfile

A simple implementation of the UserProfile interface for Bamboo

Since:
2.2.0

Constructor Summary
BambooUserProfile(com.atlassian.user.User user)
           
 
Method Summary
 String getEmail()
          Returns the email address of the user associated with this profile
 String getFullName()
          Returns the full name of the user associated with this profile information
 URI getProfilePageUri()
          Returns a URI for the user's profile page.
 URI getProfilePictureUri()
          Returns a URI for the user's profile picture.
 URI getProfilePictureUri(int width, int height)
          Returns a URI for the user's profile picture.
 String getUsername()
          Returns the username of the user associated with this profile information
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BambooUserProfile

public BambooUserProfile(com.atlassian.user.User user)
Method Detail

getUsername

public String getUsername()
Description copied from interface: UserProfile
Returns the username of the user associated with this profile information

Specified by:
getUsername in interface UserProfile
Returns:
the username of the user associated with this profile information

getFullName

public String getFullName()
Description copied from interface: UserProfile
Returns the full name of the user associated with this profile information

Specified by:
getFullName in interface UserProfile
Returns:
the full name of the user associated with this profile information, or null if a full name was not provided or the application does not support the full name as profile data

getEmail

public String getEmail()
Description copied from interface: UserProfile
Returns the email address of the user associated with this profile

Specified by:
getEmail in interface UserProfile
Returns:
the email address of the user associated with this profile, or null if an email address was not provided or the application does not support email addresses as profile data

getProfilePictureUri

public URI getProfilePictureUri(int width,
                                int height)
Description copied from interface: UserProfile
Returns a URI for the user's profile picture. The returned URI will point to an image of the user's profile picture no smaller than the requested size. The URI will either be relative to the application's base URI, or absolute if the profile picture is being served by an external server

Specified by:
getProfilePictureUri in interface UserProfile
Parameters:
width - the preferred width of the desired picture
height - the preferred height of the desired picture
Returns:
a URI pointing to an image of the user's profile picture, or null if a profile picture was not provided, the application does not support profile pictures as profile data, or the application was unable to provide an image larger than or equal to the requested size

getProfilePictureUri

public URI getProfilePictureUri()
Description copied from interface: UserProfile
Returns a URI for the user's profile picture. The returned URI will point to the largest possible unscaled image of the user's profile picture that the application can provide The URI will either be relative to the application's base URI, or absolute if the profile picture is being served by an external server

Specified by:
getProfilePictureUri in interface UserProfile
Returns:
a URI pointing to an image of the user's profile picture, or null if a profile picture was not provided or the application does not support profile pictures as profile data

getProfilePageUri

public URI getProfilePageUri()
Description copied from interface: UserProfile
Returns a URI for the user's profile page. The URI will be relative to the application's base URI

Specified by:
getProfilePageUri in interface UserProfile
Returns:
a relative URI pointing to the user's profile page, or null if the user does not have a profile page or the application does not support profile pages


Copyright © 2010 Atlassian. All Rights Reserved.