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 thePersonalInformationentities for the given collection ofUserKeys.static ReadThroughCachingPersonalInformationDaocreate(PersonalInformationDaoInternal delegateDao, com.atlassian.cache.CacheFactory cacheFactory)@NonNull List<Long>findIdsWithAssociatedUser()List<PersonalInformation>getAllByUser(ConfluenceUser user)Workaround for duplicate personal information.PersonalInformationgetById(long id)Returns the personal information object with the given ID.PersonalInformationgetByUser(ConfluenceUser user)Fetches the personal information object for this user.voidremove(com.atlassian.core.bean.EntityObject object)Remove object from persistence.voidremoveEntity(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:PersonalInformationDaoFetches the personal information object for this user.- Specified by:
getByUserin interfacePersonalInformationDao
-
getAllByUser
public List<PersonalInformation> getAllByUser(ConfluenceUser user)
Description copied from interface:PersonalInformationDaoWorkaround for duplicate personal information. Remove when that's fixed.- Specified by:
getAllByUserin interfacePersonalInformationDao
-
getById
public PersonalInformation getById(long id)
Description copied from interface:PersonalInformationDaoReturns the personal information object with the given ID.- Specified by:
getByIdin interfacePersonalInformationDao
-
findIdsWithAssociatedUser
public @NonNull List<Long> findIdsWithAssociatedUser()
- Specified by:
findIdsWithAssociatedUserin 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:PersonalInformationBulkDaoBulk-fetch thePersonalInformationentities for the given collection ofUserKeys.- Specified by:
bulkFetchPersonalInformationin interfacePersonalInformationBulkDao- Returns:
- a collection containing at-most one
PersonalInformationobject for each user
-
remove
public void remove(com.atlassian.core.bean.EntityObject object)
Description copied from interface:ObjectDaoInternalRemove object from persistence.- Specified by:
removein interfaceObjectDao- Specified by:
removein interfaceObjectDaoInternal<PersonalInformation>- Overrides:
removein classDelegatingObjectDaoInternal<PersonalInformation>
-
removeEntity
public void removeEntity(PersonalInformation objectToRemove)
Description copied from interface:ObjectDaoInternalRemove object from persistence.- Specified by:
removeEntityin interfaceObjectDaoInternal<PersonalInformation>- Overrides:
removeEntityin classDelegatingObjectDaoInternal<PersonalInformation>
-
-