use of com.epam.ta.reportportal.entity.integration.IntegrationTypeDetails in project service-authorization by reportportal.
the class SamlIntegrationStrategy method updateBasePath.
private void updateBasePath(Integration integration, String basePath) {
final IntegrationType integrationType = integration.getType();
final IntegrationTypeDetails typeDetails = ofNullable(integrationType.getDetails()).orElseGet(() -> {
final IntegrationTypeDetails details = new IntegrationTypeDetails();
integrationType.setDetails(details);
return details;
});
final Map<String, Object> detailsMapping = ofNullable(typeDetails.getDetails()).orElseGet(() -> {
final Map<String, Object> details = new HashMap<>();
typeDetails.setDetails(details);
return details;
});
detailsMapping.put(BASE_PATH.getParameterName(), basePath);
}
Aggregations