public class DefaultPersonalInformationManager extends DefaultContentEntityManager implements PersonalInformationManager
attachmentManager, contentEntityObjectDao, eventManager, hibernateSessionManager, indexer, labelManager, linkManager
ITERATE_ALL
Constructor and Description |
---|
DefaultPersonalInformationManager() |
Modifier and Type | Method and Description |
---|---|
PersonalInformation |
createPersonalInformation(com.atlassian.user.User user)
Creates a new
PersonalInformation for the specified user. |
PersonalInformation |
getOrCreatePersonalInformation(com.atlassian.user.User user)
This operation needs to be atomic to avoid a race condition with duplicate PersonalInformation objects being created (CONF-10234)
|
PersonalInformation |
getPersonalInformation(com.atlassian.user.User user)
Retrieve the personal information for a user.
|
boolean |
hasPersonalInformation(String username) |
protected void |
publishCreateEvent(ContentEntityObject obj)
This method publishes
*CreateEvents s. |
protected void |
publishCreateEvent(ContentEntityObject obj,
SaveContext saveContext) |
protected void |
publishRemoveEvent(ContentEntityObject obj)
This method publishes
*RemoveEvent s. |
protected void |
publishUpdateEvent(ContentEntityObject obj,
ContentEntityObject origObj,
SaveContext saveContext)
This method publishes
*UpdateEvent s. |
void |
removePersonalInformation(ConfluenceUser user) |
void |
removePersonalInformation(String username)
Deprecated.
|
void |
savePersonalInformation(PersonalInformation newInfo,
PersonalInformation oldInfo)
Saves personal information object.
|
void |
savePersonalInformation(com.atlassian.user.User user,
String newInfoString,
String fullName)
Saves personal information and full name against the user object.
|
void |
setPersonalInformationDao(PersonalInformationDao personalInformationDao) |
getBodyContentForRevert, getById, getById, getById, getByIds, getEventManager, getNextVersion, getOtherVersion, getPageDao, getPreviousVersion, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getVersionHistorySummaries, refreshContentEntity, removeContentEntity, removeHistoricalVersion, revertContentEntityBackToVersion, saveContentEntity, saveContentEntity, saveNewVersion, saveNewVersion, setAttachmentManager, setContentEntityObjectDao, setEventManager, setHibernateSessionManager, setIndexer, setLabelManager, setLinkManager, suppressNotificationsOnEventIfRequired, updateContentLinkingTo, updateContentLinkingTo, updateOutgoingLinksInContent, updateOutgoingLinksInContent, updateSingleContentLinkinTo, updateSingleContentLinkinTo, updateSingleContentLinkinTo
public PersonalInformation getPersonalInformation(com.atlassian.user.User user)
PersonalInformationManager
getPersonalInformation
in interface PersonalInformationManager
user
- the user to retrieve personal information forpublic PersonalInformation getOrCreatePersonalInformation(com.atlassian.user.User user)
getOrCreatePersonalInformation
in interface PersonalInformationManager
user
- the user to retrieve personal information forpublic PersonalInformation createPersonalInformation(com.atlassian.user.User user)
PersonalInformationManager
PersonalInformation
for the specified user. Returns the existing one if it already exists.createPersonalInformation
in interface PersonalInformationManager
public void savePersonalInformation(PersonalInformation newInfo, PersonalInformation oldInfo)
PersonalInformationManager
savePersonalInformation
in interface PersonalInformationManager
public void savePersonalInformation(com.atlassian.user.User user, String newInfoString, String fullName)
PersonalInformationManager
savePersonalInformation
in interface PersonalInformationManager
public void setPersonalInformationDao(PersonalInformationDao personalInformationDao)
@Deprecated public void removePersonalInformation(String username)
removePersonalInformation
in interface PersonalInformationManager
public void removePersonalInformation(ConfluenceUser user)
removePersonalInformation
in interface PersonalInformationManager
protected void publishCreateEvent(ContentEntityObject obj)
DefaultContentEntityManager
*CreateEvents
s.
Specific content entity object manager that need to publish those events should override this method.publishCreateEvent
in class DefaultContentEntityManager
obj
- the created content entity objectprotected void publishCreateEvent(ContentEntityObject obj, SaveContext saveContext)
publishCreateEvent
in class DefaultContentEntityManager
protected void publishUpdateEvent(ContentEntityObject obj, ContentEntityObject origObj, SaveContext saveContext)
DefaultContentEntityManager
*UpdateEvent
s.
Specific content entity object manager that need to publish those events should override this method.publishUpdateEvent
in class DefaultContentEntityManager
obj
- the updated content entity objectorigObj
- the old version of the content entity object, for history purposesaveContext
- the associated SaveContext
protected void publishRemoveEvent(ContentEntityObject obj)
DefaultContentEntityManager
*RemoveEvent
s.
Specific content entity object manager that need to publish those events should override this method.publishRemoveEvent
in class DefaultContentEntityManager
obj
- the removed content entity objectpublic boolean hasPersonalInformation(String username)
hasPersonalInformation
in interface PersonalInformationManager
Copyright © 2003–2015 Atlassian. All rights reserved.