Interface JpaOAuth2AuthorizedClientEntityRepository<D extends JpaOAuth2AuthorizedClientEntity,I extends JpaOAuth2AuthorizedClientEntityId>
- Type Parameters:
D- a type extendingJpaOAuth2AuthorizedClientEntityI- 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 TypeMethodDescriptionvoiddeleteByClientRegistrationIdAndPrincipalNameAndTenantId(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, saveAllMethods inherited from interface com.broadleafcommerce.auth.client.repository.CustomizedOAuth2AuthorizedClientEntityRepository
cleanupOutdatedEntities, insertMethods inherited from interface com.broadleafcommerce.auth.client.repository.OAuth2AuthorizedClientEntityRepository
findByClientRegistrationIdAndPrincipalNameAndTenantId
-
Method Details
-
getDomainType
- Specified by:
getDomainTypein interfacecom.broadleafcommerce.common.extension.DomainTypeAware
-
deleteByClientRegistrationIdAndPrincipalNameAndTenantId
@Transactional void deleteByClientRegistrationIdAndPrincipalNameAndTenantId(String clientRegistrationId, String principalName, String tenantId) Override to addTransactional.- Specified by:
deleteByClientRegistrationIdAndPrincipalNameAndTenantIdin 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
-