Interface AuthorizedClientRepository<D>
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<D,
,String> com.broadleafcommerce.common.extension.DomainTypeAware
,org.springframework.data.repository.Repository<D,
String>
- All Known Subinterfaces:
JpaAuthorizedClientRepository<D>
@NoRepositoryBean
public interface AuthorizedClientRepository<D>
extends org.springframework.data.repository.CrudRepository<D,String>, com.broadleafcommerce.common.extension.DomainTypeAware
- Author:
- Nick Crum (ncrum)
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<D>
findAll
(org.springframework.data.domain.Pageable pageable) Find all authorized clients.org.springframework.data.domain.Page<D>
findAllByServerId
(String serverId, org.springframework.data.domain.Pageable pageable) Find all authorized clients by server ID.findByApplicationId
(String applicationId) Finds an authorized client for a customer-facing application.findByApplicationIdAndServerTenantId
(String applicationId, String tenantId) Finds an authorized client for a customer-facing application within a tenant.findByClientId
(String clientId) Find an authorized client by client ID.findByIsAdminTrueAndServerTenantId
(String tenantId) Finds an authorized client for a tenant admin.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.common.extension.DomainTypeAware
getDomainType
-
Method Details
-
findAll
Find all authorized clients.- Parameters:
pageable
- the pageable- Returns:
- a page of authorized clients
-
findAllByServerId
org.springframework.data.domain.Page<D> findAllByServerId(String serverId, org.springframework.data.domain.Pageable pageable) Find all authorized clients by server ID.- Parameters:
serverId
- the server IDpageable
- the pageable- Returns:
- a page of authorized clients
-
findByClientId
Find an authorized client by client ID.- Parameters:
clientId
- the client ID of the authorized client- Returns:
- an optional of authorized client
-
findByIsAdminTrueAndServerTenantId
Finds an authorized client for a tenant admin.- Parameters:
tenantId
- the tenant ID- Returns:
- an optional of authorized client
-
findByApplicationIdAndServerTenantId
Finds an authorized client for a customer-facing application within a tenant.- Parameters:
applicationId
- the application IDtenantId
- the tenant ID- Returns:
- an optional of authorized client
-
findByApplicationId
Finds an authorized client for a customer-facing application.- Parameters:
applicationId
- the application ID- Returns:
- an optional of authorized client
-