Interface ConfigurationService
- All Known Implementing Classes:
DefaultConfigurationService
public interface ConfigurationService
Configuration service.
-
Method Summary
Modifier and TypeMethodDescriptioncloneConfiguration(String configId, boolean permanent) Clones the configuration for given configIdcreateConfiguration(String productCode) Creates a new configuration, based on a root product codebooleandeleteConfiguration(String configId) Delete the configuration for given configIdgetConfigurationSummary(String configId) Retrieves the CPQ configuration summarygetLineItems(String configId) get's the list of line itemsintgetNumberOfConfigurationIssues(String configId) get's the total number of configuration issuesbooleanhasConfigurationIssues(String configId) Checks if a configuration has issuesvoidmakeConfigurationPermanent(String configId) Marks a persisted configuration as permanent.
Should be called when the UI is 'done' configuring.voidremoveCachedConfigurationSummary(String configId) Removes a cached configuration summary if present.
-
Method Details
-
createConfiguration
Creates a new configuration, based on a root product code- Parameters:
productCode- Root product code- Returns:
- Configuration Identifier
-
getConfigurationSummary
Retrieves the CPQ configuration summary- Parameters:
configId- CPQ configuration Id- Returns:
- CPQ configuration summary
-
deleteConfiguration
Delete the configuration for given configId- Parameters:
configId- CPQ configuration Id- Returns:
- true if deletion was successful
-
cloneConfiguration
Clones the configuration for given configId- Parameters:
configId- CPQ configuration Idpermanent- indicates whether clone should be permanent- Returns:
- CPQ configuration Id of cloned configuration
-
removeCachedConfigurationSummary
Removes a cached configuration summary if present. Tolerates summary not being present- Parameters:
configId- Configuration identifier
-
hasConfigurationIssues
Checks if a configuration has issues- Parameters:
configId- Configuration ID- Returns:
- Issues?
-
getNumberOfConfigurationIssues
get's the total number of configuration issues- Parameters:
configId- Identifies the CPQ configuration- Returns:
- number of configuration issues
-
makeConfigurationPermanent
Marks a persisted configuration as permanent.
Should be called when the UI is 'done' configuring. Afterwards admin/server is required to do any changes. UI/Client scope is not sufficient anymore to do changes.- Parameters:
configId- config id
-
getLineItems
get's the list of line items- Parameters:
configId- Identifies the CPQ configuration- Returns:
- line items
-