public class ReadThroughCachingPersonalInformationDao extends DelegatingObjectDaoInternal<PersonalInformation> implements PersonalInformationDaoInternal, PersonalInformationBulkDao
Modifier and Type | Method and Description |
---|---|
Collection<PersonalInformation> |
bulkFetchPersonalInformation(Collection<com.atlassian.sal.api.user.UserKey> userKeys)
Bulk-fetch the
PersonalInformation entities for the given collection of UserKey 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.
|
findAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, getPersistentClass, refresh, refreshEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, getPersistentClass, refresh, refreshEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity
public static ReadThroughCachingPersonalInformationDao create(PersonalInformationDaoInternal delegateDao, com.atlassian.cache.CacheFactory cacheFactory)
public PersonalInformation getByUser(ConfluenceUser user)
PersonalInformationDao
getByUser
in interface PersonalInformationDao
public List<PersonalInformation> getAllByUser(ConfluenceUser user)
PersonalInformationDao
getAllByUser
in interface PersonalInformationDao
public PersonalInformation getById(long id)
PersonalInformationDao
getById
in interface PersonalInformationDao
public @NonNull List<Long> findIdsWithAssociatedUser()
findIdsWithAssociatedUser
in interface PersonalInformationDao
public Collection<PersonalInformation> bulkFetchPersonalInformation(Collection<com.atlassian.sal.api.user.UserKey> userKeys)
PersonalInformationBulkDao
PersonalInformation
entities for the given collection of UserKey
s.bulkFetchPersonalInformation
in interface PersonalInformationBulkDao
PersonalInformation
object for each userpublic void remove(com.atlassian.core.bean.EntityObject object)
ObjectDaoInternal
remove
in interface ObjectDao
remove
in interface ObjectDaoInternal<PersonalInformation>
remove
in class DelegatingObjectDaoInternal<PersonalInformation>
public void removeEntity(PersonalInformation objectToRemove)
ObjectDaoInternal
removeEntity
in interface ObjectDaoInternal<PersonalInformation>
removeEntity
in class DelegatingObjectDaoInternal<PersonalInformation>
Copyright © 2003–2020 Atlassian. All rights reserved.