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 of AccountRole.
    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 one AccountRole who has a AccountRole.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 all AccountRoles by name
      • 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
      • Methods inherited from interface com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor

        exists, findAll, findAll, findAll, findAll
    • 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 all AccountRoles by name
        Parameters:
        name - the role name that we're looking for
        page - the requested page of results from the database
        contextInfo - 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 one AccountRole who has a AccountRole.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 against AccountRole.getParentRoleId()
        Returns:
        true if a record matching the criteria was found, false otherwise