/*
 * Copyright 2021 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.request;

import org.hibernate.validator.constraints.NotEmpty;

import com.b2international.snowowl.core.domain.TransactionContext;
import com.b2international.snowowl.core.events.Request;

/**
 * @since 8.0
 */
public abstract class BaseResourceCreateRequest implements Request<TransactionContext, String> {

	protected static final long serialVersionUID = 1L;

	// the new codesystem's ID, if not specified, it will be auto-generated
	@NotEmpty
	protected String id;
	
	@NotEmpty
	protected String url;
	
	@NotEmpty
	protected String title;
	
	protected String language;
	protected String description;
	protected String status;
	protected String copyright;
	protected String owner;
	protected String contact;
	protected String usage;
	protected String purpose;
	
	@NotEmpty
	protected String bundleId;

	public final void setId(String id) {
		this.id = id;
	}

	public final void setUrl(String url) {
		this.url = url;
	}

	public final void setTitle(String title) {
		this.title = title;
	}

	public final void setLanguage(String language) {
		this.language = language;
	}

	public final void setDescription(String description) {
		this.description = description;
	}

	public final void setStatus(String status) {
		this.status = status;
	}

	public final void setCopyright(String copyright) {
		this.copyright = copyright;
	}

	public final void setOwner(String owner) {
		this.owner = owner;
	}

	public final void setContact(String contact) {
		this.contact = contact;
	}

	public final void setUsage(String usage) {
		this.usage = usage;
	}

	public final void setPurpose(String purpose) {
		this.purpose = purpose;
	}

	public final void setBundleId(String bundleId) {
		this.bundleId = bundleId;
	}
}

/*
 * Copyright 2021 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.request;

import org.hibernate.validator.constraints.NotEmpty;

import com.b2international.snowowl.core.domain.TransactionContext;
import com.b2international.snowowl.core.events.Request;

/**
 * @since 8.0
 */
public abstract class BaseResourceCreateRequest implements Request<TransactionContext, String> {

	protected static final long serialVersionUID = 1L;

	// the new ID, if not specified, it will be auto-generated
	@NotEmpty
	protected String id;
	
	@NotEmpty
	protected String url;
	
	@NotEmpty
	protected String title;
	
	protected String language;
	protected String description;
	protected String status;
	protected String copyright;
	protected String owner;
	protected String contact;
	protected String usage;
	protected String purpose;
	
	@NotEmpty
	protected String bundleId;

	public final void setId(String id) {
		this.id = id;
	}

	public final void setUrl(String url) {
		this.url = url;
	}

	public final void setTitle(String title) {
		this.title = title;
	}

	public final void setLanguage(String language) {
		this.language = language;
	}

	public final void setDescription(String description) {
		this.description = description;
	}

	public final void setStatus(String status) {
		this.status = status;
	}

	public final void setCopyright(String copyright) {
		this.copyright = copyright;
	}

	public final void setOwner(String owner) {
		this.owner = owner;
	}

	public final void setContact(String contact) {
		this.contact = contact;
	}

	public final void setUsage(String usage) {
		this.usage = usage;
	}

	public final void setPurpose(String purpose) {
		this.purpose = purpose;
	}

	public final void setBundleId(String bundleId) {
		this.bundleId = bundleId;
	}
}

remove word code system