Package africa.absa.inception.security
Interface UserDirectorySummaryRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<UserDirectorySummary,,UUID> org.springframework.data.jpa.repository.JpaRepository<UserDirectorySummary,,UUID> org.springframework.data.repository.PagingAndSortingRepository<UserDirectorySummary,,UUID> org.springframework.data.repository.query.QueryByExampleExecutor<UserDirectorySummary>,org.springframework.data.repository.Repository<UserDirectorySummary,UUID>
public interface UserDirectorySummaryRepository
extends org.springframework.data.jpa.repository.JpaRepository<UserDirectorySummary,UUID>
The UserDirectorySummaryRepository interface declares the repository for the
UserDirectorySummary domain type.
- Author:
- Marcus Portmann
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<UserDirectorySummary>findAll(org.springframework.data.domain.Pageable pageable) Retrieve the user directory summaries.findAllByTenantId(UUID tenantId) Retrieve the user directory summaries for the tenant.org.springframework.data.domain.Page<UserDirectorySummary>findFiltered(String filter, org.springframework.data.domain.Pageable pageable) Retrieve the filtered user directory summaries.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findOne
-
Method Details
-
findAll
org.springframework.data.domain.Page<UserDirectorySummary> findAll(org.springframework.data.domain.Pageable pageable) Retrieve the user directory summaries.- Specified by:
findAllin interfaceorg.springframework.data.repository.PagingAndSortingRepository<UserDirectorySummary,UUID> - Parameters:
pageable- the pagination information- Returns:
- the user directory summaries
-
findAllByTenantId
@Query("select uds from UserDirectorySummary uds join uds.tenants as o where o.id = :tenantId") List<UserDirectorySummary> findAllByTenantId(@Param("tenantId") UUID tenantId) Retrieve the user directory summaries for the tenant.- Parameters:
tenantId- the ID for the tenant- Returns:
- the user directory summaries for the tenant
-
findFiltered
@Query("select uds from UserDirectorySummary uds where (lower(uds.name) like lower(:filter))") org.springframework.data.domain.Page<UserDirectorySummary> findFiltered(String filter, org.springframework.data.domain.Pageable pageable) Retrieve the filtered user directory summaries.- Parameters:
filter- the filter to apply to the user directory summariespageable- the pagination information- Returns:
- the filtered user directory summaries
-