@ParametersAreNonnullByDefault public class DefaultPersonalInformationManager extends DefaultContentEntityManager implements PersonalInformationManager
ITERATE_ALL
Constructor and Description |
---|
DefaultPersonalInformationManager(ContentEntityObjectDao<ContentEntityObject> contentEntityObjectDao,
org.hibernate.SessionFactory sessionFactory,
WikiToStorageConverter wikiToStorageConverter,
com.atlassian.event.api.EventPublisher eventPublisher,
PersonalInformationDao personalInformationDao,
RelationManager relationManager,
CollaborativeEditingHelper collaborativeEditingHelper,
AuditingContext auditingContext,
RetentionFeatureChecker retentionFeatureChecker) |
Modifier and Type | Method and Description |
---|---|
@NonNull PersonalInformation |
createPersonalInformation(com.atlassian.user.User user)
Creates a new
PersonalInformation for the specified user. |
@NonNull 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)
|
boolean |
hasPersonalInformation(@Nullable String username) |
boolean |
hasPersonalInformation(@Nullable com.atlassian.sal.api.user.UserKey userKey) |
void |
removePersonalInformation(@Nullable ConfluenceUser user) |
void |
savePersonalInformation(PersonalInformation newInfo,
@Nullable 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.
|
convertFromWikiToStorageFormatIfRequired, createDraft, findAllDraftsFor, findAllDraftsWithUnpublishedChangesForUser, findDraftFor, findDraftFor, findUnpublishedContentWithUserContributions, getById, getById, getById, getByIds, getContributionStatusByUser, getNextVersion, getOtherVersion, getPageAndBlogPostsVersionsLastEditedByUser, getPageAndBlogPostsVersionsLastEditedByUserIncludingDrafts, getPreviousVersion, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getVersionHistorySummaries, getVersionHistorySummaries, getVersionsLastEditedByUser, publishCreateEvent, publishRemoveEvent, publishUpdateEvent, refreshContentEntity, removeContentEntities, removeContentEntity, removeHistoricalVersion, revertContentEntityBackToVersion, revertContentEntityBackToVersion, saveContentEntity, saveContentEntity, saveNewVersion, saveNewVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getByIdsAndFilters
public DefaultPersonalInformationManager(ContentEntityObjectDao<ContentEntityObject> contentEntityObjectDao, org.hibernate.SessionFactory sessionFactory, WikiToStorageConverter wikiToStorageConverter, com.atlassian.event.api.EventPublisher eventPublisher, PersonalInformationDao personalInformationDao, RelationManager relationManager, CollaborativeEditingHelper collaborativeEditingHelper, AuditingContext auditingContext, RetentionFeatureChecker retentionFeatureChecker)
public @NonNull PersonalInformation getOrCreatePersonalInformation(com.atlassian.user.User user)
getOrCreatePersonalInformation
in interface PersonalInformationManager
user
- the user to retrieve personal information forpublic @NonNull 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, @Nullable 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 removePersonalInformation(@Nullable ConfluenceUser user)
removePersonalInformation
in interface PersonalInformationManager
public boolean hasPersonalInformation(@Nullable String username)
hasPersonalInformation
in interface PersonalInformationManager
public boolean hasPersonalInformation(@Nullable com.atlassian.sal.api.user.UserKey userKey)
hasPersonalInformation
in interface PersonalInformationManager
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences