@ParametersAreNonnullByDefault public interface PersonalInformationManager
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)
Retrieve the personal information for a user.
|
PersonalInformation |
getPersonalInformation(com.atlassian.user.User user)
Deprecated.
since 4.2.5 - use getOrCreatePersonalInformation
|
boolean |
hasPersonalInformation(String username) |
boolean |
hasPersonalInformation(com.atlassian.sal.api.user.UserKey userKey) |
void |
removePersonalInformation(ConfluenceUser user) |
void |
removePersonalInformation(String username)
Deprecated.
Since 5.2. Use
removePersonalInformation(ConfluenceUser) . |
void |
savePersonalInformation(PersonalInformation newInfo,
PersonalInformation oldInfo)
Saves personal information object.
|
void |
savePersonalInformation(com.atlassian.user.User user,
String newInfo,
String fullName)
Saves personal information and full name against the user object.
|
@Deprecated @Nonnull PersonalInformation getPersonalInformation(com.atlassian.user.User user)
user
- the user to retrieve personal information forNullPointerException
- if user is null@Nonnull PersonalInformation getOrCreatePersonalInformation(com.atlassian.user.User user)
user
- the user to retrieve personal information forNullPointerException
- if user is nullvoid savePersonalInformation(PersonalInformation newInfo, @Nullable PersonalInformation oldInfo)
newInfo
- oldInfo
- void savePersonalInformation(com.atlassian.user.User user, String newInfo, String fullName)
@Deprecated void removePersonalInformation(@Nullable String username)
removePersonalInformation(ConfluenceUser)
.void removePersonalInformation(@Nullable ConfluenceUser user)
PersonalInformation createPersonalInformation(com.atlassian.user.User user)
PersonalInformation
for the specified user. Returns the existing one if it already exists.boolean hasPersonalInformation(@Nullable String username)
boolean hasPersonalInformation(@Nullable com.atlassian.sal.api.user.UserKey userKey)
Copyright © 2003–2017 Atlassian. All rights reserved.