// Path: src/main/java/hudson/plugins/global_build_stats/FieldFilter.java
// public interface FieldFilter {
// 
// 	boolean isFieldValueValid(String fieldValue);
// 	
// 	public static final FieldFilter ALL = new FieldFilter() {
// 		@Override
// 		public boolean isFieldValueValid(String fieldValue) {
// 			return true;
// 		}
// 	};
// }
// 
// Path: src/main/java/hudson/plugins/global_build_stats/FieldFilterFactory.java
// public class FieldFilterFactory {
// 
// 	/**
// 	 * @deprecated Use REGEX_FIELD_FILTER_LABEL instead of this field (since v5 GlobalBuildStats file format)
// 	 */
// 	@Deprecated
// 	public static final String OLD_JOB_NAME_REGEX_LABEL = "jobNameRegex";
// 	public static final String ALL_VALUES_FILTER_LABEL = "ALL";
// 	public static final String REGEX_FIELD_FILTER_LABEL = "fieldRegex";
// 	
// 	private static final Pattern REGEX_FIELD_FILTER_PATTERN = Pattern.compile(REGEX_FIELD_FILTER_LABEL+"\\((.*)\\)");
// 	private static final Pattern ALL_VALUES_FILTER_PATTERN = Pattern.compile(ALL_VALUES_FILTER_LABEL);
// 	
// 	public static FieldFilter createFieldFilter(String fieldFilter){
// 		if(fieldFilter == null || ALL_VALUES_FILTER_PATTERN.matcher(fieldFilter).matches()){
// 			return FieldFilter.ALL;
// 		} else {
// 			Matcher fieldFilterMatcher = REGEX_FIELD_FILTER_PATTERN.matcher(fieldFilter);
// 			if(fieldFilterMatcher.matches()){
// 				return new RegexFieldFilter(fieldFilterMatcher.group(1));
// 			} else {
// 				return FieldFilter.ALL;
// 			}
// 		}
// 	}
// }


import hudson.plugins.global_build_stats.FieldFilter;
import hudson.plugins.global_build_stats.FieldFilterFactory;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.kohsuke.stapler.export.Exported;
import org.kohsuke.stapler.export.ExportedBean;
	/**
	 * Use getBuildFilters().isNotBuildShown() instead
	 */
	@Deprecated
	public boolean isNotBuildShown(){
		return (shownBuildResults & BuildResult.NOT_BUILD.code) != 0;
	}

	/**
	 * Use getBuildFilters().getJobFilter() instead
	 */
	@Deprecated
	public String getJobFilter() {
		return jobFilter;
	}

	/**
	 * Use getBuildFilters().getNodeFilter() instead
	 */
	@Deprecated
	public String getNodeFilter() {
		return nodeFilter;
	}
	
	/**
	 * Use getBuildFilters().setJobFilter(jobFilter) instead
	 */
	@Deprecated
	public void setJobFilter(String jobFilter) {
		this.jobFilter = jobFilter;
// Path: src/main/java/hudson/plugins/global_build_stats/FieldFilter.java
// public interface FieldFilter {
// 
// 	boolean isFieldValueValid(String fieldValue);
// 	
// 	public static final FieldFilter ALL = new FieldFilter() {
// 		@Override
// 		public boolean isFieldValueValid(String fieldValue) {
// 			return true;
// 		}
// 	};
// }
// 
// Path: src/main/java/hudson/plugins/global_build_stats/FieldFilterFactory.java
// public class FieldFilterFactory {
// 
// 	/**
// 	 * @deprecated Use REGEX_FIELD_FILTER_LABEL instead of this field (since v5 GlobalBuildStats file format)
// 	 */
// 	@Deprecated
// 	public static final String OLD_JOB_NAME_REGEX_LABEL = "jobNameRegex";
// 	public static final String ALL_VALUES_FILTER_LABEL = "ALL";
// 	public static final String REGEX_FIELD_FILTER_LABEL = "fieldRegex";
// 	
// 	private static final Pattern REGEX_FIELD_FILTER_PATTERN = Pattern.compile(REGEX_FIELD_FILTER_LABEL+"\\((.*)\\)");
// 	private static final Pattern ALL_VALUES_FILTER_PATTERN = Pattern.compile(ALL_VALUES_FILTER_LABEL);
// 	
// 	public static FieldFilter createFieldFilter(String fieldFilter){
// 		if(fieldFilter == null || ALL_VALUES_FILTER_PATTERN.matcher(fieldFilter).matches()){
// 			return FieldFilter.ALL;
// 		} else {
// 			Matcher fieldFilterMatcher = REGEX_FIELD_FILTER_PATTERN.matcher(fieldFilter);
// 			if(fieldFilterMatcher.matches()){
// 				return new RegexFieldFilter(fieldFilterMatcher.group(1));
// 			} else {
// 				return FieldFilter.ALL;
// 			}
// 		}
// 	}
// }


// Path: src/main/java/hudson/plugins/global_build_stats/model/BuildStatConfiguration.java
import hudson.plugins.global_build_stats.FieldFilter;
import hudson.plugins.global_build_stats.FieldFilterFactory;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.kohsuke.stapler.export.Exported;
import org.kohsuke.stapler.export.ExportedBean;

	/**
	 * Use getBuildFilters().isNotBuildShown() instead
	 */
	@Deprecated
	public boolean isNotBuildShown(){
		return (shownBuildResults & BuildResult.NOT_BUILD.code) != 0;
	}

	/**
	 * Use getBuildFilters().getJobFilter() instead
	 */
	@Deprecated
	public String getJobFilter() {
		return jobFilter;
	}

	/**
	 * Use getBuildFilters().getNodeFilter() instead
	 */
	@Deprecated
	public String getNodeFilter() {
		return nodeFilter;
	}
	
	/**
	 * Use getBuildFilters().setJobFilter(jobFilter) instead
	 */
	@Deprecated
	public void setJobFilter(String jobFilter) {
		this.jobFilter = jobFilter;
		this.calculatedJobFilter = FieldFilterFactory.createFieldFilter(jobFilter);