/**
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (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.mozilla.org/MPL/ 
* 
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations under
* the License.
* 
* The Original Code is OpenELIS code.
* 
* Copyright (C) The Minnesota Department of Health.  All Rights Reserved.
* 
* Contributor(s): CIRG, University of Washington, Seattle WA.
*/
package us.mn.state.health.lims.systemuser.valueholder;

import us.mn.state.health.lims.common.valueholder.EnumValueItemImpl;
import us.mn.state.health.lims.systemusermodule.valueholder.PermissionAgent;

public class SystemUser extends EnumValueItemImpl implements PermissionAgent{

	private static final long serialVersionUID = 1L;

	private String id;

	private String firstName;

	private String lastName;

	private String loginName;

	private String isActive;

	private String isEmployee;

	private String externalId;

	private String initials;

	public SystemUser() {
	}

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

	public String getId() {
		return id;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setExternalId(String externalId) {
		this.externalId = externalId;
	}

	public String getExternalId() {
		return externalId;
	}

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

	public String getInitials() {
		return initials;
	}

	public void setIsActive(String isActive) {
		this.isActive = isActive;
	}

	public String getIsActive() {
		return isActive;
	}

	public void setIsEmployee(String isEmployee) {
		this.isEmployee = isEmployee;
	}

	public String getIsEmployee() {
		return isEmployee;
	}

	public String getNameForDisplay() {
		return firstName + " " + lastName;
	}

	public String getDisplayName() {
		return getLastName() + "," + getFirstName();
	}

	public String getShortNameForDisplay() {
		return getNameForDisplay();
	}

}
