Interface JpaOAuth2AuthorizedClientEntityRepository<D extends JpaOAuth2AuthorizedClientEntity,I extends JpaOAuth2AuthorizedClientEntityId>
- Type Parameters:
D
- a type extendingJpaOAuth2AuthorizedClientEntity
I
- a type extendingJpaOAuth2AuthorizedClientEntityId
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<D,
,I> CustomizedOAuth2AuthorizedClientEntityRepository<D>
,com.broadleafcommerce.common.extension.DomainTypeAware
,OAuth2AuthorizedClientEntityRepository<D,
,I> org.springframework.data.repository.Repository<D,
I>
@Repository
@Narrow(com.broadleafcommerce.data.tracking.jpa.filtering.narrow.JpaNarrowExecutor.class)
public interface JpaOAuth2AuthorizedClientEntityRepository<D extends JpaOAuth2AuthorizedClientEntity,I extends JpaOAuth2AuthorizedClientEntityId>
extends OAuth2AuthorizedClientEntityRepository<D,I>
JPA-specific implementation of
OAuth2AuthorizedClientEntityRepository
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteByClientRegistrationIdAndPrincipalNameAndTenantId
(String clientRegistrationId, String principalName, String tenantId) Override to addTransactional
.default Class<?>
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
Methods inherited from interface com.broadleafcommerce.auth.client.repository.CustomizedOAuth2AuthorizedClientEntityRepository
cleanupOutdatedEntities, insert
Methods inherited from interface com.broadleafcommerce.auth.client.repository.OAuth2AuthorizedClientEntityRepository
findByClientRegistrationIdAndPrincipalNameAndTenantId
-
Method Details
-
getDomainType
- Specified by:
getDomainType
in interfacecom.broadleafcommerce.common.extension.DomainTypeAware
-
deleteByClientRegistrationIdAndPrincipalNameAndTenantId
@Transactional void deleteByClientRegistrationIdAndPrincipalNameAndTenantId(String clientRegistrationId, String principalName, String tenantId) Override to addTransactional
.- Specified by:
deleteByClientRegistrationIdAndPrincipalNameAndTenantId
in interfaceOAuth2AuthorizedClientEntityRepository<D extends JpaOAuth2AuthorizedClientEntity,
I extends JpaOAuth2AuthorizedClientEntityId> - Parameters:
clientRegistrationId
- theClientRegistration.getRegistrationId()
to filter byprincipalName
- thePrincipal.getName()
to filter bytenantId
- the tenant ID to filter by
-