Interface CartVersionValidationService

All Known Implementing Classes:
DefaultCartVersionValidationService

public interface CartVersionValidationService
Service used for validating the version of a Cart for reads and updates within this service.
Author:
Nick Crum (ncrum)
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    validateVersionForRead(com.broadleafcommerce.cart.client.domain.Cart cart, Integer versionToTest)
     
    default void
    validateVersionForUpdate(com.broadleafcommerce.cart.client.domain.Cart cart, Integer versionToTest)
     
    default boolean
    versionIsStale(com.broadleafcommerce.cart.client.domain.Cart cart, Integer versionToTest)
     
  • Method Details

    • versionIsStale

      default boolean versionIsStale(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, @NonNull Integer versionToTest)
    • validateVersionForRead

      default void validateVersionForRead(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable Integer versionToTest)
    • validateVersionForUpdate

      default void validateVersionForUpdate(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable Integer versionToTest)