@ParametersAreNonnullByDefault public class DefaultPersonalInformationManager extends DefaultContentEntityManager implements PersonalInformationManager
collaborativeEditingHelperITERATE_ALL| Constructor and Description |
|---|
DefaultPersonalInformationManager(ContentEntityObjectDao contentEntityObjectDao,
LinkManager linkManager,
ConfluenceIndexer indexer,
LabelManager labelManager,
AttachmentManager attachmentManager,
HibernateSessionManager hibernateSessionManager,
com.google.common.base.Supplier<XhtmlContent> xhtmlContent,
com.atlassian.event.api.EventPublisher eventPublisher,
NotificationManager notificationManager,
PersonalInformationDao personalInformationDao,
RelationManager relationManager,
com.google.common.base.Supplier<UserAccessor> userAccessor,
com.google.common.base.Supplier<DarkFeaturesManager> darkFeaturesManager,
CollaborativeEditingHelper collaborativeEditingHelper) |
| 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) |
boolean |
hasPersonalInformation(com.atlassian.sal.api.user.UserKey userKey) |
protected void |
publishCreateEvent(ContentEntityObject obj)
This method publishes
*CreateEventss. |
protected void |
publishCreateEvent(ContentEntityObject obj,
SaveContext saveContext) |
protected void |
publishRemoveEvent(ContentEntityObject obj)
This method publishes
*RemoveEvents. |
protected void |
publishUpdateEvent(ContentEntityObject object,
ContentEntityObject origObject,
SaveContext saveContext)
This method publishes
*UpdateEvents. |
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.
|
createDraft, findAllDraftsFor, findDraftFor, findDraftFor, findUnpublishedContentWithUserContributions, getAttachmentManager, getBodyContentForRevert, getById, getById, getById, getByIds, getContentEntityObjectDao, getContributionStatusByUser, getEventPublisher, getHibernateSessionManager, getIndexer, getLabelManager, getLinkManager, getNextVersion, getNotificationManager, getOtherVersion, getPageAndBlogPostsVersionsLastEditedByUser, getPageAndBlogPostsVersionsLastEditedByUserIncludingDrafts, getPageDao, getPreviousVersion, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getVersionHistorySummaries, getVersionHistorySummaries, getVersionsLastEditedByUser, refreshContentEntity, removeContentEntities, removeContentEntity, removeHistoricalVersion, revertContentEntityBackToVersion, saveContentEntity, saveContentEntity, saveNewVersion, saveNewVersion, setAttachmentManager, suppressNotificationsOnEventIfRequired, updateContentLinkingTo, updateContentLinkingTo, updateOutgoingLinksInContent, updateOutgoingLinksInContent, updateSingleContentLinkinTo, updateSingleContentLinkinTo, updateSingleContentLinkinTopublic DefaultPersonalInformationManager(ContentEntityObjectDao contentEntityObjectDao, LinkManager linkManager, ConfluenceIndexer indexer, LabelManager labelManager, AttachmentManager attachmentManager, HibernateSessionManager hibernateSessionManager, com.google.common.base.Supplier<XhtmlContent> xhtmlContent, com.atlassian.event.api.EventPublisher eventPublisher, NotificationManager notificationManager, PersonalInformationDao personalInformationDao, RelationManager relationManager, com.google.common.base.Supplier<UserAccessor> userAccessor, com.google.common.base.Supplier<DarkFeaturesManager> darkFeaturesManager, CollaborativeEditingHelper collaborativeEditingHelper)
@Nonnull public PersonalInformation getPersonalInformation(com.atlassian.user.User user)
PersonalInformationManagergetPersonalInformation in interface PersonalInformationManageruser - the user to retrieve personal information for@Nonnull public PersonalInformation getOrCreatePersonalInformation(com.atlassian.user.User user)
getOrCreatePersonalInformation in interface PersonalInformationManageruser - the user to retrieve personal information for@Nonnull public PersonalInformation createPersonalInformation(com.atlassian.user.User user)
PersonalInformationManagerPersonalInformation for the specified user. Returns the existing one if it already exists.createPersonalInformation in interface PersonalInformationManagerpublic void savePersonalInformation(PersonalInformation newInfo, @Nullable PersonalInformation oldInfo)
PersonalInformationManagersavePersonalInformation in interface PersonalInformationManagerpublic void savePersonalInformation(com.atlassian.user.User user,
String newInfoString,
String fullName)
PersonalInformationManagersavePersonalInformation in interface PersonalInformationManager@Deprecated public void removePersonalInformation(@Nullable String username)
removePersonalInformation in interface PersonalInformationManagerpublic void removePersonalInformation(@Nullable ConfluenceUser user)
removePersonalInformation in interface PersonalInformationManagerprotected void publishCreateEvent(ContentEntityObject obj)
DefaultContentEntityManager*CreateEventss.
Specific content entity object manager that need to publish those events should override this method.publishCreateEvent in class DefaultContentEntityManagerobj - the created content entity objectprotected void publishCreateEvent(ContentEntityObject obj, @Nullable SaveContext saveContext)
publishCreateEvent in class DefaultContentEntityManagerprotected void publishUpdateEvent(ContentEntityObject object, @Nullable ContentEntityObject origObject, @Nullable SaveContext saveContext)
DefaultContentEntityManager*UpdateEvents.
Specific content entity object manager that need to publish those events should override this method.publishUpdateEvent in class DefaultContentEntityManagerobject - the updated content entity objectorigObject - the old version of the content entity object, for history purposesaveContext - the associated SaveContextprotected void publishRemoveEvent(ContentEntityObject obj)
DefaultContentEntityManager*RemoveEvents.
Specific content entity object manager that need to publish those events should override this method.publishRemoveEvent in class DefaultContentEntityManagerobj - the removed content entity objectpublic boolean hasPersonalInformation(@Nullable String username)
hasPersonalInformation in interface PersonalInformationManagerpublic boolean hasPersonalInformation(@Nullable com.atlassian.sal.api.user.UserKey userKey)
hasPersonalInformation in interface PersonalInformationManagerCopyright © 2003–2018 Atlassian. All rights reserved.