/*
 * Copyright 2011-2020 B2i Healthcare Pte Ltd, http://b2i.sg
 * 
 * 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.b2international.snowowl.core.rest.validation;

import java.util.Set;

import org.hibernate.validator.constraints.NotEmpty;

/**
 * @since 6.13
 */
public class ValidationRestInput {

	@NotEmpty
	private String path;
	
	@NotEmpty
	private Set<String> ruleIds;
	
	private boolean unpublishedOnly = true;
	
	public String getPath() {
		return path;
	}
	
	public void setPath(String path) {
		this.path = path;
	}
	
	@Deprecated
	public void setBranchPath(String path) {
		this.path = path;
	}
	
	public Set<String> getRuleIds() {
		return ruleIds;
	}

	public void setRuleIds(Set<String> ruleIds) {
		this.ruleIds = ruleIds;
	}

	public boolean isUnpublishedOnly() {
		return unpublishedOnly;
	}
	
	public void setUnpublishedOnly(boolean unpublishedOnly) {
		this.unpublishedOnly = unpublishedOnly;
	}
	
	@Override
	public String toString() {
		final StringBuilder builder = new StringBuilder();
		builder.append("ValidationRestInput [path=");
		builder.append(path);
		builder.append(", ruleIds=");
		builder.append(ruleIds);
		builder.append(", unpublishedOnly=");
		builder.append(unpublishedOnly);
		builder.append("]");
		return builder.toString();
	}
}

@@ -17,17 +17,17 @@
 2011-202
-0
+1
  B2i Hea
@@ -1049,88 +1049,8 @@
 %7D%0A%09%0A
-%09@Deprecated%0A%09public void setBranchPath(String path) %7B%0A%09%09this.path = path;%0A%09%7D%0A%09%0A
 %09pub

remove branchPath from ValidationRestInput