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
FieldsFields inherited from class com.peterphi.std.guice.hibernate.dao.HibernateDao
clazz, isLargeTable, searchExecutor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangePassword(int id, String newPassword) changeProfile(int id, String name, String email, String dateFormat, String timeZone) voidgetUserByEmail(String email) booleanisUserLocal(String email) loginByAccessKey(String key) intintregisterRemote(String username, String fullName) voidrotateUserAccessKey(int id) Rotate the primary access key -> secondary access key, dropping the old secondary access key and generating a new primary access keybooleanuserExists(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)
-