// Path: src/main/java/com/epam/reportportal/auth/integration/builder/AuthIntegrationBuilder.java
// public class AuthIntegrationBuilder {
// 
// 	private final Integration integration;
// 
// 	public AuthIntegrationBuilder() {
// 		integration = new Integration();
// 	}
// 
// 	public AuthIntegrationBuilder(Integration integration) {
// 		this.integration = integration;
// 	}
// 
// 	public AuthIntegrationBuilder addCreator(String username) {
// 		integration.setCreator(username);
// 		return this;
// 	}
// 
// 	public AuthIntegrationBuilder addIntegrationType(IntegrationType type) {
// 		integration.setType(type);
// 		return this;
// 	}
// 
// 	public AuthIntegrationBuilder addCreationDate(LocalDateTime creationDate) {
// 		integration.setCreationDate(creationDate);
// 		return this;
// 	}
// 
// 	public @NotNull Integration build() {
// 		return integration;
// 	}
// }
// 
// Path: src/main/java/com/epam/reportportal/auth/integration/validator/duplicate/IntegrationDuplicateValidator.java
// public interface IntegrationDuplicateValidator {
// 
// 	void validate(Integration integration);
// }
// 
// Path: src/main/java/com/epam/reportportal/auth/integration/validator/request/AuthRequestValidator.java
// public interface AuthRequestValidator<T> {
// 
// 	void validate(T authRequest);
// }


import com.epam.reportportal.auth.integration.builder.AuthIntegrationBuilder;
import com.epam.reportportal.auth.integration.validator.duplicate.IntegrationDuplicateValidator;
import com.epam.reportportal.auth.integration.validator.request.AuthRequestValidator;
import com.epam.ta.reportportal.dao.IntegrationRepository;
import com.epam.ta.reportportal.entity.integration.Integration;
import com.epam.ta.reportportal.entity.integration.IntegrationType;
import com.epam.ta.reportportal.exception.ReportPortalException;
import com.epam.ta.reportportal.ws.model.ErrorType;
import com.epam.ta.reportportal.ws.model.integration.auth.UpdateAuthRQ;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
/*
 * 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.integration.handler.impl.strategy;



/**
 * @author <a href="mailto:ihar_kahadouski@epam.com">Ihar Kahadouski</a>
 */
public abstract class AuthIntegrationStrategy {

	private final IntegrationRepository integrationRepository;
	private final AuthRequestValidator<UpdateAuthRQ> updateAuthRequestValidator;
// Path: src/main/java/com/epam/reportportal/auth/integration/builder/AuthIntegrationBuilder.java
// public class AuthIntegrationBuilder {
// 
// 	private final Integration integration;
// 
// 	public AuthIntegrationBuilder() {
// 		integration = new Integration();
// 	}
// 
// 	public AuthIntegrationBuilder(Integration integration) {
// 		this.integration = integration;
// 	}
// 
// 	public AuthIntegrationBuilder addCreator(String username) {
// 		integration.setCreator(username);
// 		return this;
// 	}
// 
// 	public AuthIntegrationBuilder addIntegrationType(IntegrationType type) {
// 		integration.setType(type);
// 		return this;
// 	}
// 
// 	public AuthIntegrationBuilder addCreationDate(LocalDateTime creationDate) {
// 		integration.setCreationDate(creationDate);
// 		return this;
// 	}
// 
// 	public @NotNull Integration build() {
// 		return integration;
// 	}
// }
// 
// Path: src/main/java/com/epam/reportportal/auth/integration/validator/duplicate/IntegrationDuplicateValidator.java
// public interface IntegrationDuplicateValidator {
// 
// 	void validate(Integration integration);
// }
// 
// Path: src/main/java/com/epam/reportportal/auth/integration/validator/request/AuthRequestValidator.java
// public interface AuthRequestValidator<T> {
// 
// 	void validate(T authRequest);
// }


// Path: src/main/java/com/epam/reportportal/auth/integration/handler/impl/strategy/AuthIntegrationStrategy.java
import com.epam.reportportal.auth.integration.builder.AuthIntegrationBuilder;
import com.epam.reportportal.auth.integration.validator.duplicate.IntegrationDuplicateValidator;
import com.epam.reportportal.auth.integration.validator.request.AuthRequestValidator;
import com.epam.ta.reportportal.dao.IntegrationRepository;
import com.epam.ta.reportportal.entity.integration.Integration;
import com.epam.ta.reportportal.entity.integration.IntegrationType;
import com.epam.ta.reportportal.exception.ReportPortalException;
import com.epam.ta.reportportal.ws.model.ErrorType;
import com.epam.ta.reportportal.ws.model.integration.auth.UpdateAuthRQ;
import java.time.LocalDateTime;
import java.time.ZoneOffset;

/*
 * 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.integration.handler.impl.strategy;



/**
 * @author <a href="mailto:ihar_kahadouski@epam.com">Ihar Kahadouski</a>
 */
public abstract class AuthIntegrationStrategy {

	private final IntegrationRepository integrationRepository;
	private final AuthRequestValidator<UpdateAuthRQ> updateAuthRequestValidator;
	private final IntegrationDuplicateValidator integrationDuplicateValidator;