<page xmlns="http://bali.us.oracle.com/cabo/baja" 
      xmlns:baja="http://bali.us.oracle.com/cabo/baja" 
      xmlns:marlin="http://bali.us.oracle.com/cabo/marlin"
      xmlns:html="http://www.w3.org/TR/REC-html40"
      xmlns:oem="http://xmlns.oracle.com/oem/ui/beans"
      xmlns:data="http://bali.us.oracle.com/cabo/marlin">

  <!-- Title bar -->
  <baja:head xmlns="http://bali.us.oracle.com/cabo/marlin"
             xmlns:html="http://www.w3.org/TR/REC-html40">
      <dataScope>
        <contents>
          <html:title> 
            <text data:text="FILER_VOLUMES_PAGE_TITLE@filerPageTitles"/>
          </html:title> 
        <html:noScript> "JavaScript is not supported by your browser. Oracle requires JavaScript support in order to completely render this page." </html:noScript>
        </contents>
        <provider>
          <data name="filerPageTitles">
            <method class="oracle.sysman.eml.target.filer.FilerCurDetailDataObject"
                    method="getFilerPageTitles"/>
          </data>
        </provider>
      </dataScope>
  </baja:head>

  <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin">
    <dataScope>

      <contents>
        <pageLayout>
          <mediumAdvertisement>
            <include baja:node="../../oemBanner" />
          </mediumAdvertisement>
          <globalButtons>
            <include baja:node="../../globalButtonBar" />
          </globalButtons>
          <tabs>
            <include baja:node="../../globalTabs" />
          </tabs>
          <pageHeader>
            <include baja:node="../../globalHeader" />
          </pageHeader>

          <location>
            <include baja:node="../../breadCrumbs"/>
          </location>

          <copyright>
            <include baja:node="../../copyright"/>
          </copyright>

          <contents>


            <header data:text="header@filerInfo">
              <contents>

                <subTabBar orientation="top"
                     data:selectedIndex="selectedTab@folderInfo">
                   <contents>
                    <link data:text="HOME@mntrResourceBundle"
                          data:destination="filerOverviewDest@folderInfo"/>
                    <oem:license>
                    <contents>
                    <link data:text="FILER_PERFORMANCE@filerResourceBundle"  
                          data:destination="filerPerformanceDest@folderInfo"/>
                    </contents>
                    </oem:license>
                    <link data:text="FILER_VOLUMES@filerResourceBundle"  
		                      data:destination="filerVolumeDest@folderInfo"/>
                    <link data:text="FILER_QTREES@filerResourceBundle"  
                          data:destination="filerQtreeDest@folderInfo"/>
                   </contents>
               </subTabBar>

               <tableLayout width="100%">
                <contents>
                 <rowLayout>
                  <contents>
                   <cellFormat>
                    <contents>
                     <switcher data:childName="showtime@filerInfo">
                      <case name="true">
                       <rowLayout hAlign="right">
                        <contents>
                        <styledText styleClass="OraTipText"
                                    vAlign="middle"
                                    data:text="PAGE_REFRESHED@mntrResourceBundle" />
                        <spacer  width="5"/>
                         <styledText styleClass="OraTipLabel" data:text="timestamp@filerInfo"/>
                         <spacer  width="5"/>
                         <image data:source="refreshIcon@filerInfo"
                                data:destination="refreshUrl@filerInfo"
                                data:shortDesc="REFRESH_DATA@commonResourceBundle"/>
                        </contents>
                       </rowLayout>
                      </case>
                     </switcher>
                    </contents>
                   </cellFormat>
                  </contents>
                 </rowLayout>
                </contents>
               </tableLayout>

               <header data:text="VOLUME_LIST@filerResourceBundle">
                <contents>
                <switcher data:childName="node@filerInfo">
                <case name="okNode">

                 <table data:tableData="row@volumeRowKey@filerInfo"
                        width="100%"
                        partialRenderMode="self"
                        showAll="yes"
                        id="volumeRowKey"
                        data:value="value@volumeRowKey@filerInfo"
                        data:blockSize="blockSize@volumeRowKey@filerInfo"
                        data:minValue="1"
                        data:maxValue="maxValue@volumeRowKey@filerInfo"
                        data:columnHeaderData="column@volumeRowKey@filerInfo"
                        data:columnFormats="colformat@columnData"
                        data:alternateText="FILER_ALT@filerResourceBundle"
                        data:summary="FILER_VOLUMES@filerResourceBundle">

                  <tableFormat tableBanding="rowBanding"/>

                  <columnHeaderStamp>
                    <sortableHeader data:text="text"
                                    data:sortable="sortable"/>
                  </columnHeaderStamp>

                  <contents>
                    <styledText data:text="volKey"
                           data:destination="volDestKey"/>
                    <image data:source="volSeverity"
                           data:shortDesc="statusContextHelp"/>
                    <styledText data:text="volSize"/>
            		    <styledText data:text="volAvailable"/>
                    <styledText data:text="volUsed"/>
		                <dataScope>
                     <contents>
                      <image data:source="img0Src"
                             data:width="img0Width"
                             data:height="img0Height"
                             data:destination="filerAvailPctDest"
                             data:shortDesc="FILER_VOLUME_DESC@filerResourceBundle"/>
                      <image data:source="img1Src"
                             data:width="img1Width"
                             data:height="img1Height"
                             data:destination="filerAvailPctDest"
                             data:shortDesc="FILER_VOLUME_DESC@filerResourceBundle"/>
                      <image data:source="img2Src"
                             data:width="img2Width"
                             data:height="img2Height"
                             data:destination="filerAvailPctDest"
                             data:shortDesc="FILER_VOLUME_DESC@filerResourceBundle"/>
                       <image data:source="img3Src"
                             data:width="img3Width"
                             data:height="img3Height"
                             data:destination="filerAvailPctDest"
                             data:shortDesc="FILER_VOLUME_DESC@filerResourceBundle"/> 
                      <spacer width="10"/>
                      <styledText data:text="volUsedPercent"
                                  data:destination="filerAvailPctDest"/>
                     </contents>
                    </dataScope>
			              <styledText data:text="volMaxFiles"/>
			              <styledText data:text="volAvaiFiles"/>
			              <styledText data:text="volUsedFiles"/>
                    <styledText data:text="volPercentFiles"
                                data:destination="filerPercentDest"/>
                    <styledText data:text="volType"/>
                  </contents>
                 </table>


                </case>
                <case name="errNode">
                 <messageBox data:message="errMsg@filerInfo"
                             messageType="error"
                             longDescURL="unimpl"
                             data:text="ERR_OCCUR@mntrResourceBundle">
                 </messageBox>
                </case>
               </switcher>              

               <spacer height="10"/>
              </contents>
              </header>

               <header data:text="VOLUME__ALLOCATED_LIST@filerResourceBundle">
                <contents>
                <switcher data:childName="node@filerInfo">
                <case name="okNode">

                 <table data:tableData="row@volumeAllocRowKey@filerInfo"
                        width="100%"
                        partialRenderMode="self"
                        showAll="yes"
                        id="volumeAllocRowKey"
                        data:value="value@volumeAllocRowKey@filerInfo"
                        data:blockSize="blockSize@volumeAllocRowKey@filerInfo"
                        data:minValue="1"
                        data:maxValue="maxValue@volumeAllocRowKey@filerInfo"
                        data:columnHeaderData="column@volumeAllocRowKey@filerInfo"
                        data:columnFormats="colformat@columnAllocData"
                        data:alternateText="FILER_ALT@filerResourceBundle"
                        data:summary="FILER_VOLUMES@filerResourceBundle">

                  <tableFormat tableBanding="rowBanding"/>

                  <columnHeaderStamp>
                    <sortableHeader data:text="text"
                                    data:sortable="sortable"/>
                  </columnHeaderStamp>

                  <contents>
                    <styledText data:text="volKey"
                           data:destination="volDestKey"/>
                    <image data:source="volumeAllocSeverity"
		                       data:shortDesc="statusContextHelp"/>
                    <styledText data:text="volSize"/>
		                <styledText data:text="volUnAllocated"/>
                    <styledText data:text="volAllocated"/>
		                <dataScope>
                     <contents>
                      <image data:source="img0Src"
                             data:width="img0Width"
                             data:height="img0Height"
                             data:destination="filerAvailPctDest"
                             data:shortDesc="FILER_VOLUME_DESC@filerResourceBundle"/>
                      <image data:source="img1Src"
                             data:width="img1Width"
                             data:height="img1Height"
                             data:destination="filerAvailPctDest"
                             data:shortDesc="FILER_VOLUME_DESC@filerResourceBundle"/>
                      <image data:source="img2Src"
                             data:width="img2Width"
                             data:height="img2Height"
                             data:destination="filerAvailPctDest"
                             data:shortDesc="FILER_VOLUME_DESC@filerResourceBundle"/>
                       <image data:source="img3Src"
                             data:width="img3Width"
                             data:height="img3Height"
                             data:destination="filerAvailPctDest"
                             data:shortDesc="FILER_VOLUME_DESC@filerResourceBundle"/> 
                      <spacer width="10"/>
                      <styledText data:text="volAllocatedPercent"
                                  data:destination="filerAvailPctDest"/>
                     </contents>
                    </dataScope>
                    <styledText data:text="volType"/>
                  </contents>
                 </table>

                </case>
                <case name="errNode">
                 <messageBox data:message="errMsg@filerInfo"
                             messageType="error"
                             longDescURL="unimpl"
                             data:text="ERR_OCCUR@mntrResourceBundle">
                 </messageBox>
                </case>
               </switcher>              

               <spacer height="10"/>
              </contents>
              </header>

               <header data:text="SNAPSHOT_LIST@filerResourceBundle">
                <contents>
                <switcher data:childName="node@filerInfo">
                <case name="okNode">

                 <table data:tableData="row@snapshotRowKey@filerInfo"
                        width="100%"
                        partialRenderMode="self"
                        showAll="yes"
                        id="snapshotRowKey"
                        data:value="value@snapshotRowKey@filerInfo"
                        data:blockSize="blockSize@snapshotRowKey@filerInfo"
                        data:minValue="1"
                        data:maxValue="maxValue@snapshotRowKey@filerInfo"
                        data:columnHeaderData="column@snapshotRowKey@filerInfo"
                        data:columnFormats="colformat@snapColumnData"
                        data:alternateText="FILER_ALT@filerResourceBundle"
                        data:summary="SNAPSHOT_LIST@filerResourceBundle">

                  <tableFormat tableBanding="rowBanding"/>

                  <columnHeaderStamp>
                    <sortableHeader data:text="text"
                                    data:sortable="sortable"/>
                  </columnHeaderStamp>

                  <contents>
                    <styledText data:text="snapKey"/>
                    <image data:source="snapSeverity"
		                       data:shortDesc="statusContextHelp"/>
                    <styledText data:text="snapSize"/>
		                <styledText data:text="snapAvailable"/>
                    <styledText data:text="snapUsed"/>
		                <dataScope>
                     <contents>
                      <image data:source="img0Src"
                             data:width="img0Width"
                             data:height="img0Height"
                             data:destination="filerAvailPctDest"
                             data:shortDesc="FILER_VOLUME_DESC@filerResourceBundle"/>
                      <image data:source="img1Src"
                             data:width="img1Width"
                             data:height="img1Height"
                             data:destination="filerAvailPctDest"
                             data:shortDesc="FILER_VOLUME_DESC@filerResourceBundle"/>
                      <image data:source="img2Src"
                             data:width="img2Width"
                             data:height="img2Height"
                             data:destination="filerAvailPctDest"
                             data:shortDesc="FILER_VOLUME_DESC@filerResourceBundle"/>
                       <image data:source="img3Src"
                             data:width="img3Width"
                             data:height="img3Height"
                             data:destination="filerAvailPctDest"
                             data:shortDesc="FILER_VOLUME_DESC@filerResourceBundle"/> 
                      <spacer width="10"/>
                      <styledText data:text="snapUsedPercent"
                                  data:destination="filerAvailPctDest"/>
                     </contents>
                    </dataScope>
                    <styledText data:text="volType"/>
                  </contents>
                 </table>

                </case>
                <case name="errNode">
                 <messageBox data:message="errMsg@filerInfo"
                             messageType="error"
                             longDescURL="unimpl"
                             data:text="ERR_OCCUR@mntrResourceBundle">
                  </messageBox>
                 </case>
                </switcher>              
               </contents>
              </header>

           <spacer width="5"/>
	         <spacer height="20"/>

	          <subTabBar orientation="top"
                       data:selectedIndex="selectedTab@folderInfo">
                <contents>
                  <link data:text="HOME@mntrResourceBundle"
                        data:destination="filerOverviewDest@folderInfo"/>
                  <oem:license>
                  <contents>
                  <link data:text="FILER_PERFORMANCE@filerResourceBundle"  
                        data:destination="filerPerformanceDest@folderInfo"/>
                   </contents>
                   </oem:license>
                  <link data:text="FILER_VOLUMES@filerResourceBundle"  
	                      data:destination="filerVolumeDest@folderInfo"/>
                  <link data:text="FILER_QTREES@filerResourceBundle"  
                        data:destination="filerQtreeDest@folderInfo"/>
                 </contents>
             </subTabBar>

	          <spacer height="10"/>

            <header data:text="RELATED_LINKS@filerResourceBundle">
	      <contents>
	    	<tableLayout cellSpacing="2" width="100%">
	    	  <contents>	         
	            <rowLayout>
	    	      <contents>
	    	        <bulletedList rows="2">
	    		  <contents data:childData="relatedLinks@filerRelateInfo">
	    		    <link data:text="text"
	    		          data:destination="destination"
	    		          data:targetFrame="propNewWin"/>		     
	    		  </contents>		     
	    		</bulletedList>
	    	      </contents>
	            </rowLayout>	         
	          </contents>
	    	</tableLayout>
	      </contents>
            </header>

             </contents>
            </header>
          </contents>
        </pageLayout>
      </contents>

      <provider>
        <data name="filerInfo">
          <method class="oracle.sysman.eml.target.filer.FilerCurDetailDataObject"
                  method="getFilerVolumeInfo"/>
        </data>

