public interface IUserDao extends ICdmEntityDao<User>
Modifier and Type | Method and Description |
---|---|
long |
countByUsername(java.lang.String queryString,
MatchMode matchmode,
java.util.List<org.hibernate.criterion.Criterion> criteria)
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> criteria,
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.
|
clear, count, count, count, count, countByParam, countByParamWithRestrictions, delete, exists, findById, findByParam, 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
User findUserByUsername(java.lang.String username)
username
- java.util.List<User> findByUsername(java.lang.String queryString, MatchMode matchmode, java.util.List<org.hibernate.criterion.Criterion> criteria, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
queryString
- the query string to filter bymatchmode
- use a particular type of matching (can be null - defaults to exact matching)criteria
- 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)propertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
orderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCacheIIdentifiableDao#findByTitle(Class, String, MatchMode, List, Integer, Integer, List, List)}
long countByUsername(java.lang.String queryString, MatchMode matchmode, java.util.List<org.hibernate.criterion.Criterion> criteria)
clazz
- filter by class - can be null to include all instances of type TqueryString
- the query string to filter bymatchmode
- use a particular type of matching (can be null - defaults to exact matching)criteria
- extra restrictions to applyIIdentifiableDao#countByTitle(Class, String, MatchMode, List)}
Copyright © 2007-2020 EDIT. All Rights Reserved.