Interface SandboxRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- All Superinterfaces:
CustomizedSandboxRepository<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:
JpaSandboxRepository<D>
@NoRepositoryBean
public interface SandboxRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
extends CustomizedSandboxRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
-
Method Summary
Modifier and TypeMethodDescriptionboolean
existsByApplication
(String applicationId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Determines whether anySandbox
exist for the given applicationboolean
existsByApplicationIsNull
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Determines whether anySandbox
exist for the owned by the tenant but no applicationboolean
existsByContextIdAndApplication
(String contextId, String applicationId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Determines whether aSandbox
with the given ID is owned by the given applicationboolean
existsByContextIdAndApplicationIsNull
(String contextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Determines whether aSandbox
with the given ID is owned by the tenant but no applicationorg.springframework.data.domain.Page<D>
findAllByApplication
(String applicationId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageInfo, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a paged list ofSandboxes
that are owned by the given applicationorg.springframework.data.domain.Page<D>
findAllByApplicationIsNull
(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageInfo, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a paged list ofSandboxes
that are owned by the tenant but no applicationorg.springframework.data.domain.Page<D>
findAllByNameContainingIgnoreCaseAndApplication
(String query, String applicationId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageInfo, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a paged list ofSandboxes
by name that are owned by the given applicationorg.springframework.data.domain.Page<D>
findAllByNameContainingIgnoreCaseAndApplicationIsNull
(String query, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageInfo, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a paged list ofSandboxes
by name that are owned by the tenant but no applicationfindByContextIdAndApplication
(String contextId, String applicationId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves aSandbox
with the given ID that is owned by the given applicationfindByContextIdAndApplicationIsNull
(String contextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves aSandbox
with the given ID that is owned by the tenant but no applicationMethods inherited from interface com.broadleafcommerce.sandbox.repository.trackable.CustomizedSandboxRepository
cleanupBatch, createIfDoesNotExist
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
-
findAllByNameContainingIgnoreCaseAndApplication
org.springframework.data.domain.Page<D> findAllByNameContainingIgnoreCaseAndApplication(@NonNull String query, @NonNull String applicationId, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageInfo, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a paged list ofSandboxes
by name that are owned by the given application- Parameters:
query
- the query to apply to the name fieldapplicationId
- Id of the owning applicationfilters
- additional filters to apply in the query, can be nullpageInfo
- the requested page of results from the databasecontextInfo
- context information around sandbox and multitenant state- Returns:
- a paged list of sandboxes from the underlying repository
-
findAllByNameContainingIgnoreCaseAndApplicationIsNull
org.springframework.data.domain.Page<D> findAllByNameContainingIgnoreCaseAndApplicationIsNull(@NonNull String query, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageInfo, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a paged list ofSandboxes
by name that are owned by the tenant but no application- Parameters:
query
- the query to apply to the name fieldfilters
- additional filters to apply in the query, can be nullpageInfo
- the requested page of results from the databasecontextInfo
- context information around sandbox and multitenant state- Returns:
- a paged list of offers from the underlying repository
-
findAllByApplication
org.springframework.data.domain.Page<D> findAllByApplication(@NonNull String applicationId, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageInfo, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a paged list ofSandboxes
that are owned by the given application- Parameters:
applicationId
- Id of the owning applicationfilters
- additional filters to apply in the query, can be nullpageInfo
- the requested page of results from the databasecontextInfo
- context information around sandbox and multitenant state- Returns:
- a paged list of sandboxes from the underlying repository
-
findAllByApplicationIsNull
org.springframework.data.domain.Page<D> findAllByApplicationIsNull(@Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageInfo, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a paged list ofSandboxes
that are owned by the tenant but no application- Parameters:
filters
- additional filters to apply in the query, can be nullpageInfo
- the requested page of results from the databasecontextInfo
- context information around sandbox and multitenant state- Returns:
- a paged list of sandboxes from the underlying repository
-
findByContextIdAndApplication
Optional<D> findByContextIdAndApplication(@NonNull String contextId, @NonNull String applicationId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves aSandbox
with the given ID that is owned by the given application- Parameters:
contextId
- Id of the SandboxapplicationId
- Id of the owning applicationcontextInfo
- context information around sandbox and multitenant state- Returns:
- The matching Sandbox if it exists or empty
-
findByContextIdAndApplicationIsNull
Optional<D> findByContextIdAndApplicationIsNull(@NonNull String contextId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves aSandbox
with the given ID that is owned by the tenant but no application- Parameters:
contextId
- Id of the SandboxcontextInfo
- context information around sandbox and multitenant state- Returns:
- The matching Sandbox if it exists or empty
-
existsByContextIdAndApplication
boolean existsByContextIdAndApplication(@NonNull String contextId, @NonNull String applicationId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Determines whether aSandbox
with the given ID is owned by the given application- Parameters:
contextId
- Id of the SandboxapplicationId
- Id of the owning applicationcontextInfo
- context information around sandbox and multitenant state- Returns:
- whether the Sandbox exists matching the params
-
existsByContextIdAndApplicationIsNull
boolean existsByContextIdAndApplicationIsNull(@NonNull String contextId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Determines whether aSandbox
with the given ID is owned by the tenant but no application- Parameters:
contextId
- Id of the SandboxcontextInfo
- context information around sandbox and multitenant state- Returns:
- whether the Sandbox exists matching the params
-
existsByApplication
boolean existsByApplication(@NonNull String applicationId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Determines whether anySandbox
exist for the given application- Parameters:
applicationId
- Id of the owning applicationcontext
- context information around sandbox and multitenant state- Returns:
- whether any Sandbox exists for the application
-
existsByApplicationIsNull
boolean existsByApplicationIsNull(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Determines whether anySandbox
exist for the owned by the tenant but no application- Parameters:
context
- context information around sandbox and multitenant state- Returns:
- whether any tenant only Sandboxes exists
-