Class ReadThroughCachingPersonalInformationDao
- java.lang.Object
-
- com.atlassian.confluence.internal.persistence.DelegatingObjectDaoInternal<PersonalInformation>
-
- com.atlassian.confluence.impl.user.persistence.dao.ReadThroughCachingPersonalInformationDao
-
- All Implemented Interfaces:
ObjectDao
,PersonalInformationBulkDao
,ObjectDaoInternal<PersonalInformation>
,PersonalInformationDaoInternal
,PersonalInformationDao
public class ReadThroughCachingPersonalInformationDao extends DelegatingObjectDaoInternal<PersonalInformation> implements PersonalInformationDaoInternal, PersonalInformationBulkDao
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<PersonalInformation>
bulkFetchPersonalInformation(Collection<com.atlassian.sal.api.user.UserKey> userKeys)
Bulk-fetch thePersonalInformation
entities for the given collection ofUserKey
s.static ReadThroughCachingPersonalInformationDao
create(PersonalInformationDaoInternal delegateDao, com.atlassian.cache.CacheFactory cacheFactory)
@NonNull List<Long>
findIdsWithAssociatedUser()
List<PersonalInformation>
getAllByUser(ConfluenceUser user)
Workaround for duplicate personal information.PersonalInformation
getById(long id)
Returns the personal information object with the given ID.PersonalInformation
getByUser(ConfluenceUser user)
Fetches the personal information object for this user.void
remove(com.atlassian.core.bean.EntityObject object)
Remove object from persistence.void
removeEntity(PersonalInformation objectToRemove)
Remove object from persistence.-
Methods inherited from class com.atlassian.confluence.internal.persistence.DelegatingObjectDaoInternal
findAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, getPersistentClass, refresh, refreshEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.internal.persistence.ObjectDaoInternal
findAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, getPersistentClass, refresh, refreshEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity
-
-
-
-
Method Detail
-
create
public static ReadThroughCachingPersonalInformationDao create(PersonalInformationDaoInternal delegateDao, com.atlassian.cache.CacheFactory cacheFactory)
-
getByUser
public PersonalInformation getByUser(ConfluenceUser user)
Description copied from interface:PersonalInformationDao
Fetches the personal information object for this user.- Specified by:
getByUser
in interfacePersonalInformationDao
-
getAllByUser
public List<PersonalInformation> getAllByUser(ConfluenceUser user)
Description copied from interface:PersonalInformationDao
Workaround for duplicate personal information. Remove when that's fixed.- Specified by:
getAllByUser
in interfacePersonalInformationDao
-
getById
public PersonalInformation getById(long id)
Description copied from interface:PersonalInformationDao
Returns the personal information object with the given ID.- Specified by:
getById
in interfacePersonalInformationDao
-
findIdsWithAssociatedUser
public @NonNull List<Long> 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
public void remove(com.atlassian.core.bean.EntityObject object)
Description copied from interface:ObjectDaoInternal
Remove object from persistence.- Specified by:
remove
in interfaceObjectDao
- Specified by:
remove
in interfaceObjectDaoInternal<PersonalInformation>
- Overrides:
remove
in classDelegatingObjectDaoInternal<PersonalInformation>
-
removeEntity
public void removeEntity(PersonalInformation objectToRemove)
Description copied from interface:ObjectDaoInternal
Remove object from persistence.- Specified by:
removeEntity
in interfaceObjectDaoInternal<PersonalInformation>
- Overrides:
removeEntity
in classDelegatingObjectDaoInternal<PersonalInformation>
-
-