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

All Superinterfaces:
CustomizedFeeRepository<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:
JpaFeeRepository<F>

public interface FeeRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable> extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>, CustomizedFeeRepository<D>
Repository for persistent counter-parts of Fees.
Since:
Pricing Services 2.2.0, Release Train 2.3.0
Author:
Julia Lopez-Pozas (jlopezpozas)
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    existsByFeeCode(String feeCode, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Whether there exists a Fee where the Fee.getFeeCode() matches feeCode.
    boolean
    existsByFeeCodeAndContextIdNot(String feeCode, String id, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Whether there exists a Fee where the Fee.getFeeCode() matches feeCode and the Fee.getId() does not match id.

    Methods inherited from interface com.broadleafcommerce.pricing.repository.CustomizedFeeRepository

    findAllByApplicationId

    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

    • existsByFeeCode

      @Policy(operationTypes=READ) boolean existsByFeeCode(@NonNull String feeCode, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Whether there exists a Fee where the Fee.getFeeCode() matches feeCode.
      Parameters:
      feeCode - The type key to match
      contextInfo - context information surrounding sandboxing and multitenant state
      Returns:
      Whether there exists a Fee where the Fee.getFeeCode() matches feeCode.
      Since:
      Pricing Services 2.2.0, Release Train 2.3.0
    • existsByFeeCodeAndContextIdNot

      @Policy(operationTypes=READ) boolean existsByFeeCodeAndContextIdNot(@NonNull String feeCode, @NonNull String id, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Whether there exists a Fee where the Fee.getFeeCode() matches feeCode and the Fee.getId() does not match id.
      Parameters:
      feeCode - The fee code to match
      id - The id to not match
      contextInfo - context information surrounding sandboxing and multitenant state
      Returns:
      Whether there exists a Fee where the Fee.getFeeCode() matches feeCode and the Fee.getId() does not match id.
      Since:
      Pricing Services 2.2.0, Release Train 2.3.0