Class JpaCustomizedOAuth2AuthorizedClientEntityRepository<D extends JpaOAuth2AuthorizedClientEntity>
java.lang.Object
com.broadleafcommerce.auth.client.provider.jpa.repository.JpaCustomizedOAuth2AuthorizedClientEntityRepository<D>
- All Implemented Interfaces:
CustomizedOAuth2AuthorizedClientEntityRepository<D>
public class JpaCustomizedOAuth2AuthorizedClientEntityRepository<D extends JpaOAuth2AuthorizedClientEntity>
extends Object
implements CustomizedOAuth2AuthorizedClientEntityRepository<D>
Default implementation of
CustomizedOAuth2AuthorizedClientEntityRepository for JPA.-
Constructor Summary
ConstructorsConstructorDescriptionJpaCustomizedOAuth2AuthorizedClientEntityRepository(com.broadleafcommerce.common.extension.TypeFactory typeFactory, org.springframework.transaction.support.TransactionTemplate template) -
Method Summary
Modifier and TypeMethodDescriptionDeletes outdated entities as specified byrequest.protected org.springframework.transaction.support.TransactionTemplateAttempts to newly insert the given entity into the datastore.
-
Constructor Details
-
JpaCustomizedOAuth2AuthorizedClientEntityRepository
public JpaCustomizedOAuth2AuthorizedClientEntityRepository(com.broadleafcommerce.common.extension.TypeFactory typeFactory, org.springframework.transaction.support.TransactionTemplate template)
-
-
Method Details
-
insert
Description copied from interface:CustomizedOAuth2AuthorizedClientEntityRepositoryAttempts to newly insert the given entity into the datastore.- Specified by:
insertin interfaceCustomizedOAuth2AuthorizedClientEntityRepository<D extends JpaOAuth2AuthorizedClientEntity>- Parameters:
entity- the entity to insert- Returns:
- the inserted entity, if successful
-
cleanupOutdatedEntities
public OAuth2AuthorizedClientEntityCleanupResponse cleanupOutdatedEntities(OAuth2AuthorizedClientEntityCleanupRequest request) Description copied from interface:CustomizedOAuth2AuthorizedClientEntityRepositoryDeletes outdated entities as specified byrequest.- Specified by:
cleanupOutdatedEntitiesin interfaceCustomizedOAuth2AuthorizedClientEntityRepository<D extends JpaOAuth2AuthorizedClientEntity>- Parameters:
request- details about which entities need to be deleted- Returns:
- a response describing the result of the execution
-
getTemplate
protected org.springframework.transaction.support.TransactionTemplate getTemplate()
-