Interface ConfigurationAbstractOrderEntryLinkStrategy

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getCartEntryForConfigId​(java.lang.String configId)
      Retrieves cart entry key belonging to a specific config ID
      java.lang.String getCartEntryForDraftConfigId​(java.lang.String configId)
      Retrieves cart entry key belonging to a specific darfted config ID
      java.lang.String getConfigIdForCartEntry​(java.lang.String cartEntryKey)
      Retrieves config identifier from the session for a given cart entry key.
      java.lang.String getDraftConfigIdForCartEntry​(java.lang.String cartEntryKey)
      Retrieves the drafted config identifier from the session for a given cart entry key.
      boolean isDocumentRelated​(java.lang.String configId)
      Checks whether the given configuration is realted to any document
      void removeConfigIdForCartEntry​(java.lang.String cartEntryKey)
      Removes config ID for cart entry
      void removeDraftConfigIdForCartEntry​(java.lang.String cartEntryKey)
      Removes the drafted config ID for a cart entry
      void removeSessionArtifactsForCartEntry​(java.lang.String cartEntryId)
      Removes all session artifacts belonging to a cart entry
      void setConfigIdForCartEntry​(java.lang.String cartEntryKey, java.lang.String configId)
      Stores configuration ID for a cart entry key into the session
      void setDraftConfigIdForCartEntry​(java.lang.String cartEntryKey, java.lang.String configId)
      Stores the draft configuration ID for a cart entry key into the session
    • Method Detail

      • setConfigIdForCartEntry

        void setConfigIdForCartEntry​(java.lang.String cartEntryKey,
                                     java.lang.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​(java.lang.String cartEntryKey,
                                          java.lang.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

        java.lang.String getConfigIdForCartEntry​(java.lang.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

        java.lang.String getDraftConfigIdForCartEntry​(java.lang.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

        java.lang.String getCartEntryForConfigId​(java.lang.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
      • getCartEntryForDraftConfigId

        java.lang.String getCartEntryForDraftConfigId​(java.lang.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​(java.lang.String cartEntryKey)
        Removes config ID for cart entry
        Parameters:
        cartEntryKey - cart entry key
      • removeDraftConfigIdForCartEntry

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

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

        boolean isDocumentRelated​(java.lang.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