@CacheConfig(cacheNames="oauth2-client-config") public class SimpleClientConfigRepository extends Object implements OAuth2ClientConfigRepository
| 构造器和说明 |
|---|
SimpleClientConfigRepository(OAuth2ClientDao oAuth2ClientDao) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<OAuth2Client> |
getAll() |
OAuth2Client |
getClientById(String id) |
OAuth2Client |
getClientByOwnerId(String ownerId) |
OAuth2Client |
newClient() |
OAuth2Client |
remove(String id) |
OAuth2Client |
save(OAuth2Client oAuth2Client) |
public SimpleClientConfigRepository(OAuth2ClientDao oAuth2ClientDao)
@Cacheable(key="\'id:\'+#id") public OAuth2Client getClientById(String id)
getClientById 在接口中 OAuth2ClientConfigRepository@Cacheable(key="\'ownerId:\'+#ownerId") public OAuth2Client getClientByOwnerId(String ownerId)
@CachePut(key="\'ownerId:\'+#result.ownerId") @CachePut(key="\'id:\'+#result.id") public OAuth2Client save(OAuth2Client oAuth2Client)
save 在接口中 OAuth2ClientConfigRepository@CacheEvict(key="\'ownerId:\'+#result.ownerId",condition="#result!=null") @CacheEvict(key="\'id:\'+#result.id",condition="#result!=null") public OAuth2Client remove(String id)
remove 在接口中 OAuth2ClientConfigRepositorypublic OAuth2Client newClient()
newClient 在接口中 OAuth2ClientConfigRepositorypublic List<OAuth2Client> getAll()
getAll 在接口中 OAuth2ClientConfigRepositoryCopyright © 2019. All rights reserved.