Interface TenantRepository<D>
- Type Parameters:
D- General domain type
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<D,,String> com.broadleafcommerce.common.extension.DomainTypeAware,com.broadleafcommerce.data.tracking.core.service.MappableRsqlFilterExecutor<D>,com.broadleafcommerce.common.extension.data.PagingAndSortingRepository<D,,String> org.springframework.data.repository.Repository<D,String>
- All Known Subinterfaces:
JpaTenantRepository<D>
@NoRepositoryBean
public interface TenantRepository<D>
extends com.broadleafcommerce.common.extension.data.PagingAndSortingRepository<D,String>, com.broadleafcommerce.data.tracking.core.service.MappableRsqlFilterExecutor<D>
Repository agnostic Tenant interface. Generally extended by another interface that is declared
against a specific repository domain type.
-
Method Summary
Modifier and TypeMethodDescriptionfindByIdentifierValueAndIdentifierType(String identifierValue, String identifierType) Read the tenant by itsTenant.getIdentifierValue()andTenant.getIdentifierValue().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.common.extension.DomainTypeAware
getDomainTypeMethods inherited from interface com.broadleafcommerce.data.tracking.core.service.MappableRsqlFilterExecutor
exists, findAll, findAll, findAll, findAllMethods inherited from interface com.broadleafcommerce.common.extension.data.PagingAndSortingRepository
findAll, findAll
-
Method Details
-
findByIdentifierValueAndIdentifierType
Read the tenant by itsTenant.getIdentifierValue()andTenant.getIdentifierValue().- Parameters:
identifierValue- theTenant.getIdentifierValue()identifierType- theTenant.getIdentifierType()- Returns:
- the tenant with the matching
Tenant.getIdentifierValue()
-