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 TypeMethodDescriptionbooleanexistsByParentRoleId(String parentRoleId) Deprecated.Returns whether or not there exists at least oneAdminRolewho has aAdminRole.parentRoleIdvalue 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, saveAllMethods inherited from interface com.broadleafcommerce.adminuser.user.repository.CustomizedAdminRoleRepository
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 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 oneAdminRolewho has aAdminRole.parentRoleIdvalue 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:
trueif a record matching the criteria was found,falseotherwise
-