Class OAuthSessionContextDaoImpl
java.lang.Object
com.peterphi.std.guice.hibernate.dao.HibernateDao<OAuthSessionContextEntity,Integer>
com.peterphi.usermanager.db.dao.hibernate.OAuthSessionContextDaoImpl
- All Implemented Interfaces:
Dao<OAuthSessionContextEntity,
Integer>
-
Field Summary
Fields inherited from class com.peterphi.std.guice.hibernate.dao.HibernateDao
clazz, isLargeTable, searchExecutor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(UserEntity user, OAuthServiceEntity service, String scope) Create a context (or reuse an existing active context)void
deleteByUser
(UserEntity user) 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
-
Constructor Details
-
OAuthSessionContextDaoImpl
public OAuthSessionContextDaoImpl()
-
-
Method Details
-
get
-
create
Create a context (or reuse an existing active context)- Parameters:
user
- the userservice
- the servicescope
- the access scope the service is granted- Returns:
-
deleteByUser
-