// Path: src/main/java/com/epam/reportportal/auth/integration/handler/CreateAuthIntegrationHandler.java
// public interface CreateAuthIntegrationHandler {
// 
// 	AbstractAuthResource createAuthIntegration(AuthIntegrationType type, UpdateAuthRQ request, ReportPortalUser user);
// 
// 	AbstractAuthResource updateAuthIntegration(AuthIntegrationType type, Long integrationId, UpdateAuthRQ request, ReportPortalUser user);
// 
// 	OAuthRegistrationResource createOrUpdateOauthSettings(String oauthProviderId, OAuthRegistrationResource clientRegistrationResource);
// }
// 
// Path: src/main/java/com/epam/reportportal/auth/integration/handler/DeleteAuthIntegrationHandler.java
// public interface DeleteAuthIntegrationHandler {
// 
// 	OperationCompletionRS deleteAuthIntegrationById(Long integrationId);
// 
// 	OperationCompletionRS deleteOauthSettingsById(String oauthProviderId);
// }
// 
// Path: src/main/java/com/epam/reportportal/auth/integration/handler/GetAuthIntegrationHandler.java
// public interface GetAuthIntegrationHandler {
// 
// 	AbstractAuthResource getIntegrationByType(AuthIntegrationType integrationType);
// 
// 	Map<String, OAuthRegistrationResource> getAllOauthIntegrations();
// 
// 	OAuthRegistrationResource getOauthIntegrationById(String oauthProviderId);
// }


import static org.springframework.web.bind.annotation.RequestMethod.*;
import com.epam.reportportal.auth.integration.handler.CreateAuthIntegrationHandler;
import com.epam.reportportal.auth.integration.handler.DeleteAuthIntegrationHandler;
import com.epam.reportportal.auth.integration.handler.GetAuthIntegrationHandler;
import com.epam.ta.reportportal.ws.model.OperationCompletionRS;
import com.epam.ta.reportportal.ws.model.settings.OAuthRegistrationResource;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
/*
 * Copyright 2019 EPAM Systems
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.epam.reportportal.auth.endpoint;




/**
 * Endpoint for oauth configs
 *
 * @author <a href="mailto:andrei_varabyeu@epam.com">Andrei Varabyeu</a>
 */
@Controller
@RequestMapping("/settings/oauth")
public class OAuthConfigurationEndpoint {

// Path: src/main/java/com/epam/reportportal/auth/integration/handler/CreateAuthIntegrationHandler.java
// public interface CreateAuthIntegrationHandler {
// 
// 	AbstractAuthResource createAuthIntegration(AuthIntegrationType type, UpdateAuthRQ request, ReportPortalUser user);
// 
// 	AbstractAuthResource updateAuthIntegration(AuthIntegrationType type, Long integrationId, UpdateAuthRQ request, ReportPortalUser user);
// 
// 	OAuthRegistrationResource createOrUpdateOauthSettings(String oauthProviderId, OAuthRegistrationResource clientRegistrationResource);
// }
// 
// Path: src/main/java/com/epam/reportportal/auth/integration/handler/DeleteAuthIntegrationHandler.java
// public interface DeleteAuthIntegrationHandler {
// 
// 	OperationCompletionRS deleteAuthIntegrationById(Long integrationId);
// 
// 	OperationCompletionRS deleteOauthSettingsById(String oauthProviderId);
// }
// 
// Path: src/main/java/com/epam/reportportal/auth/integration/handler/GetAuthIntegrationHandler.java
// public interface GetAuthIntegrationHandler {
// 
// 	AbstractAuthResource getIntegrationByType(AuthIntegrationType integrationType);
// 
// 	Map<String, OAuthRegistrationResource> getAllOauthIntegrations();
// 
// 	OAuthRegistrationResource getOauthIntegrationById(String oauthProviderId);
// }


// Path: src/main/java/com/epam/reportportal/auth/endpoint/OAuthConfigurationEndpoint.java
import static org.springframework.web.bind.annotation.RequestMethod.*;
import com.epam.reportportal.auth.integration.handler.CreateAuthIntegrationHandler;
import com.epam.reportportal.auth.integration.handler.DeleteAuthIntegrationHandler;
import com.epam.reportportal.auth.integration.handler.GetAuthIntegrationHandler;
import com.epam.ta.reportportal.ws.model.OperationCompletionRS;
import com.epam.ta.reportportal.ws.model.settings.OAuthRegistrationResource;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.util.Map;

/*
 * Copyright 2019 EPAM Systems
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.epam.reportportal.auth.endpoint;




/**
 * Endpoint for oauth configs
 *
 * @author <a href="mailto:andrei_varabyeu@epam.com">Andrei Varabyeu</a>
 */
@Controller
@RequestMapping("/settings/oauth")
public class OAuthConfigurationEndpoint {

	private final CreateAuthIntegrationHandler createAuthIntegrationHandler;