Interface AdminUserRepository<D>
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<D,,String> CustomizedAdminUserRepository<D>,com.broadleafcommerce.common.extension.DomainTypeAware,com.broadleafcommerce.data.tracking.core.service.MappableRsqlFilterExecutor<D>,com.broadleafcommerce.common.messaging.notification.NotificationStateRepository,com.broadleafcommerce.common.extension.data.PagingAndSortingRepository<D,,String> org.springframework.data.repository.Repository<D,String>
- All Known Subinterfaces:
JpaAdminUserRepository<D>
@NoRepositoryBean
public interface AdminUserRepository<D>
extends com.broadleafcommerce.common.extension.data.PagingAndSortingRepository<D,String>, com.broadleafcommerce.data.tracking.core.service.MappableRsqlFilterExecutor<D>, CustomizedAdminUserRepository<D>, com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
- Author:
- Jeff Fischer
-
Method Summary
Modifier and TypeMethodDescriptionfindByEmailAndTenantId(String email, String tenantId) findByIdAndApplicationIds(String id, String applicationId) findByIdAndTenantId(String id, String tenantId) findByUsernameAndTenantId(String username, String tenantId) org.springframework.data.domain.Page<D>findDistinctByTenantId(String tenantId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page) org.springframework.data.domain.Page<D>findDistinctByTenantIdAndApplicationIds(String tenantId, String applicationId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page) findUserWithApplicationAccess(String id, String applicationId) Reads the admin user in the data store that matches the user ID and the application ID to their assigned applications.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.messaging.notification.NotificationStateRepository
findNotificationReadyMembers, setFailedNotificationAttempt, setNotificationAcknowledgedMethods inherited from interface com.broadleafcommerce.common.extension.data.PagingAndSortingRepository
findAll, findAll
-
Method Details
-
findByIdAndApplicationIds
-
findByIdAndTenantId
-
findDistinctByTenantIdAndApplicationIds
-
findDistinctByTenantId
-
findByEmailAndTenantId
-
findByUsernameAndTenantId
-
findUserWithApplicationAccess
Description copied from interface:CustomizedAdminUserRepositoryReads the admin user in the data store that matches the user ID and the application ID to their assigned applications.Special handling is added to return a user that may have application access but no assigned applications (meaning they should have access to all applications).
- Specified by:
findUserWithApplicationAccessin interfaceCustomizedAdminUserRepository<D>- Parameters:
id- the user ID of the admin userapplicationId- the application ID to match to the user if the user has assigned applications- Returns:
- an
Optionalcontaining the admin user if found, orOptional.empty()
-