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);
}
Aggregations