Search in sources :

Example 1 with IntegrationTypeDetails

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);
}
Also used : IntegrationTypeDetails(com.epam.ta.reportportal.entity.integration.IntegrationTypeDetails) HashMap(java.util.HashMap) IntegrationType(com.epam.ta.reportportal.entity.integration.IntegrationType)

Aggregations

IntegrationType (com.epam.ta.reportportal.entity.integration.IntegrationType)1 IntegrationTypeDetails (com.epam.ta.reportportal.entity.integration.IntegrationTypeDetails)1 HashMap (java.util.HashMap)1