/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/admin/vo/beans/AppSessionVoBean.java
//#############################################################################
//#                                                                           #
//#  Copyright (C) <2015>  <IMS MAXIMS>                                       #
//#                                                                           #
//#  This program is free software: you can redistribute it and/or modify     #
//#  it under the terms of the GNU Affero General Public License as           #
//#  published by the Free Software Foundation, either version 3 of the       #
//#  License, or (at your option) any later version.                          # 
//#                                                                           #
//#  This program is distributed in the hope that it will be useful,          #
//#  but WITHOUT ANY WARRANTY; without even the implied warranty of           #
//#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
//#  GNU Affero General Public License for more details.                      #
//#                                                                           #
//#  You should have received a copy of the GNU Affero General Public License #
//#  along with this program.  If not, see <http://www.gnu.org/licenses/>.    #
//#                                                                           #
//#  IMS MAXIMS provides absolutely NO GUARANTEE OF THE CLINICAL SAFTEY of    #
//#  this program.  Users of this software do so entirely at their own risk.  #
//#  IMS MAXIMS only ensures the Clinical Safety of unaltered run-time        #
//#  software that it builds, deploys and maintains.                          #
//#                                                                           #
//#############################################################################
//#EOH
// This code was generated by Barbara Worwood using IMS Development Environment (version 1.80 build 5589.25814)
// Copyright (C) 1995-2015 IMS MAXIMS. All rights reserved.
// WARNING: DO NOT MODIFY the content of this file

package ims.admin.vo.beans;

public class AppSessionVoBean extends ims.vo.ValueObjectBean
{
	public AppSessionVoBean()
	{
	}
	public AppSessionVoBean(ims.admin.vo.AppSessionVo vo)
	{
		this.sessionid = vo.getSessionId();
		this.username = vo.getUsername();
		this.realname = vo.getRealName();
		this.role = vo.getRole();
		this.starttime = vo.getStartTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getStartTime().getBean();
		this.idletime = vo.getIdleTime();
		this.timeout = vo.getTimeout();
		this.currentform = vo.getCurrentForm();
		this.isloggingenabled = vo.getIsLoggingEnabled();
		this.remotehost = vo.getRemoteHost();
		this.remoteaddress = vo.getRemoteAddress();
		this.node = vo.getNode();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.admin.vo.AppSessionVo vo)
	{
		this.sessionid = vo.getSessionId();
		this.username = vo.getUsername();
		this.realname = vo.getRealName();
		this.role = vo.getRole();
		this.starttime = vo.getStartTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getStartTime().getBean();
		this.idletime = vo.getIdleTime();
		this.timeout = vo.getTimeout();
		this.currentform = vo.getCurrentForm();
		this.isloggingenabled = vo.getIsLoggingEnabled();
		this.remotehost = vo.getRemoteHost();
		this.remoteaddress = vo.getRemoteAddress();
		this.node = vo.getNode();
	}

	public ims.admin.vo.AppSessionVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.admin.vo.AppSessionVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.admin.vo.AppSessionVo vo = null;
		if(map != null)
			vo = (ims.admin.vo.AppSessionVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.admin.vo.AppSessionVo();
			map.addValueObject(this, vo);
			vo.populate(map, this);
		}
		return vo;
	}

	public String getSessionId()
	{
		return this.sessionid;
	}
	public void setSessionId(String value)
	{
		this.sessionid = value;
	}
	public String getUsername()
	{
		return this.username;
	}
	public void setUsername(String value)
	{
		this.username = value;
	}
	public String getRealName()
	{
		return this.realname;
	}
	public void setRealName(String value)
	{
		this.realname = value;
	}
	public String getRole()
	{
		return this.role;
	}
	public void setRole(String value)
	{
		this.role = value;
	}
	public ims.framework.utils.beans.DateTimeBean getStartTime()
	{
		return this.starttime;
	}
	public void setStartTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.starttime = value;
	}
	public Integer getIdleTime()
	{
		return this.idletime;
	}
	public void setIdleTime(Integer value)
	{
		this.idletime = value;
	}
	public Integer getTimeout()
	{
		return this.timeout;
	}
	public void setTimeout(Integer value)
	{
		this.timeout = value;
	}
	public String getCurrentForm()
	{
		return this.currentform;
	}
	public void setCurrentForm(String value)
	{
		this.currentform = value;
	}
	public Boolean getIsLoggingEnabled()
	{
		return this.isloggingenabled;
	}
	public void setIsLoggingEnabled(Boolean value)
	{
		this.isloggingenabled = value;
	}
	public String getRemoteHost()
	{
		return this.remotehost;
	}
	public void setRemoteHost(String value)
	{
		this.remotehost = value;
	}
	public String getRemoteAddress()
	{
		return this.remoteaddress;
	}
	public void setRemoteAddress(String value)
	{
		this.remoteaddress = value;
	}
	public String getNode()
	{
		return this.node;
	}
	public void setNode(String value)
	{
		this.node = value;
	}

	private String sessionid;
	private String username;
	private String realname;
	private String role;
	private ims.framework.utils.beans.DateTimeBean starttime;
	private Integer idletime;
	private Integer timeout;
	private String currentform;
	private Boolean isloggingenabled;
	private String remotehost;
	private String remoteaddress;
	private String node;
}
