public interface

PersonalInformationManager

com.atlassian.confluence.user.PersonalInformationManager
Known Indirect Subclasses

Summary

Public Methods
PersonalInformation createPersonalInformation(User user)
Creates a new PersonalInformation for the specified user.
PersonalInformation getPersonalInformation(User user)
Retrieve the personal information for a user.
boolean hasPersonalInformation(String username)
void removePersonalInformation(String username)
void savePersonalInformation(User user, String newInfo, String fullName)
Saves personal information and full name against the user object.
void savePersonalInformation(PersonalInformation newInfo, PersonalInformation oldInfo)
Saves personal information object.

Public Methods

public PersonalInformation createPersonalInformation (User user)

Creates a new PersonalInformation for the specified user. Returns the existing one if it already exists.

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
Throws
NullPointerException if user is null

public boolean hasPersonalInformation (String username)

Returns
  • true if a there is a PersonalInformation object corresponding to this user, if this method returns false calls to getPersonalInformation will create a new PersonalInformation object for this user

public void removePersonalInformation (String username)

public void savePersonalInformation (User user, String newInfo, String fullName)

Saves personal information and full name against the user object. Will only store the new information if either the information or full name has changed.

public void savePersonalInformation (PersonalInformation newInfo, PersonalInformation oldInfo)

Saves personal information object.