Interface HerodotusAuthorizationConsentRepository

All Superinterfaces:
cn.herodotus.engine.data.core.repository.BaseRepository<HerodotusAuthorizationConsent,HerodotusAuthorizationConsentId>, org.springframework.data.repository.CrudRepository<HerodotusAuthorizationConsent,HerodotusAuthorizationConsentId>, org.springframework.data.jpa.repository.JpaRepository<HerodotusAuthorizationConsent,HerodotusAuthorizationConsentId>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<HerodotusAuthorizationConsent>, org.springframework.data.repository.ListCrudRepository<HerodotusAuthorizationConsent,HerodotusAuthorizationConsentId>, org.springframework.data.repository.ListPagingAndSortingRepository<HerodotusAuthorizationConsent,HerodotusAuthorizationConsentId>, org.springframework.data.repository.PagingAndSortingRepository<HerodotusAuthorizationConsent,HerodotusAuthorizationConsentId>, org.springframework.data.repository.query.QueryByExampleExecutor<HerodotusAuthorizationConsent>, org.springframework.data.repository.Repository<HerodotusAuthorizationConsent,HerodotusAuthorizationConsentId>

public interface HerodotusAuthorizationConsentRepository extends cn.herodotus.engine.data.core.repository.BaseRepository<HerodotusAuthorizationConsent,HerodotusAuthorizationConsentId>

Description: HerodotusAuthorizationConsentRepository

Author:
: gengwei.zheng
Date:
: 2022/2/25 20:54
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deleteByRegisteredClientIdAndPrincipalName(String registeredClientId, String principalName)
    根据 client id 和 principalName 删除 OAuth2 确认信息
    findByRegisteredClientIdAndPrincipalName(String registeredClientId, String principalName)
    根据 client id 和 principalName 查询 OAuth2 确认信息

    Methods inherited from interface cn.herodotus.engine.data.core.repository.BaseRepository

    count, count, deleteById, findAll, findAll, findAll, findAll, findAll, findAll, findById, findOne

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    delete, deleteAll, deleteAll, deleteAllById, existsById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    delete, exists, findBy

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByRegisteredClientIdAndPrincipalName

      @QueryHints() Optional<HerodotusAuthorizationConsent> findByRegisteredClientIdAndPrincipalName(String registeredClientId, String principalName)
      根据 client id 和 principalName 查询 OAuth2 确认信息
      Parameters:
      registeredClientId - 注册OAuth2客户端ID
      principalName - 用户名
      Returns:
      OAuth2 认证确认信息 HerodotusAuthorizationConsent
    • deleteByRegisteredClientIdAndPrincipalName

      void deleteByRegisteredClientIdAndPrincipalName(String registeredClientId, String principalName)
      根据 client id 和 principalName 删除 OAuth2 确认信息
      Parameters:
      registeredClientId - 注册OAuth2客户端ID
      principalName - 用户名