public class

DefaultPersonalInformationManager

extends DefaultContentEntityManager
implements PersonalInformationManager
java.lang.Object
   ↳ com.atlassian.confluence.core.DefaultContentEntityManager
     ↳ com.atlassian.confluence.user.DefaultPersonalInformationManager

Summary

[Expand]
Inherited Constants
From interface com.atlassian.confluence.core.ContentEntityManager
[Expand]
Inherited Fields
From class com.atlassian.confluence.core.DefaultContentEntityManager
Public Constructors
DefaultPersonalInformationManager()
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 newInfoString, String fullName)
Saves personal information and full name against the user object.
void savePersonalInformation(PersonalInformation newInfo, PersonalInformation oldInfo)
Saves personal information object.
void setPersonalInformationDao(PersonalInformationDao personalInformationDao)
Protected Methods
void publishCreateEvent(ContentEntityObject obj)
This method publishes *CreateEventss.
void publishRemoveEvent(ContentEntityObject obj)
This method publishes *RemoveEvents.
void publishUpdateEvent(ContentEntityObject obj, ContentEntityObject origObj, SaveContext saveContext)
This method publishes *UpdateEvents.
[Expand]
Inherited Methods
From class com.atlassian.confluence.core.DefaultContentEntityManager
From class java.lang.Object
From interface com.atlassian.confluence.core.ContentEntityManager
From interface com.atlassian.confluence.user.PersonalInformationManager

Public Constructors

public DefaultPersonalInformationManager ()

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

public boolean hasPersonalInformation (String username)

public void removePersonalInformation (String username)

public void savePersonalInformation (User user, String newInfoString, 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.

public void setPersonalInformationDao (PersonalInformationDao personalInformationDao)

Protected Methods

protected void publishCreateEvent (ContentEntityObject obj)

This method publishes *CreateEventss. Specific content entity object manager that need to publish those events should override this method.

Parameters
obj the created content entity object

protected void publishRemoveEvent (ContentEntityObject obj)

This method publishes *RemoveEvents. Specific content entity object manager that need to publish those events should override this method.

Parameters
obj the removed content entity object

protected void publishUpdateEvent (ContentEntityObject obj, ContentEntityObject origObj, SaveContext saveContext)

This method publishes *UpdateEvents. Specific content entity object manager that need to publish those events should override this method.

Parameters
obj the updated content entity object
origObj the old version of the content entity object, for history purpose
saveContext the associated SaveContext