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 Type
    Method
    Description
    boolean
    existsByApplication(String applicationId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    Determines whether any Sandbox exist for the given application
    boolean
    existsByApplicationIsNull(com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    Determines whether any Sandbox exist for the owned by the tenant but no application
    boolean
    existsByContextIdAndApplication(String contextId, String applicationId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Determines whether a Sandbox with the given ID is owned by the given application
    boolean
    existsByContextIdAndApplicationIsNull(String contextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Determines whether a Sandbox with the given ID is owned by the tenant but no application
    org.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 of Sandboxes that are owned by the given application
    org.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 of Sandboxes that are owned by the tenant but no application
    org.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 of Sandboxes by name that are owned by the given application
    org.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 of Sandboxes by name that are owned by the tenant but no application
    findByContextIdAndApplication(String contextId, String applicationId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Retrieves a Sandbox with the given ID that is owned by the given application
    findByContextIdAndApplicationIsNull(String contextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Retrieves a Sandbox with the given ID that is owned by the tenant but no application

    Methods 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 of Sandboxes by name that are owned by the given application
      Parameters:
      query - the query to apply to the name field
      applicationId - Id of the owning application
      filters - additional filters to apply in the query, can be null
      pageInfo - the requested page of results from the database
      contextInfo - 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 of Sandboxes by name that are owned by the tenant but no application
      Parameters:
      query - the query to apply to the name field
      filters - additional filters to apply in the query, can be null
      pageInfo - the requested page of results from the database
      contextInfo - 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 of Sandboxes that are owned by the given application
      Parameters:
      applicationId - Id of the owning application
      filters - additional filters to apply in the query, can be null
      pageInfo - the requested page of results from the database
      contextInfo - 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 of Sandboxes that are owned by the tenant but no application
      Parameters:
      filters - additional filters to apply in the query, can be null
      pageInfo - the requested page of results from the database
      contextInfo - 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 a Sandbox with the given ID that is owned by the given application
      Parameters:
      contextId - Id of the Sandbox
      applicationId - Id of the owning application
      contextInfo - 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 a Sandbox with the given ID that is owned by the tenant but no application
      Parameters:
      contextId - Id of the Sandbox
      contextInfo - 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 a Sandbox with the given ID is owned by the given application
      Parameters:
      contextId - Id of the Sandbox
      applicationId - Id of the owning application
      contextInfo - 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 a Sandbox with the given ID is owned by the tenant but no application
      Parameters:
      contextId - Id of the Sandbox
      contextInfo - 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 any Sandbox exist for the given application
      Parameters:
      applicationId - Id of the owning application
      context - 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 any Sandbox 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