Interface AdminPermissionRepository<D>
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<D,,String> CustomizedAdminPermissionRepository<D>,com.broadleafcommerce.common.extension.DomainTypeAware,com.broadleafcommerce.common.messaging.notification.NotificationStateRepository,com.broadleafcommerce.common.extension.data.PagingAndSortingRepository<D,,String> org.springframework.data.repository.Repository<D,String>
- All Known Subinterfaces:
JpaAdminPermissionRepository<D>
@NoRepositoryBean
@Deprecated
public interface AdminPermissionRepository<D>
extends com.broadleafcommerce.common.extension.data.PagingAndSortingRepository<D,String>, CustomizedAdminPermissionRepository<D>, com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
Deprecated.
Since 1.7.0. Role/permissions management moved to auth
Repository for persisted counterparts of
AdminPermission.- Author:
- Samarth Dhruva (samarthd)
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<D>findByTenantIdOrTenantIdNull(String tenantId, org.springframework.data.domain.Pageable pageable) Deprecated.Reads permissions in the data store, filtering to those who have either a null tenant ID (global) or a tenant ID matching the given value.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.adminuser.user.repository.CustomizedAdminPermissionRepository
existsByNameAndIdNot, existsByNameAndIdNotInTenantOrGlobal, findByIdInTenantOrGlobal, findByIdsInTenantOrGlobal, findByNameContainingIgnoreCase, findByNameContainingIgnoreCaseInTenantOrGlobalMethods inherited from interface com.broadleafcommerce.common.extension.DomainTypeAware
getDomainTypeMethods 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
-
findByTenantIdOrTenantIdNull
org.springframework.data.domain.Page<D> findByTenantIdOrTenantIdNull(@Nullable String tenantId, org.springframework.data.domain.Pageable pageable) Deprecated.Reads permissions in the data store, filtering to those who have either a null tenant ID (global) or a tenant ID matching the given value.- Parameters:
tenantId- the id of the tenant to restrict results by. If this is alsonull, then only permissions with null tenant IDs will be returned.pageable- describes the page of results to return- Returns:
- permissions with the given tenant ID or a null tenant ID
-