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

Type Parameters:
D -
All Known Subinterfaces:
InventoryTransactionRepository<T>, JpaInventoryTransactionRepository<D>
All Known Implementing Classes:
JpaCustomizedInventoryTransactionRepository

public interface CustomizedInventoryTransactionRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
  • Method Summary

    Modifier and Type
    Method
    Description
    enhancedFindByContextId(String contextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads an Inventory Transaction by Context ID.
    org.springframework.data.domain.Page<D>
    enhancedFindByDateCreatedBeforeAndTransactionTypeIn(Instant maxCreatedDate, Set<String> transactionTypes, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads a page of inventory transactions created before a certain date and of certain transaction types.
  • Method Details

    • enhancedFindByContextId

      @Policy(operationTypes=READ) @NonNull Optional<D> enhancedFindByContextId(@NonNull String contextId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads an Inventory Transaction by Context ID. This method supports ignoring application filters by setting the attribute "INCLUDE_APPLICATION_ID_PREDICATE" to false in ContextInfo.additionalProperties.
      Parameters:
      contextId - The context id of the entity to retrieve.
      contextInfo - The context of the request.
      Returns:
      An optional containing the entity that matches the given context ID, or an empty Optional if an entity is not found.
    • enhancedFindByDateCreatedBeforeAndTransactionTypeIn

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> enhancedFindByDateCreatedBeforeAndTransactionTypeIn(Instant maxCreatedDate, Set<String> transactionTypes, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads a page of inventory transactions created before a certain date and of certain transaction types. Supports returning transactions from all applications in the current tenant if the attribute "INCLUDE_APPLICATION_ID_PREDICATE" is false in ContextInfo.additionalProperties.
      Parameters:
      maxCreatedDate - Find transactions created before this date.
      transactionTypes - Find transactions with one of the given transactionTypes.
      page - Sublist of filtered transactions.
      contextInfo - The contextInfo of the request.
      Returns:
      Inventory transactions created before the given date, with one of the given statuses, belonging to any application of the tenant from the context.