Package com.atlassian.confluence.user
Interface PersonalInformationManager
-
- All Known Implementing Classes:
DefaultPersonalInformationManager
@ParametersAreNonnullByDefault @Transactional public interface PersonalInformationManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PersonalInformation
createPersonalInformation(com.atlassian.user.User user)
Creates a newPersonalInformation
for the specified user.@NonNull PersonalInformation
getOrCreatePersonalInformation(com.atlassian.user.User user)
Retrieve the personal information for a user.boolean
hasPersonalInformation(@Nullable com.atlassian.sal.api.user.UserKey userKey)
boolean
hasPersonalInformation(@Nullable String username)
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.
-
-
-
Method Detail
-
getOrCreatePersonalInformation
@NonNull PersonalInformation getOrCreatePersonalInformation(com.atlassian.user.User user)
Retrieve the personal information for a user. If no personal information exists in the database, one will be created.- Parameters:
user
- the user to retrieve personal information for- Returns:
- the personal information for that user
- Throws:
NullPointerException
- if user is null- Since:
- 4.2.5
-
savePersonalInformation
void savePersonalInformation(PersonalInformation newInfo, @Nullable PersonalInformation oldInfo)
Saves personal information object.- Parameters:
newInfo
-oldInfo
-
-
savePersonalInformation
void savePersonalInformation(com.atlassian.user.User user, String newInfo, String fullName)
Saves personal information and full name against the user object. Will only store the new information if either the information or full name has changed.
-
removePersonalInformation
void removePersonalInformation(@Nullable ConfluenceUser user)
-
createPersonalInformation
PersonalInformation createPersonalInformation(com.atlassian.user.User user)
Creates a newPersonalInformation
for the specified user. Returns the existing one if it already exists.
-
hasPersonalInformation
boolean hasPersonalInformation(@Nullable String username)
- Returns:
- true if a there is a PersonalInformation object corresponding to this user, if this method returns false calls to getPersonalInformation and getOrCreatePersonalInformation will create a new PersonalInformation object for this user
-
hasPersonalInformation
boolean hasPersonalInformation(@Nullable com.atlassian.sal.api.user.UserKey userKey)
- Returns:
- true if a there is a PersonalInformation object corresponding to this user, if this method returns false calls to getPersonalInformation and getOrCreatePersonalInformation will create a new PersonalInformation object for this user
-
-