Interface MenuRepository<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:
JpaMenuRepository<D>
@NoRepositoryBean
public interface MenuRepository<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 Menu
.- Author:
- Samarth Dhruva (samarthd)
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByName
(String menuName, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find the menu items with the given name.findByName
(String menuName, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find the menu with the given 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 Details
-
findByName
Optional<D> findByName(String menuName, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find the menu with the given name.- Parameters:
menuName
- the name of the menu to retrievecontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- an
Optional
containing the menu that was found, empty otherwise
-
findAllByName
List<D> findAllByName(String menuName, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find the menu items with the given name. There could be more than one result matching theContextInfo
- Parameters:
menuName
- the name of the menus to retrievecontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- an
Optional
containing the list of menus that was found, empty otherwise
-