Interface AccountRoleRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
-
- All Superinterfaces:
CustomizedAccountRoleRepository<D>
,com.broadleafcommerce.common.extension.DomainTypeAware
,com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
,org.springframework.data.repository.Repository<D,String>
,com.broadleafcommerce.data.tracking.core.TrackableRepository<D>
,com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
- All Known Subinterfaces:
JpaAccountRoleRepository<D>
@NoRepositoryBean public interface AccountRoleRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable> extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>, CustomizedAccountRoleRepository<D>, com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
Repository for persisted counterparts ofAccountRole
.- Author:
- Chris Kittrell (ckittrell)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
existsByParentRoleId(String parentRoleId)
Returns whether or not there exists at least oneAccountRole
who has aAccountRole.getParentRoleId()
value equal to the given value.org.springframework.data.domain.Page<D>
findAllByNameContainingIgnoreCase(String name, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Finds allAccountRoles
by name-
Methods inherited from interface com.broadleafcommerce.customer.repository.CustomizedAccountRoleRepository
existsByNameAndIdNot
-
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
findNotificationReadyMembers, setFailedNotificationAttempt, setNotificationAcknowledged
-
Methods inherited from interface com.broadleafcommerce.data.tracking.core.TrackableRepository
archive, existsByContextId, findAll, findAll, findAll, findAll, findAll, findAll, findAllByContextId, findByContextId, findByContextIdAndCatalog, findByNativeId, findDeployable, findMaxSortMember, findMinSortMember, findOriginal, findPromotable, findPromoteOrientedItems, findRebasable, findRejectable, findRevertable, findTarget, getDomainType, getEntityInformation, getTrackableBehaviorUtil, getTypesToRegisterInMappingContext, pruneChangeDetails, pruneRestingNotificationStates, purgeObsoleteSandboxData, save, saveAll, setTrackableBehaviorUtil
-
-
-
-
Method Detail
-
findAllByNameContainingIgnoreCase
@Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByNameContainingIgnoreCase(String name, org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Finds allAccountRoles
by name- Parameters:
name
- the role name that we're looking forpage
- the requested page of results from the databasecontextInfo
- the context of the request- Returns:
- all AccountRoles that were found by name
-
existsByParentRoleId
@Policy(operationTypes=READ) boolean existsByParentRoleId(String parentRoleId)
Returns whether or not there exists at least oneAccountRole
who has aAccountRole.getParentRoleId()
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 againstAccountRole.getParentRoleId()
- Returns:
true
if a record matching the criteria was found,false
otherwise
-
-