Class UserDaoImpl
java.lang.Object
com.peterphi.std.guice.hibernate.dao.HibernateDao<UserEntity,Integer>
com.peterphi.usermanager.db.dao.hibernate.UserDaoImpl
- All Implemented Interfaces:
Dao<UserEntity,
Integer>
-
Field Summary
Fields inherited from class com.peterphi.std.guice.hibernate.dao.HibernateDao
clazz, isLargeTable, searchExecutor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changePassword
(int id, String newPassword) changeProfile
(int id, String name, String email, String dateFormat, String timeZone) void
getUserByEmail
(String email) boolean
isUserLocal
(String email) loginByAccessKey
(String key) int
int
registerRemote
(String username, String fullName) void
rotateUserAccessKey
(int id) Rotate the primary access key -> secondary access key, dropping the old secondary access key and generating a new primary access keyboolean
userExists
(String email) Methods inherited from class com.peterphi.std.guice.hibernate.dao.HibernateDao
count, createCriteria, createCriteriaQuery, createCriteriaQuery, createQueryBuilder, createReadQuery, createWriteQuery, delete, deleteById, find, find, find, findByUriQuery, findIds, findIdsByUriQuery, getAll, getById, getByIds, getByUniqueProperty, getCriteriaBuilder, getEntityType, getIdList, getIdList, getIdList, getIds, getList, getList, getList, getListById, getListById, getQEntity, getReference, getSession, getSessionFactory, getWriteSession, idProperty, merge, save, saveOrUpdate, setTypeLiteral, uniqueResult, uniqueResult, uniqueResult, update
-
Field Details
-
allowRemoteAccountsToUseSessionReconnect
@Inject public boolean allowRemoteAccountsToUseSessionReconnect
-
-
Constructor Details
-
UserDaoImpl
public UserDaoImpl()
-
-
Method Details
-
login
-
rotateUserAccessKey
public void rotateUserAccessKey(int id) Rotate the primary access key -> secondary access key, dropping the old secondary access key and generating a new primary access key- Parameters:
id
-
-
isUserLocal
-
getUserByEmail
-
changePassword
-
register
-
registerRemote
-
userExists
-
loginBySessionReconnectKey
-
loginByAccessKey
-
changeSessionReconnectKey
-
changeProfile
public UserEntity changeProfile(int id, String name, String email, String dateFormat, String timeZone)
-