Interface MenuItemRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>

  • All Superinterfaces:
    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:
    JpaMenuItemRepository<D>

    @NoRepositoryBean
    public interface MenuItemRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
    extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
    Repository for persistent counter-parts of MenuItem.
    Author:
    Samarth Dhruva (samarthd)
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      List<D> findAllByParentMenuContextId​(String parentMenuContextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Find all menu items that are children (both direct and indirect) of the specified Menu.
      org.springframework.data.domain.Page<D> findAllByParentMenuContextId​(String parentMenuContextId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Find all menu items for a menu, filtered by label.
      org.springframework.data.domain.Page<D> findAllByParentMenuContextIdAndParentMenuItemContextIdIsNull​(String parentMenuContextId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Find top-level menu items for a menu, filtered by label.
      List<D> findAllByParentMenuItemContextId​(String parentMenuItemContextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Find all menu items that are direct children of the specified MenuItem.
      • 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

      • findAllByParentMenuContextId

        org.springframework.data.domain.Page<D> findAllByParentMenuContextId​(String parentMenuContextId,
                                                                             cz.jirutka.rsql.parser.ast.Node filters,
                                                                             org.springframework.data.domain.Pageable page,
                                                                             com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Find all menu items for a menu, filtered by label.
        Parameters:
        parentMenuContextId - the context ID of the menu whose items should be returned
        filters - additional filters to apply in the query. Should be EmptyNode if no additional filters should be applied.
        page - the requested page of results from the database
        contextInfo - context information surrounding sandboxing and multitenant state
        Returns:
        all menu items for a menu, filtered by label
      • findAllByParentMenuContextIdAndParentMenuItemContextIdIsNull

        org.springframework.data.domain.Page<D> findAllByParentMenuContextIdAndParentMenuItemContextIdIsNull​(String parentMenuContextId,
                                                                                                             cz.jirutka.rsql.parser.ast.Node filters,
                                                                                                             org.springframework.data.domain.Pageable page,
                                                                                                             com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Find top-level menu items for a menu, filtered by label.
        Parameters:
        parentMenuContextId - the context ID of the menu whose top-level items should be returned
        filters - additional filters to apply in the query. Should be EmptyNode if no additional filters should be applied.
        page - the requested page of results from the database
        contextInfo - context information surrounding sandboxing and multitenant state
        Returns:
        top-level menu items for a menu, filtered by label
      • findAllByParentMenuItemContextId

        List<D> findAllByParentMenuItemContextId​(String parentMenuItemContextId,
                                                 com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Find all menu items that are direct children of the specified MenuItem. In other words, find all menu items who have the given parentMenuItemId set as their MenuItem.getParentMenuItemId().
        Parameters:
        parentMenuItemContextId - the context ID of the MenuItem whose direct children should be returned
        contextInfo - context information surrounding sandboxing and multitenant state
        Returns:
        all the menu items which are direct children of the specified menu item
      • findAllByParentMenuContextId

        List<D> findAllByParentMenuContextId​(String parentMenuContextId,
                                             com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Find all menu items that are children (both direct and indirect) of the specified Menu. In other words, find all menu items who have the given parentMenuId set as their MenuItem.getParentMenuId().
        Parameters:
        parentMenuContextId - the context ID of the Menu whose children should be returned
        contextInfo - context information surrounding sandboxing and multitenant state
        Returns:
        all the menu items which are children of the specified menu