@Repository public class UserDaoImpl extends CdmEntityDaoBase<User> implements IUserDao
defaultBeanInitializer, flushAfterNo, LEFTOUTER_OPS, type
INCLUDE_UNPUBLISHED, NO_UNPUBLISHED
Constructor and Description |
---|
UserDaoImpl() |
Modifier and Type | Method and Description |
---|---|
long |
countByUsername(java.lang.String queryString,
MatchMode matchmode,
java.util.List<org.hibernate.criterion.Criterion> criterion)
Return a count of users matching the given query string in the username, optionally filtered by class, optionally with a particular MatchMode
|
java.util.List<User> |
findByUsername(java.lang.String queryString,
MatchMode matchmode,
java.util.List<org.hibernate.criterion.Criterion> criterion,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Return a List of users matching the given query string, optionally filtered by class, optionally with a particular MatchMode
|
User |
findUserByUsername(java.lang.String username)
Among other purposes this method will be used while
authenticating a user.
|
addExample, addGroups, clear, count, count, count, count, countByParam, countByParamWithRestrictions, countGroups, createCriteria, delete, entityType, exists, findById, findByParam, findByParamWithRestrictions, findByUuid, findByUuid, findByUuidWithoutFlush, getAuditReader, getCriteria, getSession, getType, group, list, list, list, list, list, list, list, list, list, list, load, load, load, load, loadList, lock, makeAuditQuery, merge, merge, refresh, refresh, replace, save, saveAll, saveCdmObj, saveOrUpdate, saveOrUpdateAll, setDefaultBeanInitializer, setPagingParameter, setPagingParameter, update
addCriteria, addFieldPredicate, addLimitAndStart, addLimitAndStart, addLimitAndStart, addOrder, addOrder, addOrder, addPageSizeAndNumber, addPageSizeAndNumber, addPageSizeAndNumber, addPageSizeAndNumber, flush, getSessionFactory, orderByClause, setSessionFactory, splitCollection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, count, count, count, count, countByParam, countByParamWithRestrictions, delete, exists, findById, findByParam, findByParamWithRestrictions, findByUuid, findByUuidWithoutFlush, flush, getSession, getType, group, list, list, list, list, list, list, list, list, list, load, load, load, loadList, lock, merge, merge, refresh, refresh, replace, save, saveAll, saveOrUpdate, saveOrUpdateAll, update
public User findUserByUsername(java.lang.String username)
IUserDao
findUserByUsername
in interface IUserDao
public long countByUsername(java.lang.String queryString, MatchMode matchmode, java.util.List<org.hibernate.criterion.Criterion> criterion)
IUserDao
countByUsername
in interface IUserDao
queryString
- the query string to filter bymatchmode
- use a particular type of matching (can be null - defaults to exact matching)criterion
- extra restrictions to applyIIdentifiableDao#countByTitle(Class, String, MatchMode, List)}
public java.util.List<User> findByUsername(java.lang.String queryString, MatchMode matchmode, java.util.List<org.hibernate.criterion.Criterion> criterion, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
IUserDao
findByUsername
in interface IUserDao
queryString
- the query string to filter bymatchmode
- use a particular type of matching (can be null - defaults to exact matching)criterion
- extra restrictions to applypageSize
- The maximum number of rights returned (can be null for all rights)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)orderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCachepropertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
IIdentifiableDao#findByTitle(Class, String, MatchMode, List, Integer, Integer, List, List)}
Copyright © 2007-2019 EDIT. All Rights Reserved.