use of net.nemerosa.ontrack.model.support.ConfigurationValidationException in project ontrack by nemerosa.
the class SVNConfigurationServiceImpl method validateAndCheck.
@Override
protected void validateAndCheck(SVNConfiguration configuration) {
super.validateAndCheck(configuration);
// Checks the issue service identifier
String issueServiceConfigurationIdentifier = configuration.getIssueServiceConfigurationIdentifier();
if (StringUtils.isNotBlank(issueServiceConfigurationIdentifier)) {
ConfiguredIssueService configuredIssueService = issueServiceRegistry.getConfiguredIssueService(issueServiceConfigurationIdentifier);
if (configuredIssueService == null || configuredIssueService.getIssueServiceConfiguration() == null) {
throw new ConfigurationValidationException(configuration, String.format("Issue service configuration cannot be validated: %s", issueServiceConfigurationIdentifier));
}
}
}
Aggregations