Interface AdminRoleRepository<D>
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<D,
,String> CustomizedAdminRoleRepository<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:
JpaAdminRoleRepository<D>
@NoRepositoryBean
@Deprecated
public interface AdminRoleRepository<D>
extends com.broadleafcommerce.common.extension.data.PagingAndSortingRepository<D,String>, CustomizedAdminRoleRepository<D>, com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
Deprecated.
Since 1.7.0. Role/permissions management moved to auth
Repository for persisted counterparts of
AdminRole
.- Author:
- Samarth Dhruva (samarthd)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
existsByParentRoleId
(String parentRoleId) Deprecated.Returns whether or not there exists at least oneAdminRole
who has aAdminRole.parentRoleId
value equal to the given value.org.springframework.data.domain.Page<D>
findByTenantIdOrTenantIdNull
(String tenantId, org.springframework.data.domain.Pageable pageable) Deprecated.Reads roles 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, saveAll
Methods inherited from interface com.broadleafcommerce.adminuser.user.repository.CustomizedAdminRoleRepository
existsByNameAndIdNot, existsByNameAndIdNotInTenantOrGlobal, findByIdInTenantOrGlobal, findByIdsInTenantOrGlobal, findByNameContainingIgnoreCase, findByNameContainingIgnoreCaseInTenantOrGlobal
Methods inherited from interface com.broadleafcommerce.common.extension.DomainTypeAware
getDomainType
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
findNotificationReadyMembers, setFailedNotificationAttempt, setNotificationAcknowledged
Methods 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 roles 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 roles with null tenant IDs will be returned.pageable
- describes the page of results to return- Returns:
- roles with the given tenant ID or a null tenant ID
-
existsByParentRoleId
Deprecated.Returns whether or not there exists at least oneAdminRole
who has aAdminRole.parentRoleId
value equal to the given value.In other words, checks if the role with the given id has any children in the data store.
- Parameters:
parentRoleId
- the value to match againstAdminRole.parentRoleId
- Returns:
true
if a record matching the criteria was found,false
otherwise
-