Class ReadThroughCachingPersonalInformationDao
java.lang.Object
com.atlassian.confluence.impl.user.persistence.dao.ReadThroughCachingPersonalInformationDao
- All Implemented Interfaces:
PersonalInformationBulkDao
,PersonalInformationDaoInternal
,PersonalInformationDao
public class ReadThroughCachingPersonalInformationDao
extends Object
implements PersonalInformationDaoInternal, PersonalInformationBulkDao
-
Method Summary
Modifier and TypeMethodDescriptionbulkFetchPersonalInformation
(Collection<com.atlassian.sal.api.user.UserKey> userKeys) Bulk-fetch thePersonalInformation
entities for the given collection ofUserKey
s.create
(PersonalInformationDaoInternal delegateDao, com.atlassian.cache.CacheFactory cacheFactory) findAll()
getAllByUser
(ConfluenceUser user) Workaround for duplicate personal information.getById
(long id) Returns the personal information object with the given ID.getByUser
(ConfluenceUser user) Fetches the personal information object for this user.void
remove
(PersonalInformation objectToRemove) void
save
(PersonalInformation personalInformation)
-
Method Details
-
create
public static ReadThroughCachingPersonalInformationDao create(PersonalInformationDaoInternal delegateDao, com.atlassian.cache.CacheFactory cacheFactory) -
getByUser
Description copied from interface:PersonalInformationDao
Fetches the personal information object for this user.- Specified by:
getByUser
in interfacePersonalInformationDao
-
getAllByUser
Description copied from interface:PersonalInformationDao
Workaround for duplicate personal information. Remove when that's fixed.- Specified by:
getAllByUser
in interfacePersonalInformationDao
-
getById
Description copied from interface:PersonalInformationDao
Returns the personal information object with the given ID.- Specified by:
getById
in interfacePersonalInformationDao
-
findIdsWithAssociatedUser
- Specified by:
findIdsWithAssociatedUser
in interfacePersonalInformationDao
- Returns:
- all personal information ids having associated user
-
bulkFetchPersonalInformation
public Collection<PersonalInformation> bulkFetchPersonalInformation(Collection<com.atlassian.sal.api.user.UserKey> userKeys) Description copied from interface:PersonalInformationBulkDao
Bulk-fetch thePersonalInformation
entities for the given collection ofUserKey
s.- Specified by:
bulkFetchPersonalInformation
in interfacePersonalInformationBulkDao
- Returns:
- a collection containing at-most one
PersonalInformation
object for each user
-
remove
- Specified by:
remove
in interfacePersonalInformationDaoInternal
-
findAll
- Specified by:
findAll
in interfacePersonalInformationDaoInternal
-
save
- Specified by:
save
in interfacePersonalInformationDaoInternal
-