/*
 * 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.project.config;

import java.util.List;
import java.util.Map;

import org.springframework.hateoas.ResourceSupport;

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

/**
 * Project settings resource output
 * 
 * @author Andrei_Ramanchuk
 *
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ProjectSettingsResource extends ResourceSupport {

	@JsonProperty(value = "project", required = true)
	private String projectId;

	@JsonProperty(value = "subTypes", required = true)
	private Map<String, List<IssueSubTypeResource>> subTypes;

	@JsonProperty
	private String statsCalculationStrategy;

	public void setProjectId(String id) {
		this.projectId = id;
	}

	public String getProjectId() {
		return projectId;
	}

	public void setSubTypes(Map<String, List<IssueSubTypeResource>> types) {
		this.subTypes = types;
	}

	public Map<String, List<IssueSubTypeResource>> getSubTypes() {
		return subTypes;
	}

	public String getStatsCalculationStrategy() {
		return statsCalculationStrategy;
	}

	public void setStatsCalculationStrategy(String statsCalculationStrategy) {
		this.statsCalculationStrategy = statsCalculationStrategy;
	}
}
@@ -1463,36 +1463,30 @@
  String stat
-sCalculation
+istics
 Strategy;%0A%0A%09
@@ -1814,36 +1814,30 @@
 ring getStat
-sCalculation
+istics
 Strategy() %7B
@@ -1846,36 +1846,30 @@
 %09return stat
-sCalculation
+istics
 Strategy;%0A%09%7D
@@ -1890,28 +1890,22 @@
  setStat
-sCalculation
+istics
 Strategy
@@ -1912,36 +1912,30 @@
 (String stat
-sCalculation
+istics
 Strategy) %7B%0A
@@ -1941,36 +1941,30 @@
 %0A%09%09this.stat
-sCalculation
+istics
 Strategy = s
@@ -1970,20 +1970,14 @@
 stat
-sCalculation
+istics
 Stra

update some field names