Oauth2AuthorizationRepository

OAuth2 授权仓储接口

定义OAuth2 授权数据的查询与持久化操作

Author

lishangbu

Since

2025/9/14

Properties

Link copied to clipboard
Link copied to clipboard
abstract val sql: KSqlClient
Link copied to clipboard
abstract val type: ImmutableType

Functions

Link copied to clipboard
abstract fun count(): Long
Link copied to clipboard
open fun delete(entity: OauthAuthorization)
abstract fun delete(entity: OauthAuthorization, mode: DeleteMode): Int
Link copied to clipboard
abstract fun deleteAll()
abstract fun deleteAll(entities: Iterable<OauthAuthorization>, mode: DeleteMode): Int
Link copied to clipboard
@AliasFor(value = "deleteByIds")
open fun deleteAllById(ids: Iterable<String>)
Link copied to clipboard
open fun deleteById(id: String)
abstract fun deleteById(id: String, mode: DeleteMode): Int
Link copied to clipboard
@AliasFor(value = "deleteAllById")
open fun deleteByIds(ids: Iterable<String>)
abstract fun deleteByIds(ids: Iterable<String>, mode: DeleteMode): Int
Link copied to clipboard
open fun existsById(id: String): Boolean
Link copied to clipboard
abstract fun findAll(fetcher: Fetcher<OauthAuthorization>?): List<OauthAuthorization>
abstract override fun findAll(pageable: Pageable): Page<OauthAuthorization>
open override fun findAll(sort: Sort): List<OauthAuthorization>
abstract fun findAll(fetcher: Fetcher<OauthAuthorization>?, block: SortDsl<OauthAuthorization>.() -> Unit): List<OauthAuthorization>
abstract fun findAll(fetcher: Fetcher<OauthAuthorization>?, sort: Sort): 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
@AliasFor(value = "findByIds")
open fun findAllById(ids: Iterable<String>): List<OauthAuthorization>
Link copied to clipboard
abstract fun findByAccessTokenValue(accessToken: String): OauthAuthorization?

根据访问令牌查询认证信息

Link copied to clipboard
abstract fun findByAuthorizationCodeValue(authorizationCode: String): OauthAuthorization?

根据授权码查询认证信息

Link copied to clipboard
abstract fun findByDeviceCodeValue(deviceCode: String): OauthAuthorization?

根据设备码查询认证信息

Link copied to clipboard
Link copied to clipboard
@AliasFor(value = "findAllById")
abstract fun findByIds(ids: Iterable<String>, fetcher: Fetcher<OauthAuthorization>?): List<OauthAuthorization>
Link copied to clipboard

根据 OIDC ID Token 查询认证信息

Link copied to clipboard
abstract fun findByRefreshTokenValue(refreshToken: String): OauthAuthorization?

根据刷新令牌查询认证信息

Link copied to clipboard
abstract fun findByState(state: String): OauthAuthorization?

根据 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
abstract fun findNullable(id: String, fetcher: Fetcher<OauthAuthorization>?): OauthAuthorization?
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 <S : OauthAuthorization> save(entity: S): S
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 <S : OauthAuthorization> saveAll(entity: Iterable<S>): List<S>
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>