Interface ConfigurationFacade

  • All Known Implementing Classes:
    ConfigurationFacadeImpl

    public interface ConfigurationFacade
    Facade for Product Configuration.
    • Method Detail

      • getConfiguration

        ConfigurationData getConfiguration​(KBKeyData kbKey)
        Get the default configuration for the given Knowledge Base. In case the product identified by the productCode of the KBkey is a varaint, the runtime configuration of the corresponding base product is instantiated.
        Parameters:
        kbKey - key of the Knowledge Base
        Returns:
        default configuration
      • getConfiguration

        @Deprecated(since="1808",
                    forRemoval=true)
        default ConfigurationData getConfiguration​(ProductData productData)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 18.08.0 - call getConfiguration(KBKeyData) instead. Check for variant is handled internally
        Get the default configuration for the given Product.
        Parameters:
        productData - product code to get the Knowledge Base
        Returns:
        default configuration
      • updateConfiguration

        void updateConfiguration​(ConfigurationData configuration)
        Update the configuration with the values provided
        Parameters:
        configuration - actual configuration
      • getConfiguration

        ConfigurationData getConfiguration​(ConfigurationData configuration)
        Read the actual configuration from the Backend. Current values in the model will be overwritten.
        Parameters:
        configuration - configuration to be refreshed
        Returns:
        actual configuration
      • getNumberOfErrors

        int getNumberOfErrors​(java.lang.String configId)
        Get the number of errors (conflict, not filled mandatory fields), as it is set at the cart item
        Parameters:
        configId - ID of the configuration
        Returns:
        Total number of errors
      • isConfigurationAvailable

        default boolean isConfigurationAvailable​(java.lang.String configId)
        Check if a given configId is known by the configuration engine.
        Parameters:
        configId - ID of the configuration
        Returns:
        TRUE if the configuration exist, otherwise FALSE