<?xml version="1.0" encoding="UTF-8"?>
<!--
$Id: hostHBAPortsDetail.xml,v 1.10 2008/07/09 20:48:21 kkan Exp $
$Source: /project/scm/ui/config/spring/hostHBAPortsDetail.xml,v $
$Copyright: Copyright (c) 2009 Symantec Corporation.
All rights reserved.

THIS SOFTWARE CONTAINS CONFIDENTIAL INFORMATION AND TRADE SECRETS OF
SYMANTEC CORPORATION.  USE, DISCLOSURE OR REPRODUCTION IS PROHIBITED
WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SYMANTEC CORPORATION.

The Licensed Software and Documentation are deemed to be commercial
computer software as defined in FAR 12.212 and subject to restricted
rights as defined in FAR Section 52.227-19 "Commercial Computer
Software - Restricted Rights" and DFARS 227.7202, "Rights in
Commercial Computer Software or Commercial Computer Software
Documentation", as applicable, and any successor regulations. Any use,
modification, reproduction release, performance, display or disclosure
of the Licensed Software and Documentation by the U.S. Government
shall be solely in accordance with the terms of this Agreement.  $
 -->
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xsi:schemaLocation="
  http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
  http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">

  <bean id="hostHBAPortsDetailController"
    class="vrts.scm.ui.controllers.ControllerAdapter">
    <property name="pageName" value="renderModel" />
    <property name="models">
      <map>
        <entry key="model">
          <ref
            bean="vrts.scm.ui.widgets.TreeTableModel.for.hostHBAPortsDetailController" />
        </entry>
      </map>
    </property>
  </bean>

  <bean id="vrts.scm.ui.widgets.TreeTableModel.for.hostHBAPortsDetailController"
    class="vrts.scm.ui.widgets.TreeTableModel"
    scope="session"
    >
  <aop:scoped-proxy/>
    <property name="id"
      value="vrts.scm.ui.widgets.TreeTableModel.for.hostHBAPortsDetailController" />
    <property name="forceColumnWidthResizable" value="true" />
    <property name="filter">
      <bean class="vrts.scm.ui.widgets.TableFilter">
        <property name="filters">
          <list>
            <bean class="vrts.scm.ui.widgets.KeywordFilter">
            </bean>
          </list>
        </property>
      </bean>
    </property>
    <property name="dataProvider">
      <bean class="vrts.scm.ui.widgets.DALTableDataProvider">
        <constructor-arg>
          <bean class="vrts.scm.ui.schema.HQLQuery">
            <constructor-arg index="0" value="vrts.scm.ui.valueobj.HBAPort" />
            <property name="contextInfoProcessor">
              <bean class="vrts.scm.ui.schema.ContextInfoProcessorAdapter">
                <property name="preprocessorMap">
                  <map>
                    <entry key="hostNum">
                      <map>
                        <entry key="contextInfoClause" value="rid.search.by.HostNum" />
                      </map>
                    </entry>
                    <entry key="clusterNum">
                      <map>
                        <entry key="contextInfoClause" value="host.cluster.id={0}" />
                      </map>
                    </entry>
                  </map>
                </property>
              </bean>
            </property>
          </bean>
        </constructor-arg>
      </bean>
    </property>

    <property name="columnMap">
      <map>
        <entry key="id">
          <ref bean="tcIdInvisible" />
        </entry>

        <entry key="portDisplayName">
          <bean class="vrts.scm.ui.widgets.TreeTableColumn">
            <property name="name" value="portDisplayName" />
            <property name="header" value="Port Name" />
            <property name="type" value="HTML" />
            <property name="dataFormatter">
              <bean class="vrts.scm.ui.widgets.ObjectLinkTCF">
                <constructor-arg index="0" value="HAL_FibreChannelPort"/>
                <constructor-arg index="1" value="id"/>
                <property name="objectProperty" value="this"/>
                <property name="instanceNum" value="true"/>
              </bean>
            </property>
          </bean>
        </entry>
        <entry key="portWWN">
          <bean class="vrts.scm.ui.widgets.TreeTableColumn">
            <property name="name" value="portWWN" />
            <property name="header" value="Port WWN" />
            <property name="visible" value="false" />
          </bean>
        </entry>
        <entry key="host.hostName">
          <bean class="vrts.scm.ui.widgets.TreeTableColumn">
            <property name="name" value="host.hostName" />
            <property name="header" value="Host" />
            <property name="visible" value="false" />
            <property name="type" value="HTML" />
            <property name="dataFormatter">
              <bean class="vrts.scm.ui.widgets.ObjectLinkTCF">
                <constructor-arg index="0" value="HAL_Host"/>
                <constructor-arg index="1" value="host.id"/>
                <property name="objectProperty" value="host"/>
				<property name="instanceNum" value="true"/>
              </bean>
			</property>
          </bean>
        </entry>
        <entry key="hbaDisplayName">
          <bean class="vrts.scm.ui.widgets.TreeTableColumn">
            <property name="name" value="hbaDisplayName" />
            <property name="header" value="HBA Name" />
            <property name="type" value="HTML" />
            <property name="dataFormatter">
              <bean class="vrts.scm.ui.widgets.ObjectLinkTCF">
                <constructor-arg index="0" value="FC_HBA"/>
                <constructor-arg index="1" value="hbaNum"/>
                <property name="objectProperty" value="hba"/>
				<property name="instanceNum" value="true"/>
              </bean>
      </property>
          </bean>
        </entry>
        <entry key="portState">
          <bean class="vrts.scm.ui.widgets.TreeTableColumn">
            <property name="name" value="portState" />
            <property name="header" value="Port State" />
          </bean>
        </entry>

        <entry key="connectedPortName">
          <bean class="vrts.scm.ui.widgets.TreeTableColumn">
            <property name="name" value="connectedPortName" />
            <property name="header" value="Connected Port" />
            <property name="type" value="HTML" />
            <property name="dataFormatter">
              <bean class="vrts.scm.ui.widgets.ObjectLinkTCF">
                <constructor-arg index="0" value="FC_FibreChannelPort"/>
                <constructor-arg index="1" value="connectedPortNum"/>
                <property name="objectProperty" value="connectedPort"/>
				<property name="instanceNum" value="true"/>
              </bean>
			</property>
          </bean>
        </entry>

        <entry key="connectedSwitchName">
          <bean class="vrts.scm.ui.widgets.TreeTableColumn">
            <property name="name" value="connectedSwitchName" />
            <property name="header" value="Connected Switch" />
            <property name="type" value="HTML" />
            <property name="dataFormatter">
              <bean class="vrts.scm.ui.widgets.ObjectLinkTCF">
                <constructor-arg index="0" value="FC_SanSwitch"/>
                <constructor-arg index="1" value="connectedSwitchNum"/>
                <property name="objectProperty" value="connectedSwitch"/>
				<property name="instanceNum" value="true"/>
              </bean>
      </property>
          </bean>
        </entry>
        <entry key="fabricDisplayName">
          <bean class="vrts.scm.ui.widgets.TreeTableColumn">
            <property name="name" value="fabricDisplayName" />
            <property name="header" value="Fabric" />
            <property name="type" value="HTML" />
            <property name="dataFormatter">
              <bean class="vrts.scm.ui.widgets.ObjectLinkTCF">
                <constructor-arg index="0" value="FC_Fabric"/>
                <constructor-arg index="1" value="fabric.id"/>
                <property name="objectProperty" value="fabric"/>
				<property name="instanceNum" value="true"/>
              </bean>
      </property>
          </bean>
        </entry>
      </map>
    </property>
  </bean>
</beans>
