Oauth2AuthorizationRepository
OAuth2 授权仓储接口
定义OAuth2 授权数据的查询与持久化操作
Author
lishangbu
Since
2025/9/14
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun findAll(fetcher: Fetcher<OauthAuthorization>?, block: SortDsl<OauthAuthorization>.() -> Unit): List<OauthAuthorization>
abstract fun findAll(pageable: Pageable, fetcher: Fetcher<OauthAuthorization>?): Page<OauthAuthorization>
abstract fun findAll(pageIndex: Int, pageSize: Int, fetcher: Fetcher<OauthAuthorization>?, block: SortDsl<OauthAuthorization>.() -> Unit?): Page<OauthAuthorization>
abstract fun findAll(pageIndex: Int, pageSize: Int, fetcher: Fetcher<OauthAuthorization>?, sort: Sort): Page<OauthAuthorization>
Link copied to clipboard
Link copied to clipboard
根据访问令牌查询认证信息
Link copied to clipboard
根据授权码查询认证信息
Link copied to clipboard
根据设备码查询认证信息
Link copied to clipboard
Link copied to clipboard
@AliasFor(value = "findAllById")
Link copied to clipboard
根据 OIDC ID Token 查询认证信息
Link copied to clipboard
根据刷新令牌查询认证信息
Link copied to clipboard
根据 state 查询认证信息
Link copied to clipboard
根据用户码查询认证信息
Link copied to clipboard
abstract fun findMapByIds(ids: Iterable<String>, fetcher: Fetcher<OauthAuthorization>?): Map<String, OauthAuthorization>
Link copied to clipboard
Link copied to clipboard
open fun insert(entity: OauthAuthorization, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): OauthAuthorization
open fun insert(input: Input<OauthAuthorization>, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): OauthAuthorization
Link copied to clipboard
open fun insertIfAbsent(entity: OauthAuthorization, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): OauthAuthorization
open fun insertIfAbsent(input: Input<OauthAuthorization>, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): OauthAuthorization
Link copied to clipboard
根据多种 token 字段联合查询认证信息,支持 state、authorizationCode、accessToken、refreshToken、idToken、userCode、deviceCode 任意一种 token。 查询语句为多行文本块,便于维护和阅读。
Link copied to clipboard
open fun merge(entity: OauthAuthorization, block: KSaveCommandPartialDsl.() -> Unit?): OauthAuthorization
open fun merge(input: Input<OauthAuthorization>, block: KSaveCommandPartialDsl.() -> Unit?): OauthAuthorization
Link copied to clipboard
open fun save(input: Input<OauthAuthorization>, block: KSaveCommandDsl.() -> Unit?): OauthAuthorization
open fun <V : View<OauthAuthorization>> save(entity: OauthAuthorization, viewType: KClass<V>, block: KSaveCommandDsl.() -> Unit?): V
open fun save(entity: OauthAuthorization, fetcher: Fetcher<OauthAuthorization>, block: KSaveCommandDsl.() -> Unit?): OauthAuthorization
open fun <V : View<OauthAuthorization>> save(input: Input<OauthAuthorization>, viewType: KClass<V>, block: KSaveCommandDsl.() -> Unit?): V
open fun save(input: Input<OauthAuthorization>, fetcher: Fetcher<OauthAuthorization>, block: KSaveCommandDsl.() -> Unit?): OauthAuthorization
open fun save(entity: OauthAuthorization, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): OauthAuthorization
open fun save(input: Input<OauthAuthorization>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): OauthAuthorization
open fun <V : View<OauthAuthorization>> save(entity: OauthAuthorization, mode: SaveMode, associatedMode: AssociatedSaveMode, viewType: KClass<V>, block: KSaveCommandPartialDsl.() -> Unit?): V
open fun save(entity: OauthAuthorization, mode: SaveMode, associatedMode: AssociatedSaveMode, fetcher: Fetcher<OauthAuthorization>, block: KSaveCommandPartialDsl.() -> Unit?): OauthAuthorization
open fun <V : View<OauthAuthorization>> save(input: Input<OauthAuthorization>, mode: SaveMode, associatedMode: AssociatedSaveMode, viewType: KClass<V>, block: KSaveCommandPartialDsl.() -> Unit?): V
open fun save(input: Input<OauthAuthorization>, mode: SaveMode, associatedMode: AssociatedSaveMode, fetcher: Fetcher<OauthAuthorization>, block: KSaveCommandPartialDsl.() -> Unit?): OauthAuthorization
Link copied to clipboard
open fun saveCommand(entity: OauthAuthorization, block: KSaveCommandDsl.() -> Unit?): KSimpleEntitySaveCommand<OauthAuthorization>
open fun saveCommand(input: Input<OauthAuthorization>, block: KSaveCommandDsl.() -> Unit?): KSimpleEntitySaveCommand<OauthAuthorization>
open fun saveCommand(entity: OauthAuthorization, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): KSimpleEntitySaveCommand<OauthAuthorization>
open fun saveCommand(input: Input<OauthAuthorization>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): KSimpleEntitySaveCommand<OauthAuthorization>
Link copied to clipboard
open fun saveEntities(entities: Iterable<OauthAuthorization>, block: KSaveCommandDsl.() -> Unit?): List<OauthAuthorization>
open fun <V : View<OauthAuthorization>> saveEntities(entities: Iterable<OauthAuthorization>, viewType: KClass<V>, block: KSaveCommandDsl.() -> Unit?): List<V>
open fun saveEntities(entities: Iterable<OauthAuthorization>, fetcher: Fetcher<OauthAuthorization>, block: KSaveCommandDsl.() -> Unit?): List<OauthAuthorization>
open fun saveEntities(entities: Iterable<OauthAuthorization>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): List<OauthAuthorization>
open fun <V : View<OauthAuthorization>> saveEntities(entities: Iterable<OauthAuthorization>, mode: SaveMode, associatedMode: AssociatedSaveMode, viewType: KClass<V>, block: KSaveCommandPartialDsl.() -> Unit?): List<V>
open fun saveEntities(entities: Iterable<OauthAuthorization>, mode: SaveMode, associatedMode: AssociatedSaveMode, fetcher: Fetcher<OauthAuthorization>, block: KSaveCommandPartialDsl.() -> Unit?): List<OauthAuthorization>
Link copied to clipboard
open fun saveEntitiesCommand(entities: Iterable<OauthAuthorization>, block: KSaveCommandDsl.() -> Unit?): KBatchEntitySaveCommand<OauthAuthorization>
open fun saveEntitiesCommand(entities: Iterable<OauthAuthorization>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): KBatchEntitySaveCommand<OauthAuthorization>
Link copied to clipboard
open fun saveInputs(inputs: Iterable<Input<OauthAuthorization>>, block: KSaveCommandDsl.() -> Unit?): List<OauthAuthorization>
open fun <V : View<OauthAuthorization>> saveInputs(inputs: Iterable<Input<OauthAuthorization>>, viewType: KClass<V>, block: KSaveCommandDsl.() -> Unit?): List<V>
open fun saveInputs(inputs: Iterable<Input<OauthAuthorization>>, fetcher: Fetcher<OauthAuthorization>, block: KSaveCommandDsl.() -> Unit?): List<OauthAuthorization>
open fun saveInputs(inputs: Iterable<Input<OauthAuthorization>>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): List<OauthAuthorization>
open fun <V : View<OauthAuthorization>> saveInputs(inputs: Iterable<Input<OauthAuthorization>>, mode: SaveMode, associatedMode: AssociatedSaveMode, viewType: KClass<V>, block: KSaveCommandPartialDsl.() -> Unit?): List<V>
open fun saveInputs(inputs: Iterable<Input<OauthAuthorization>>, mode: SaveMode, associatedMode: AssociatedSaveMode, fetcher: Fetcher<OauthAuthorization>, block: KSaveCommandPartialDsl.() -> Unit?): List<OauthAuthorization>
Link copied to clipboard
open fun saveInputsCommand(input: Iterable<Input<OauthAuthorization>>, block: KSaveCommandDsl.() -> Unit?): KBatchEntitySaveCommand<OauthAuthorization>
open fun saveInputsCommand(inputs: Iterable<Input<OauthAuthorization>>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): KBatchEntitySaveCommand<OauthAuthorization>
Link copied to clipboard
open fun update(entity: OauthAuthorization, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): OauthAuthorization
open fun update(input: Input<OauthAuthorization>, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): OauthAuthorization
Link copied to clipboard
abstract fun <V : View<OauthAuthorization>> viewer(viewType: KClass<V>): KRepository.Viewer<OauthAuthorization, String, V>