/*
 * Copyright 2016 EPAM Systems
 * 
 * 
 * This file is part of EPAM Report Portal.
 * https://github.com/reportportal/commons-model
 * 
 * Report Portal is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Report Portal is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Report Portal.  If not, see <http://www.gnu.org/licenses/>.
 */ 

package com.epam.ta.reportportal.ws.model.settings;

import org.springframework.hateoas.ResourceSupport;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Global server settings response of stored properties
 * 
 * @author Andrei_Ramanchuk
 *
 */
@JsonInclude(Include.NON_NULL)
public class ServerSettingsResource extends ResourceSupport {

	@JsonProperty(value = "profile")
	private String profile;

	@JsonProperty(value = "active")
	private boolean active;

	@JsonProperty(value = "serverEmailConfig")
	private ServerEmailConfig serverEmailConfig;

	/* ~~~~~ Getters and setters block ~~~~~ */
	public void setProfile(String id) {
		this.profile = id;
	}

	public String getProfile() {
		return profile;
	}

	public void setActive(boolean is) {
		this.active = is;
	}

	public boolean getActive() {
		return active;
	}

	public void setServerEmailConfig(ServerEmailConfig config) {
		this.serverEmailConfig = config;
	}

	public ServerEmailConfig getServerEmailConfig() {
		return serverEmailConfig;
	}
}
@@ -1064,16 +1064,39 @@
 perty;%0A%0A
+import java.util.Map;%0A%0A
 /**%0A * G
@@ -1490,16 +1490,74 @@
 onfig;%0A%0A
+%09private Map%3CString, OAuthDetailsResource%3E oauthConfigs;%0A%0A
 %09/* ~~~~
@@ -1967,24 +1967,24 @@
 lConfig() %7B%0A
-
 %09%09return ser
@@ -2001,10 +2001,218 @@
 nfig;%0A%09%7D
+%0A%0A%09public Map%3CString, OAuthDetailsResource%3E getOauthConfigs() %7B%0A%09%09return oauthConfigs;%0A%09%7D%0A%0A%09public void setOauthConfigs(Map%3CString, OAuthDetailsResource%3E oauthConfigs) %7B%0A%09%09this.oauthConfigs = oauthConfigs;%0A%09%7D
 %0A%7D

update server settings resource model