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 Type
    Method
    Description
    org.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.
    Finds an authorized client for a customer-facing application within a tenant.
    Find an authorized client by client ID.
    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

      org.springframework.data.domain.Page<D> findAll(org.springframework.data.domain.Pageable pageable)
      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 ID
      pageable - the pageable
      Returns:
      a page of authorized clients
    • findByClientId

      Optional<D> findByClientId(String clientId)
      Find an authorized client by client ID.
      Parameters:
      clientId - the client ID of the authorized client
      Returns:
      an optional of authorized client
    • findByIsAdminTrueAndServerTenantId

      Optional<D> findByIsAdminTrueAndServerTenantId(String tenantId)
      Finds an authorized client for a tenant admin.
      Parameters:
      tenantId - the tenant ID
      Returns:
      an optional of authorized client
    • findByApplicationIdAndServerTenantId

      Optional<D> findByApplicationIdAndServerTenantId(String applicationId, String tenantId)
      Finds an authorized client for a customer-facing application within a tenant.
      Parameters:
      applicationId - the application ID
      tenantId - the tenant ID
      Returns:
      an optional of authorized client
    • findByApplicationId

      Optional<D> findByApplicationId(String applicationId)
      Finds an authorized client for a customer-facing application.
      Parameters:
      applicationId - the application ID
      Returns:
      an optional of authorized client