Interface AccountMemberRepository<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:
JpaAccountMemberRepository<D>

@NoRepositoryBean public interface AccountMemberRepository<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 AccountMember
Author:
Chris Kittrell (ckittrell)
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<D>
    findAllByAccountContextId(String accountId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Finds all of the AccountMember relationships in the database associated with the given account context ID.
    org.springframework.data.domain.Page<D>
    findAllByAccountContextIdAndActiveTrue(String accountId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Finds all of the AccountMember relationships in the database associated with the given account context ID and are marked as active (i.e.
    findByContextIdAndAccountContextId(String contextId, String accountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Finds an AccountMember in the database associated with the given context ID & account context ID.
    org.springframework.data.domain.Page<D>
    findByCustomerContextId(String customerId, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads a page of AccountMembers that match the given Customer.getId().
    findByCustomerContextIdAndAccountContextId(String customerId, String accountid, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Find by customer and account ID.
    findByCustomerContextIdAndActiveTrue(String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads all AccountMembers that are active and match the given Customer.getId().
    org.springframework.data.domain.Page<D>
    findByCustomerContextIdAndActiveTrue(String customerId, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads a page of AccountMembers that are active and match the given Customer.getId().
    findByEmailAndAccountContextId(String email, String accountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     

    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

    • findAllByAccountContextId

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByAccountContextId(@NonNull String accountId, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Finds all of the AccountMember relationships in the database associated with the given account context ID.
      Parameters:
      accountId - the account context ID to find the relationships for
      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 surrounding site context
      Returns:
      the AccountMember relationships in the database that match the given account context ID
    • findAllByAccountContextIdAndActiveTrue

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByAccountContextIdAndActiveTrue(@NonNull String accountId, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Finds all of the AccountMember relationships in the database associated with the given account context ID and are marked as active (i.e. registered customers).
      Parameters:
      accountId - the account context ID to find the relationships for
      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 surrounding site context
      Returns:
      the AccountMember relationships in the database that match the given account context ID
    • findByContextIdAndAccountContextId

      @Policy(operationTypes=READ) Optional<D> findByContextIdAndAccountContextId(String contextId, String accountId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Finds an AccountMember in the database associated with the given context ID & account context ID.
      Parameters:
      contextId - the ID of the accountMember
      accountId - the account context ID to find the relationship for
      contextInfo - context surrounding site context
      Returns:
      an AccountMember associated with the given context ID & account context ID.
    • findByCustomerContextIdAndAccountContextId

      @Policy(operationTypes=READ) Optional<D> findByCustomerContextIdAndAccountContextId(String customerId, String accountid, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Find by customer and account ID.
      Parameters:
      customerId - The customer id
      accountid - The account Id
      contextInfo - context surrounding site context
      Returns:
      The account member
    • findByCustomerContextId

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findByCustomerContextId(String customerId, org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads a page of AccountMembers that match the given Customer.getId().
      Parameters:
      customerId - Id of the related Customer.
      page - Pagination info
      contextInfo - Additional sandbox and multitenant info
      Returns:
      A page of AccountMembers that match the given customerId.
    • findByCustomerContextIdAndActiveTrue

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findByCustomerContextIdAndActiveTrue(String customerId, org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads a page of AccountMembers that are active and match the given Customer.getId().
      Parameters:
      customerId - Id of the related Customer.
      page - Pagination info
      contextInfo - Additional sandbox and multitenant info
      Returns:
      A page of AccountMembers that are active and match the given customerId.
    • findByCustomerContextIdAndActiveTrue

      @Policy(operationTypes=READ) List<D> findByCustomerContextIdAndActiveTrue(String customerId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads all AccountMembers that are active and match the given Customer.getId().
      Parameters:
      customerId - Id of the related Customer.
      contextInfo - Additional sandbox and multitenant info
      Returns:
      All AccountMembers that are active and match the given customerId.
    • findByEmailAndAccountContextId

      @Policy(operationTypes=READ) Optional<D> findByEmailAndAccountContextId(String email, String accountId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)