package eu.dnetlib.goldoa.domain;

import com.google.gwt.user.client.rpc.IsSerializable;

import java.util.List;

/**
 * Created by antleb on 3/4/15.
 */
public class Person implements IsSerializable {
	private String id;
	private String email;
	private String name;
	private String lastname;
	private String initials;
	private String password;
	private String telephone;
	private boolean active;
	private String orcidId;
	private Publisher publisher;
	private List<Project> coordinatedProjects;
	private List<Affiliation> affiliations;
	private List<PersonRole> roles;
	private String source;

	public Person(String id, String email, String name, String lastname, String initials, String password, String telephone, boolean active, String orcidId, Publisher publisher, List<Project> coordinatedProjects, List<Affiliation> affiliations, List<PersonRole> roles, String source) {
		this.id = id;
		this.email = email;
		this.name = name;
		this.lastname = lastname;
		this.initials = initials;
		this.password = password;
		this.telephone = telephone;
		this.active = active;
		this.orcidId = orcidId;
		this.publisher = publisher;
		this.coordinatedProjects = coordinatedProjects;
		this.affiliations = affiliations;
		this.roles = roles;
		this.source = source;
	}

	public Person() {
	}

	public Person(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

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

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public String getInitials() {
		return initials;
	}

	public void setInitials(String initials) {
		this.initials = initials;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}

	public String getOrcidId() {
		return orcidId;
	}

	public void setOrcidId(String orcidId) {
		this.orcidId = orcidId;
	}

	public List<Project> getCoordinatedProjects() {
		return coordinatedProjects;
	}

	public void setCoordinatedProjects(List<Project> coordinatedProjects) {
		this.coordinatedProjects = coordinatedProjects;
	}

	public List<Affiliation> getAffiliations() {
		return affiliations;
	}

	public void setAffiliations(List<Affiliation> affiliations) {
		this.affiliations = affiliations;
	}

	public List<PersonRole> getRoles() {
		return roles;
	}

	public void setRoles(List<PersonRole> roles) {
		this.roles = roles;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public Publisher getPublisher() {
		return publisher;
	}

	public void setPublisher(Publisher publisher) {
		this.publisher = publisher;
	}
}