Search in sources :

Example 1 with AuthIntegrationBuilder

use of com.epam.reportportal.auth.integration.builder.AuthIntegrationBuilder in project service-authorization by reportportal.

the class AuthIntegrationStrategy method createIntegration.

public Integration createIntegration(IntegrationType integrationType, UpdateAuthRQ request, String username) {
    updateAuthRequestValidator.validate(request);
    final Integration integration = new AuthIntegrationBuilder().addCreator(username).addIntegrationType(integrationType).addCreationDate(LocalDateTime.now(ZoneOffset.UTC)).build();
    fill(integration, request);
    return save(integration);
}
Also used : Integration(com.epam.ta.reportportal.entity.integration.Integration) AuthIntegrationBuilder(com.epam.reportportal.auth.integration.builder.AuthIntegrationBuilder)

Aggregations

AuthIntegrationBuilder (com.epam.reportportal.auth.integration.builder.AuthIntegrationBuilder)1 Integration (com.epam.ta.reportportal.entity.integration.Integration)1