Class OAuth2ApplicationService
java.lang.Object
cn.herodotus.engine.data.core.jpa.service.AbstractJpaService<OAuth2Application,String>
cn.herodotus.engine.logic.identity.service.OAuth2ApplicationService
- All Implemented Interfaces:
cn.herodotus.engine.data.core.jpa.service.BaseJpaReadableService<OAuth2Application,,String> cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<OAuth2Application,,String> cn.herodotus.engine.data.core.service.BasePageService<OAuth2Application,,String> cn.herodotus.engine.data.core.service.BaseService<OAuth2Application,String>
@Service
public class OAuth2ApplicationService
extends cn.herodotus.engine.data.core.jpa.service.AbstractJpaService<OAuth2Application,String>
Description: OAuth2ApplicationService
- Author:
- : gengwei.zheng
- Date:
- : 2022/3/1 18:06
-
Constructor Summary
ConstructorsConstructorDescriptionOAuth2ApplicationService(org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository, HerodotusRegisteredClientRepository herodotusRegisteredClientRepository, OAuth2ApplicationRepository applicationRepository) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteById(String id) findByClientId(String clientId) cn.herodotus.engine.data.core.jpa.repository.BaseJpaRepository<OAuth2Application,String> saveAndFlush(OAuth2Application entity) Methods inherited from class cn.herodotus.engine.data.core.jpa.service.AbstractJpaService
likeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cn.herodotus.engine.data.core.jpa.service.BaseJpaReadableService
count, count, exists, existsById, findAll, findAll, findAll, findAll, findAllById, findById, findByPage, findByPage, findByPage, findByPage, getReferenceByIdMethods inherited from interface cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService
delete, deleteAll, deleteAll, deleteAllById, deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, flush, save, saveAll, saveAllAndFlushMethods inherited from interface cn.herodotus.engine.data.core.service.BasePageService
findByPage, findByPage, findByPage
-
Constructor Details
-
OAuth2ApplicationService
public OAuth2ApplicationService(org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository, HerodotusRegisteredClientRepository herodotusRegisteredClientRepository, OAuth2ApplicationRepository applicationRepository)
-
-
Method Details
-
getRepository
public cn.herodotus.engine.data.core.jpa.repository.BaseJpaRepository<OAuth2Application,String> getRepository() -
saveAndFlush
-
deleteById
@Transactional(rollbackFor=cn.herodotus.engine.core.foundation.exception.transaction.TransactionalRollbackException.class) public void deleteById(String id) -
authorize
@Transactional(rollbackFor=cn.herodotus.engine.core.foundation.exception.transaction.TransactionalRollbackException.class) public OAuth2Application authorize(String applicationId, String[] scopeIds) -
findByClientId
-