P - The type of OAuthClientRegistrationWrapper for the specific implementationpublic interface OAuthClientRegistrationPersistenceService<P extends OAuthClientRegistrationWrapper>
OAuthClientRegistrationWrapper.| Modifier and Type | Method and Description |
|---|---|
P |
create(P clientRegistration)
Create a new client registration
|
void |
delete(P clientRegistration)
Delete a client registration
|
void |
deleteById(String id)
Delete a client registration
|
boolean |
existsById(String id)
Check if a client registration exists by its system ID
|
org.springframework.data.domain.Page<P> |
findAll(org.springframework.data.domain.Pageable pageable)
Find all client registrations.
|
org.springframework.data.domain.Page<P> |
findAllByTenantId(String tenantId,
org.springframework.data.domain.Pageable pageable)
Find all
OAuthClientRegistrationWrapper objects for the current tenant |
Optional<P> |
findById(String id)
Find a client registration by its system ID
|
Optional<P> |
findById(String id,
String tenantId)
Find a client registration by its system ID and tenant ID.
|
Optional<P> |
findByRegistrationId(String registrationId,
String tenantId)
Find a
OAuthClientRegistrationWrapper by registration id and tenant id |
P |
replace(String id,
P clientRegistration)
Replace a client registration
|
P |
save(P clientRegistration)
Save the
OAuthClientRegistrationWrapper to the database |
org.springframework.data.domain.Page<P> findAll(@Nullable org.springframework.data.domain.Pageable pageable)
pageable - the pageableOptional<P> findById(String id)
id - The client registration system IDOptional<P> findById(String id, String tenantId)
id - The client registration system IDtenantId - ID of the owning tenant.boolean existsById(String id)
id - The client registration system IDP replace(String id, P clientRegistration)
id - The id of the server to replaceclientRegistration - The replacementP create(P clientRegistration)
clientRegistration - The client registration to createvoid delete(P clientRegistration)
clientRegistration - The client registration to delete.void deleteById(String id)
id - The id of the client registration to delete.Optional<P> findByRegistrationId(String registrationId, String tenantId)
OAuthClientRegistrationWrapper by registration id and tenant idregistrationId - The OAuthClientRegistrationWrapper.getRegistrationId() to
filter bytenantId - The tenant ID to filter byP save(P clientRegistration)
OAuthClientRegistrationWrapper to the databaseclientRegistration - Instance to persistorg.springframework.data.domain.Page<P> findAllByTenantId(String tenantId, @Nullable org.springframework.data.domain.Pageable pageable)
OAuthClientRegistrationWrapper objects for the current tenanttenantId - the tenant IDpageable - the pageableCopyright © 2021. All rights reserved.