<!-- Commented out as we fetch all 3 Volume metrics at once, in FilerCurDetailDataObject.
        <data name="filerAllocInfo">
          <method class="oracle.sysman.eml.target.filer.FilerCurDetailDataObject"
                  method="getVolumeAllocation"/>
        </data>

        <data name="snapDetails">
          <method class="oracle.sysman.eml.target.filer.FilerCurDetailDataObject"
                  method="getSnapshotInfo"/>
        </data>
-->


        <data name="commonResourceBundle">
            <bundle class="oracle.sysman.resources.CommonResourceBundle"/>
        </data>

        <data name="mntrResourceBundle">
            <bundle class="oracle.sysman.resources.MntrResourceBundle"/>
        </data>

        <data name="filerResourceBundle">
            <bundle class="oracle.sysman.eml.rsc.target.filer.FilerResourceBundle"/>
        </data>

        <data name="columnData">
         <inline>
          <colformat/>
          <colformat columnDataFormat="iconButtonFormat" width="10%"/> 
          <colformat columnDataFormat="numberFormat"/>
          <colformat columnDataFormat="numberFormat"/>
          <colformat columnDataFormat="numberFormat"/>
	        <colformat/>
          <colformat columnDataFormat="numberFormat"/>
          <colformat columnDataFormat="numberFormat"/>
          <colformat columnDataFormat="numberFormat"/>
	        <colformat columnDataFormat="numberFormat"/>
         </inline>
        </data>

        <data name="columnAllocData">
         <inline>
          <colformat/>
          <colformat columnDataFormat="iconButtonFormat" width="10%"/> 
          <colformat columnDataFormat="numberFormat"/>
          <colformat columnDataFormat="numberFormat"/>
          <colformat columnDataFormat="numberFormat"/>
          <colformat/>
         </inline>
        </data>

        <data name="snapColumnData">
         <inline>
          <colformat/>
          <colformat columnDataFormat="iconButtonFormat" width="10%"/> 
          <colformat columnDataFormat="numberFormat"/>
          <colformat columnDataFormat="numberFormat"/>
          <colformat columnDataFormat="numberFormat"/>
          <colformat/>
         </inline>
        </data>

	      <data name="filerRelateInfo">
          <method class="oracle.sysman.eml.target.filer.FilerOverviewDataObject"
                  method="getFilerRelateInfo"/>
        </data>

       <data name="folderInfo">
          <method class="oracle.sysman.eml.target.filer.FilerOverviewDataObject"
                  method="getFoldersInfo"/>
       </data>
      </provider>

    </dataScope>
  </baja:content>
  <handlers>
    <!-- use this handler to enter this page -->
    <event name="doLoad">
      <method class="oracle.sysman.eml.target.filer.FilerCurDetailDataObject" 
              method="doLoad"/>
    </event>

    <event name="goto" source="*">
      <method class="oracle.sysman.eml.target.filer.FilerCurDetailDataObject"
              method="doGotoMultipleTables"/>
    </event>

    <event name="sort" source="*">
      <method class="oracle.sysman.eml.target.filer.FilerCurDetailDataObject"
              method="doSortMultipleTables"/>
    </event>
  </handlers>

</page>
