/*
 * 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 com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Map;

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

	private String profile;

	private boolean active;

	@JsonProperty(value = "serverEmailConfig")
	private ServerEmailResource serverEmailResource;

	private Map<String, OAuthDetailsResource> oauthConfigs;

	private Map<String, AnalyticsResource> analyticsResource;

	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 setServerEmailResource(ServerEmailResource config) {
		this.serverEmailResource = config;
	}

	public ServerEmailResource getServerEmailResource() {
		return serverEmailResource;
	}

	public Map<String, OAuthDetailsResource> getOauthConfigs() {
		return oauthConfigs;
	}

	public void setOauthConfigs(Map<String, OAuthDetailsResource> oauthConfigs) {
		this.oauthConfigs = oauthConfigs;
	}

    public Map<String, AnalyticsResource> getAnalyticsResource() {
        return analyticsResource;
    }

    public void setAnalyticsResource(Map<String, AnalyticsResource> analyticsResource) {
        this.analyticsResource = analyticsResource;
    }
}

/*
 * 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 com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Map;

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

	private String profile;

	private boolean active;

	@JsonProperty(value = "serverEmailConfig")
	private ServerEmailResource serverEmailResource;

//	private Map<String, OAuthDetailsResource> oauthConfigs;

	private Map<String, AnalyticsResource> analyticsResource;

	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 setServerEmailResource(ServerEmailResource config) {
		this.serverEmailResource = config;
	}

	public ServerEmailResource getServerEmailResource() {
		return serverEmailResource;
	}

//	public Map<String, OAuthDetailsResource> getOauthConfigs() {
//		return oauthConfigs;
//	}

//	public void setOauthConfigs(Map<String, OAuthDetailsResource> oauthConfigs) {
//		this.oauthConfigs = oauthConfigs;
//	}

    public Map<String, AnalyticsResource> getAnalyticsResource() {
        return analyticsResource;
    }

    public void setAnalyticsResource(Map<String, AnalyticsResource> analyticsResource) {
        this.analyticsResource = analyticsResource;
    }
}

comment deps of deleted class