/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/admin/vo/beans/AppRoleVoBean.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 AppRoleVoBean extends ims.vo.ValueObjectBean
{
	public AppRoleVoBean()
	{
	}
	public AppRoleVoBean(ims.admin.vo.AppRoleVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.name = vo.getName();
		this.isactive = vo.getIsActive();
		this.requirespds = vo.getRequiresPDS();
		this.description = vo.getDescription();
		this.navigation = vo.getNavigation() == null ? null : (ims.admin.vo.beans.AppNavigationVoBean)vo.getNavigation().getBean();
		this.apprights = vo.getAppRights() == null ? null : vo.getAppRights().getBeanCollection();
		this.topbuttonconfig = vo.getTopButtonConfig() == null ? null : (ims.admin.vo.beans.AppTopButtonConfigVoBean)vo.getTopButtonConfig().getBean();
		this.formmenuactionsdenied = vo.getFormMenuActionsDenied() == null ? null : vo.getFormMenuActionsDenied().getBeanCollection();
		this.codemappings = vo.getCodeMappings() == null ? null : vo.getCodeMappings().getBeanCollection();
		this.sessiontimeout = vo.getSessionTimeout();
		this.autolocktimer = vo.getAutolockTimer();
		this.alertsaccess = vo.getAlertsAccess() == null ? null : vo.getAlertsAccess().getBeanCollection();
		this.spinerbac = vo.getSpineRbac() == null ? null : (ims.admin.vo.beans.RBACBaselineJobRoleLiteVoBean)vo.getSpineRbac().getBean();
		this.pdsrights = vo.getPdsRights() == null ? null : vo.getPdsRights().getBeanCollection();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.admin.vo.AppRoleVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.name = vo.getName();
		this.isactive = vo.getIsActive();
		this.requirespds = vo.getRequiresPDS();
		this.description = vo.getDescription();
		this.navigation = vo.getNavigation() == null ? null : (ims.admin.vo.beans.AppNavigationVoBean)vo.getNavigation().getBean(map);
		this.apprights = vo.getAppRights() == null ? null : vo.getAppRights().getBeanCollection();
		this.topbuttonconfig = vo.getTopButtonConfig() == null ? null : (ims.admin.vo.beans.AppTopButtonConfigVoBean)vo.getTopButtonConfig().getBean(map);
		this.formmenuactionsdenied = vo.getFormMenuActionsDenied() == null ? null : vo.getFormMenuActionsDenied().getBeanCollection();
		this.codemappings = vo.getCodeMappings() == null ? null : vo.getCodeMappings().getBeanCollection();
		this.sessiontimeout = vo.getSessionTimeout();
		this.autolocktimer = vo.getAutolockTimer();
		this.alertsaccess = vo.getAlertsAccess() == null ? null : vo.getAlertsAccess().getBeanCollection();
		this.spinerbac = vo.getSpineRbac() == null ? null : (ims.admin.vo.beans.RBACBaselineJobRoleLiteVoBean)vo.getSpineRbac().getBean(map);
		this.pdsrights = vo.getPdsRights() == null ? null : vo.getPdsRights().getBeanCollection();
	}

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

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

	public Integer getId()
	{
		return this.id;
	}
	public void setId(Integer value)
	{
		this.id = value;
	}
	public int getVersion()
	{
		return this.version;
	}
	public void setVersion(int value)
	{
		this.version = value;
	}
	public String getName()
	{
		return this.name;
	}
	public void setName(String value)
	{
		this.name = value;
	}
	public Boolean getIsActive()
	{
		return this.isactive;
	}
	public void setIsActive(Boolean value)
	{
		this.isactive = value;
	}
	public Boolean getRequiresPDS()
	{
		return this.requirespds;
	}
	public void setRequiresPDS(Boolean value)
	{
		this.requirespds = value;
	}
	public String getDescription()
	{
		return this.description;
	}
	public void setDescription(String value)
	{
		this.description = value;
	}
	public ims.admin.vo.beans.AppNavigationVoBean getNavigation()
	{
		return this.navigation;
	}
	public void setNavigation(ims.admin.vo.beans.AppNavigationVoBean value)
	{
		this.navigation = value;
	}
	public ims.admin.vo.beans.AppRightVoBean[] getAppRights()
	{
		return this.apprights;
	}
	public void setAppRights(ims.admin.vo.beans.AppRightVoBean[] value)
	{
		this.apprights = value;
	}
	public ims.admin.vo.beans.AppTopButtonConfigVoBean getTopButtonConfig()
	{
		return this.topbuttonconfig;
	}
	public void setTopButtonConfig(ims.admin.vo.beans.AppTopButtonConfigVoBean value)
	{
		this.topbuttonconfig = value;
	}
	public ims.admin.vo.beans.FormMenuActionsDeniedVoBean[] getFormMenuActionsDenied()
	{
		return this.formmenuactionsdenied;
	}
	public void setFormMenuActionsDenied(ims.admin.vo.beans.FormMenuActionsDeniedVoBean[] value)
	{
		this.formmenuactionsdenied = value;
	}
	public ims.core.vo.beans.TaxonomyMapBean[] getCodeMappings()
	{
		return this.codemappings;
	}
	public void setCodeMappings(ims.core.vo.beans.TaxonomyMapBean[] value)
	{
		this.codemappings = value;
	}
	public Integer getSessionTimeout()
	{
		return this.sessiontimeout;
	}
	public void setSessionTimeout(Integer value)
	{
		this.sessiontimeout = value;
	}
	public Integer getAutolockTimer()
	{
		return this.autolocktimer;
	}
	public void setAutolockTimer(Integer value)
	{
		this.autolocktimer = value;
	}
	public ims.core.vo.beans.AlertAccessRightVoBean[] getAlertsAccess()
	{
		return this.alertsaccess;
	}
	public void setAlertsAccess(ims.core.vo.beans.AlertAccessRightVoBean[] value)
	{
		this.alertsaccess = value;
	}
	public ims.admin.vo.beans.RBACBaselineJobRoleLiteVoBean getSpineRbac()
	{
		return this.spinerbac;
	}
	public void setSpineRbac(ims.admin.vo.beans.RBACBaselineJobRoleLiteVoBean value)
	{
		this.spinerbac = value;
	}
	public ims.admin.vo.beans.AppRightVoBean[] getPdsRights()
	{
		return this.pdsrights;
	}
	public void setPdsRights(ims.admin.vo.beans.AppRightVoBean[] value)
	{
		this.pdsrights = value;
	}

	private Integer id;
	private int version;
	private String name;
	private Boolean isactive;
	private Boolean requirespds;
	private String description;
	private ims.admin.vo.beans.AppNavigationVoBean navigation;
	private ims.admin.vo.beans.AppRightVoBean[] apprights;
	private ims.admin.vo.beans.AppTopButtonConfigVoBean topbuttonconfig;
	private ims.admin.vo.beans.FormMenuActionsDeniedVoBean[] formmenuactionsdenied;
	private ims.core.vo.beans.TaxonomyMapBean[] codemappings;
	private Integer sessiontimeout;
	private Integer autolocktimer;
	private ims.core.vo.beans.AlertAccessRightVoBean[] alertsaccess;
	private ims.admin.vo.beans.RBACBaselineJobRoleLiteVoBean spinerbac;
	private ims.admin.vo.beans.AppRightVoBean[] pdsrights;
}
