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

All Superinterfaces:
CustomizedCustomerRepository<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:
JpaCustomerRepository<D>

@NoRepositoryBean public interface CustomerRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable> extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, CustomizedCustomerRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
Repository for persistent counterparts of Customer.
Author:
Samarth Dhruva (samarthd)
  • Method Summary

    Modifier and Type
    Method
    Description
    findAllByEmailInIgnoreCase(Set<String> emails, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Retrieves a list of customers by their email.
    findByEmailIgnoreCase(String email, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Find a customer by email address.
    findByUsernameIgnoreCase(String username, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Find a customer by username.

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

    findAllDistinctContextIds, readCustomersPagingStream

    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

    • findAllByEmailInIgnoreCase

      @Policy(operationTypes=READ) List<D> findAllByEmailInIgnoreCase(@NonNull Set<String> emails, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Retrieves a list of customers by their email.
      Parameters:
      emails - the set of emails to search for
      contextInfo - The current context.
      Returns:
      a set of customers whose email contains in the given emails
    • findByUsernameIgnoreCase

      @Policy(operationTypes=READ) Optional<D> findByUsernameIgnoreCase(@NonNull String username, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Find a customer by username.
      Parameters:
      username - The customer username.
      contextInfo - The current context.
      Returns:
      The customer found, or null if no customer with that username exists.
    • findByEmailIgnoreCase

      @Policy(operationTypes=READ) Optional<D> findByEmailIgnoreCase(@NonNull String email, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Find a customer by email address.
      Parameters:
      username - The customer e-mail address.
      contextInfo - The current context.
      Returns:
      The customer found, or null if no customer with that e-mail address exists.