Interface CustomerAddressRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>

All Superinterfaces:
CustomizedCustomerAddressRepository<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:
JpaCustomerAddressRepository<D>

@NoRepositoryBean public interface CustomerAddressRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable> extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>, CustomizedCustomerAddressRepository<D>
Repository for persistent counter-parts of CustomerAddress
Author:
Chris Kittrell (ckittrell)
  • Method Summary

    Modifier and Type
    Method
    Description
    findByContextIdAndCustomerId(String contextId, String customerContextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     
    org.springframework.data.domain.Page<D>
    findByCustomerId(String customerContextId, 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 CustomerAddress relationships in the database associated with the given customer context ID.
    findByCustomerIdIn(Set<String> customerIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Finds all customer addresses in the datastore associated with any of the given customerIds.

    Methods inherited from interface com.broadleafcommerce.customer.repository.CustomizedCustomerAddressRepository

    clearDefaultBillingAddressForCustomer, clearDefaultShippingAddressForCustomer

    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

    • findByCustomerId

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findByCustomerId(String customerContextId, @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 CustomerAddress relationships in the database associated with the given customer context ID.
      Parameters:
      customerContextId - the customer 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 CustomerAddress relationships in the database that match the given customer context ID
    • findByContextIdAndCustomerId

      @Policy(operationTypes=READ) Optional<D> findByContextIdAndCustomerId(String contextId, String customerContextId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • findByCustomerIdIn

      @Policy(operationTypes=READ) List<D> findByCustomerIdIn(Set<String> customerIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Finds all customer addresses in the datastore associated with any of the given customerIds.
      Parameters:
      customerIds - customer IDs to find customer addresses for
      contextInfo - context information around multitenant state
      Returns:
      all customer addresses in the datastore associated with any of the given customerIds