@ParametersAreNonnullByDefault public class HibernatePersonalInformationDao extends ConfluenceHibernateObjectDao implements PersonalInformationDao, PersonalInformationBulkDao
HibernateObjectDao.Cacheability
cacheFactory, confluenceUserDao
NON_CACHEABLE
Constructor and Description |
---|
HibernatePersonalInformationDao() |
Modifier and Type | Method and Description |
---|---|
Collection<PersonalInformation> |
bulkFetchPersonalInformation(Collection<com.atlassian.sal.api.user.UserKey> userKeys)
Bulk-fetches all PersonalInformation entities for the given UserKeys.
|
List<Long> |
findIdsWithAssociatedUser() |
List<PersonalInformation> |
getAllByUser(ConfluenceUser user)
Workaround for duplicate personal information.
|
protected PersonalInformation |
getByClassId(long id)
Retrieve the object with a particular id from the database.
|
PersonalInformation |
getById(long id)
Returns the personal information object with the given ID.
|
PersonalInformation |
getByUser(ConfluenceUser user)
Fetches a personal information object for the specified user.
|
PersonalInformation |
getByUsername(String username)
Deprecated.
since 5.2. Use
getByUser(com.atlassian.confluence.user.ConfluenceUser) instead. |
Class<PersonalInformation> |
getPersistentClass() |
findAllSorted, findLatestVersionsCount, findLatestVersionsCount, findLatestVersionsIterator, findLatestVersionsIterator, findNamedQueryStringParams, findNamedQueryStringParams, save, setCacheFactory, setConfluenceUserDao, updateModificationData
applyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findByClassIds, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getCountResult, getHibernateTemplate, getSession, getSessionFactory, index, refresh, reIndex, remove, replicate, save, saveRaw, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, uniqueResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findAll, findAllSorted, findAllSorted, findByClassIds, refresh, remove, replicate, save, saveRaw
public PersonalInformation getByUser(@Nullable ConfluenceUser user)
PersonalInformationManager.getOrCreatePersonalInformation(User)
.getByUser
in interface PersonalInformationDao
public List<PersonalInformation> getAllByUser(@Nullable ConfluenceUser user)
PersonalInformationDao
getAllByUser
in interface PersonalInformationDao
@Deprecated public PersonalInformation getByUsername(String username)
getByUser(com.atlassian.confluence.user.ConfluenceUser)
instead.getByUsername
in interface PersonalInformationDao
public PersonalInformation getById(long id)
PersonalInformationDao
getById
in interface PersonalInformationDao
@Nonnull public List<Long> findIdsWithAssociatedUser()
findIdsWithAssociatedUser
in interface PersonalInformationDao
protected PersonalInformation getByClassId(long id)
HibernateObjectDao
getByClassId
in class HibernateObjectDao
id
- the id of the object to look uppublic Class<PersonalInformation> getPersistentClass()
getPersistentClass
in interface ObjectDao
public Collection<PersonalInformation> bulkFetchPersonalInformation(Collection<com.atlassian.sal.api.user.UserKey> userKeys)
bulkFetchPersonalInformation
in interface PersonalInformationBulkDao
PersonalInformation
object for each userCopyright © 2003–2017 Atlassian. All rights reserved.