com.atlassian.confluence.user
Interface PersonalInformationManager

All Known Implementing Classes:
DefaultPersonalInformationManager

public interface PersonalInformationManager


Method Summary
 PersonalInformation createPersonalInformation(User user)
           
 PersonalInformation getPersonalInformation(String username)
          Deprecated. since 2.3 use getPersonalInformation(com.atlassian.user.User)
 PersonalInformation getPersonalInformation(User user)
          Retrieve the personal information for a user.
 void removePersonalInformation(String username)
           
 void savePersonalInformation(PersonalInformation newInfo, PersonalInformation oldInfo)
           
 void setPersonalInformationDao(PersonalInformationDao personalInformationDao)
           
 

Method Detail

getPersonalInformation

public PersonalInformation getPersonalInformation(String username)
Deprecated. since 2.3 use getPersonalInformation(com.atlassian.user.User)

Deprecated: Because it was possible to pass in a string that was not a username, this method could be used accidentally to create personal information for non-users, which caused lots of nasty things to happen. Instead, use the version of the method that requires a real User object.


getPersonalInformation

public PersonalInformation getPersonalInformation(User user)
Retrieve the personal information for a user. If no personal information exists in the database, one will be created.

Parameters:
user - the user to retrieve personal information for
Returns:
the personal information for that user

savePersonalInformation

public void savePersonalInformation(PersonalInformation newInfo,
                                    PersonalInformation oldInfo)

setPersonalInformationDao

public void setPersonalInformationDao(PersonalInformationDao personalInformationDao)

removePersonalInformation

public void removePersonalInformation(String username)

createPersonalInformation

public PersonalInformation createPersonalInformation(User user)


Confluence is developed by Atlassian.