@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. |
@NonNull PersonalInformation |
getOrCreatePersonalInformation(com.atlassian.user.User user)
Retrieve the personal information for a user.
|
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 newInfo,
String fullName)
Saves personal information and full name against the user object.
|
@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)
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–2020 Atlassian. All rights reserved.