com.atlassian.crucible.spi.data
Class UserProfileData

java.lang.Object
  extended by com.atlassian.crucible.spi.data.UserProfileData

public class UserProfileData
extends java.lang.Object


Nested Class Summary
static interface UserProfileData.PREFERENCE_KEYS
          collection of static fields that enumerate the String keys of the map returned by getPreferences().
static interface UserProfileData.PREFERENCE_VALUES
          collection of static fields that enumerate possible String values in the map returned by getPreferences().
 
Constructor Summary
UserProfileData(UserData userData, java.lang.String email, java.util.TimeZone timeZone, java.lang.String avatarUrl, java.util.Map<java.lang.String,java.util.List<java.lang.String>> mappedCommitters)
           
 
Method Summary
 java.lang.String getAvatarUrl()
           
 java.lang.String getEmail()
           
 java.util.Map<java.lang.String,java.util.List<java.lang.String>> getMappedCommitters()
           
 java.util.Map<java.lang.String,java.lang.Object> getPreferences()
           
 java.util.TimeZone getTimeZone()
           
 UserData getUserData()
           
 void setPreferences(int changesetsPerPage, int ideConnectorPort, int maxFilesPerChangeset, int tabwidth, boolean enableIde, boolean htmlEmailFormat, boolean nightlyWatchMode, int context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserProfileData

public UserProfileData(UserData userData,
                       java.lang.String email,
                       java.util.TimeZone timeZone,
                       java.lang.String avatarUrl,
                       java.util.Map<java.lang.String,java.util.List<java.lang.String>> mappedCommitters)
Method Detail

setPreferences

public void setPreferences(int changesetsPerPage,
                           int ideConnectorPort,
                           int maxFilesPerChangeset,
                           int tabwidth,
                           boolean enableIde,
                           boolean htmlEmailFormat,
                           boolean nightlyWatchMode,
                           int context)

getEmail

public java.lang.String getEmail()
Returns:
the email adress of the user

getAvatarUrl

public java.lang.String getAvatarUrl()
Returns:
the url of the user's avatar image

getUserData

public UserData getUserData()
Returns:
a UserData object containing the user's username and display name

getMappedCommitters

public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getMappedCommitters()
Returns:
a map of repository names to the list of committer names mapped to the user in that repository

getTimeZone

public java.util.TimeZone getTimeZone()
Returns:
the timezone of the user

getPreferences

public java.util.Map<java.lang.String,java.lang.Object> getPreferences()
Returns:
a map of preferences specified by the user. The keys are specified in the PREF_ constants on this class.