Interface ConfigurationAbstractOrderEntryLinkStrategy

All Known Implementing Classes:
PersistenceConfigurationAbstractOrderEntryLinkStrategyImpl

public interface ConfigurationAbstractOrderEntryLinkStrategy
This strategy manages the link between a given cart entry and the corresponding runtime configuration.
  • Method Details

    • setConfigIdForCartEntry

      void setConfigIdForCartEntry(String cartEntryKey, String configId)
      Stores configuration ID for a cart entry key into the session
      Parameters:
      cartEntryKey - String representation of the cart entry primary key
      configId - ID of a runtime configuration object
    • setDraftConfigIdForCartEntry

      void setDraftConfigIdForCartEntry(String cartEntryKey, String configId)
      Stores the draft configuration ID for a cart entry key into the session
      Parameters:
      cartEntryKey - String representation of the cart entry primary key
      configId - ID of a runtime configuration object
    • getConfigIdForCartEntry

      String getConfigIdForCartEntry(String cartEntryKey)
      Retrieves config identifier from the session for a given cart entry key. In case a draft configuration exists, this is returned with priority.
      Parameters:
      cartEntryKey - String representation of the cart entry primary key
      Returns:
      ID of a runtime configuration object
    • getDraftConfigIdForCartEntry

      String getDraftConfigIdForCartEntry(String cartEntryKey)
      Retrieves the drafted config identifier from the session for a given cart entry key. In case a draft configuration exists, this is returned with priority.
      Parameters:
      cartEntryKey - String representation of the cart entry primary key
      Returns:
      ID of a runtime configuration object
    • getCartEntryForConfigId

      String getCartEntryForConfigId(String configId)
      Retrieves cart entry key belonging to a specific config ID
      Parameters:
      configId - id of the configuration
      Returns:
      String representation of the cart entry primary key
    • getAbstractOrderEntryForConfigId

      default AbstractOrderEntryModel getAbstractOrderEntryForConfigId(String configId)
      Retrieves abstract order entry belonging to a specific config ID
      Parameters:
      configId - id of the configuration
      Returns:
      Abstract order entry model
    • getCartEntryForDraftConfigId

      String getCartEntryForDraftConfigId(String configId)
      Retrieves cart entry key belonging to a specific darfted config ID
      Parameters:
      configId - id of the configuration maintained as draft
      Returns:
      String representation of the cart entry primary key
    • removeConfigIdForCartEntry

      void removeConfigIdForCartEntry(String cartEntryKey)
      Removes config ID for cart entry
      Parameters:
      cartEntryKey - cart entry key
    • removeDraftConfigIdForCartEntry

      void removeDraftConfigIdForCartEntry(String cartEntryKey)
      Removes the drafted config ID for a cart entry
      Parameters:
      cartEntryKey - cart entry key
    • removeSessionArtifactsForCartEntry

      void removeSessionArtifactsForCartEntry(String cartEntryId)
      Removes all session artifacts belonging to a cart entry
      Parameters:
      cartEntryId - cart entry key
      productKey - product key
    • isDocumentRelated

      boolean isDocumentRelated(String configId)
      Checks whether the given configuration is realted to any document
      Parameters:
      configId - configId
      Returns:
      true if the config is related to any document