Interface MarketplaceApplicationCatalogRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- Type Parameters:
D
- General domain type that derives fromTrackable
- 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:
JpaMarketplaceApplicationCatalogRepository<D>
@NoRepositoryBean
public interface MarketplaceApplicationCatalogRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
Repository agnostic interface. Generally extended by another interface that is declared against a
specific repository domain type.
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<D>
findAllByApplication
(String applicationId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds allMarketplaceApplicationCatalog
entities matching the givenMarketplaceApplicationCatalog.getApplication()
.findByCatalogAndApplication
(String catalog, String applicationId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds theMarketplaceApplicationCatalog
matching the givenMarketplaceApplicationCatalog.getCatalog()
andMarketplaceApplicationCatalog.getApplication()
.findByContextIdAndApplication
(String contextId, String applicationId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds theMarketplaceApplicationCatalog
matching the givenMarketplaceApplicationCatalog.getId()
andMarketplaceApplicationCatalog.getApplication()
.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
-
findAllByApplication
@Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByApplication(@NonNull String applicationId, @NonNull cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds allMarketplaceApplicationCatalog
entities matching the givenMarketplaceApplicationCatalog.getApplication()
.- Parameters:
applicationId
- the application ID to filter results byfilters
- the RSQLNode
used to restrict result, must not be nullpageable
- may bePageable.unpaged()
, must not be null.contextInfo
- Request context information around sandbox and multitenant state- Returns:
- The subset (page) of narrowed entities
-
findByContextIdAndApplication
@Policy(operationTypes=READ) @NonNull Optional<D> findByContextIdAndApplication(@NonNull String contextId, @NonNull String applicationId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds theMarketplaceApplicationCatalog
matching the givenMarketplaceApplicationCatalog.getId()
andMarketplaceApplicationCatalog.getApplication()
.- Parameters:
contextId
- An identifying idapplicationId
- the application ID to filter the result bycontextInfo
- Request context information around sandbox and multitenant state- Returns:
- If nothing found, an empty Optional. Otherwise, an Optional containing the narrowed entity.
-
findByCatalogAndApplication
@Policy(operationTypes=READ) @NonNull Optional<D> findByCatalogAndApplication(@NonNull String catalog, @NonNull String applicationId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds theMarketplaceApplicationCatalog
matching the givenMarketplaceApplicationCatalog.getCatalog()
andMarketplaceApplicationCatalog.getApplication()
.- Parameters:
catalog
- the catalog ID to filter the result byapplicationId
- the application ID to filter the result bycontextInfo
- Request context information around sandbox and multitenant state- Returns:
- If nothing found, an empty Optional. Otherwise, an Optional containing the narrowed entity.
-