Interface ConfigurationFacade
- All Known Implementing Classes:
ConfigurationFacadeImpl
public interface ConfigurationFacade
Facade for Product Configuration.
-
Method Summary
Modifier and TypeMethodDescriptiongetConfiguration(ConfigurationData configuration) Read the actual configuration from the Backend.getConfiguration(KBKeyData kbKey) Get the default configuration for the given Knowledge Base.intgetNumberOfErrors(String configId) Get the number of errors (conflict, not filled mandatory fields), as it is set at the cart itemintgetNumberOfIncompleteCstics(String configId) Get the number of incomplete characteristics (not filled mandatory fields)intgetNumberOfSolvableConflicts(String configId) Get the number of solvable conflictsdefault booleanisConfigurationAvailable(String configId) Check if a given configId is known by the configuration engine.voidupdateConfiguration(ConfigurationData configuration) Update the configuration with the values provided
-
Method Details
-
getConfiguration
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
-
updateConfiguration
Update the configuration with the values provided- Parameters:
configuration- actual configuration
-
getConfiguration
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
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
-
getNumberOfIncompleteCstics
Get the number of incomplete characteristics (not filled mandatory fields)- Parameters:
configId- Configuration ID- Returns:
- Number of incomplete characteristics
-
getNumberOfSolvableConflicts
Get the number of solvable conflicts- Parameters:
configId- Configuration ID- Returns:
- Number of solvable conflicts
-
isConfigurationAvailable
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
-