<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: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_VOLUME_DETAILS_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 xmlns="http://bali.us.oracle.com/cabo/marlin">
          <mediumAdvertisement>
            <include baja:node="../../oemBanner" />
          </mediumAdvertisement>
          <marlin:globalButtons>
            <include baja:node="../../globalButtonBar" />
          </marlin:globalButtons>
          <marlin:tabs>
            <include baja:node="../../globalTabs" />
          </marlin:tabs>
          <marlin:pageHeader>
            <include baja:node="../../globalHeader" />
          </marlin:pageHeader>

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

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

          <contents>
            <header data:text="header@filerInfo">
              <contents>
               <tableLayout width="80%">
                <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"
                                      vAlign="middle"
                                      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>


         <switcher data:childName="volumeTypeRowKey@filerInfo">
           <case name="Aggregate">
             <header data:text="VOLUME_LIST@filerResourceBundle">
               <contents>
                 <table data:tableData="row@volumesWithAggKey@filerInfo"
                        width="100%"
                        partialRenderMode="self"
                        showAll="yes"
                        id="volumesWithAggKey"
                        data:value="value@row@volumesWithAggKey@@filerInfo"
                        data:blockSize="blockSize@filer_aggregate_details@filerInfo"
                        data:minValue="1"
                        data:maxValue="maxValue@row@volumesWithAggKey@filerInfo"
                        data:columnHeaderData="column@volumesWithAggKey@filerInfo"
                        data:columnFormats="colformat@columnDataAggVolumes"
                        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>
                   </contents>
                 </table>
                 <spacer height="10"/>
               </contents>
             </header>
           </case>
         </switcher>
                           
               

         <!-- Display underlying aggregate details for Flexible Volumes   -->

         <switcher data:childName="volumeTypeIsFlexible@filerInfo">
           <case name="true">
             <header data:text="FILER_AGGREGATE_COL@filerResourceBundle">
               <contents>
                 <tableLayout>
                   <contents>
                     <rowLayout>
                       <contents>
                         <cellFormat hAlign="right">
                           <contents>
                             <styledText text="Name" styleClass="OraPromptText"/>
                           </contents>
                         </cellFormat>
                         <spacer width="15"/>
                         <cellFormat wrappingDisabled="true" hAlign="left">
                           <contents>
                             <link styleClass="OraDataText" data:text="volKey@filer_aggregate_details@volumesWithAggKey@filerInfo"  data:destination="volDestKey@filer_aggregate_details@volumesWithAggKey@filerInfo"/>
                           </contents>
                         </cellFormat>
                       </contents>
                     </rowLayout>
                     <rowLayout>
                       <contents>
                         <cellFormat hAlign="right">
                           <contents>
                             <styledText data:text="FILER_VOLUME_TOTAL_SIZE_COL@filerResourceBundle" styleClass="OraPromptText"/>
                           </contents>
                         </cellFormat>
                       <spacer width="15"/>
                         <cellFormat wrappingDisabled="true" hAlign="left">
                           <contents>
                             <link styleClass="OraDataText" data:text="volSize@filer_aggregate_details@volumesWithAggKey@filerInfo"/>
                           </contents>
                         </cellFormat>
                       </contents>
                     </rowLayout>
                     <rowLayout data:rendered="showNormal@filerInfo">
                       <contents>
                         <cellFormat hAlign="right">
                           <contents>
                             <styledText data:text="FILER_VOLUME_ALLOCATED_COL@filerResourceBundle" styleClass="OraPromptText"/>
                           </contents>
                         </cellFormat>
                         <spacer width="15"/>
                         <cellFormat wrappingDisabled="true" hAlign="left">
                           <contents>
                             <link styleClass="OraDataText" data:text="volUsed@filer_aggregate_details@volumesWithAggKey@filerInfo"/>      
                             <spacer width="10"/>
                               <image data:source="volSeverity@filer_aggregate_details@volumesWithAggKey@filerInfo"
                                      data:shortDesc="statusContextHelp@filer_aggregate_details@volumesWithAggKey@filerInfo"/>
                           </contents>
                         </cellFormat>
                       </contents>
                     </rowLayout> 
                   </contents>
                 </tableLayout>
               </contents>
             </header>
           </case>
         </switcher>

    
               
         <switcher data:childName="volumeTypeIsAggregate@filerInfo">
           <case name="false">
             <header data:text="FILER_QTREE_LIST@filerResourceBundle">
               <contents>
                 <switcher data:childName="node@filerInfo">
                   <case name="okNode">
                     <table data:tableData="row@filerQtreeRowKey@filerInfo"
                            width="80%"
                            partialRenderMode="self"
                            showAll="yes"
                            id="filerQtreeRowKey"
                            data:value="value@filerQtreeRowKey@filerInfo"
                            data:blockSize="blockSize@filerQtreeRowKey@filerInfo"
                            data:minValue="1"
                            data:maxValue="maxValue@filerQtreeRowKey@filerInfo"
                            data:columnHeaderData="column@filerQtreeRowKey@filerInfo"
                            data:columnFormats="colformat@columnDataQtrees"
                            data:alternateText="FILER_NO_QTREES_FOUND@filerResourceBundle"
                            data:summary="FILER_QTREE_TITLE@filerResourceBundle">
                     <tableFormat tableBanding="rowBanding"/>
                     <columnHeaderStamp>
                       <sortableHeader data:text="text"
                                       data:sortable="sortable"/>
                     </columnHeaderStamp>
                     <contents>
                       <styledText data:text="qtreeName"/>
                       <image data:source="qtreeStatus"
                              data:shortDesc="statusContextHelp"/>
                       <styledText data:text="qtreeTotal"/>
                       <styledText data:text="qtreeUsed"/>
                       <dataScope>
                         <contents>
                           <image data:source="img0Src"
                                  data:width="img0Width"
                                  data:height="img0Height"
                                  data:destination="qtreePctUsedDest"
                                  data:shortDesc="FILER_VOLUME_DESC@filerResourceBundle"/>
                           <image data:source="img1Src"
                                  data:width="img1Width"
                                  data:height="img1Height"
                                  data:destination="qtreePctUsedDest"
                                  data:shortDesc="FILER_VOLUME_DESC@filerResourceBundle"/>
                           <image data:source="img2Src"
                                  data:width="img2Width"
                                  data:height="img2Height"
                                  data:destination="qtreePctUsedDest"
                                  data:shortDesc="FILER_VOLUME_DESC@filerResourceBundle"/>
                           <image data:source="img3Src"
                                  data:width="img3Width"
                                  data:height="img3Height"
                                  data:destination="qtreePctUsedDest"
                                  data:shortDesc="FILER_VOLUME_DESC@filerResourceBundle"/> 
                           <spacer width="10"/>
                           <styledText data:text="qtreePctUsed"
                                       data:destination="qtreePctUsedDest"/>
                           </contents>
                         </dataScope>
                       </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>
           </case>
         </switcher>
                
                  
         <switcher data:childName="volumeTypeIsFlexible@filerInfo">
           <case name="false">             
             <header data:text="FILER_DISK_DETAILS_TITLE@filerResourceBundle">
               <contents>
                 <switcher data:childName="node@filerInfo">
                   <case name="okNode">
                     <table data:tableData="row@filerRaidConfigRowKey@filerInfo"
                            width="80%"
                            partialRenderMode="self"
                            showAll="yes"
                            id="filerRaidConfigRowKey"
                            data:value="value@filerRaidConfigRowKey@filerInfo"
                            data:blockSize="blockSize@filerRaidConfigRowKey@filerInfo"
                            data:minValue="1"
                            data:maxValue="maxValue@filerRaidConfigRowKey@filerInfo"
                            data:columnHeaderData="column@filerRaidConfigRowKey@filerInfo"
                            data:columnFormats="colformat@columnDataDisks"
                            data:alternateText="FILER_ALT@filerResourceBundle"
                            data:summary="FILER_ALT@filerResourceBundle">
                     <tableFormat tableBanding="rowBanding"/>
                     <columnHeaderStamp>
                       <sortableHeader data:text="text"
                                       data:sortable="sortable"/>
                     </columnHeaderStamp>
                       <contents>
                         <styledText data:text="filerDiskDriverName"/>
                         <styledText data:text="filerDiskDriverType"/>
                         <styledText data:text="filerRaidGroup"/>
                         <styledText data:text="filerRaidStatus"/>
                         <styledText data:text="filerTotalGB"/>
                         <styledText data:text="filerUsedGB"/>
                       </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>
           </case>
         </switcher>
            
              </contents>
            </header>
          </contents>
        </pageLayout>
      </contents>

      <provider>
        <data name="filerInfo">
          <method class="oracle.sysman.eml.target.filer.FilerCurDetailDataObject"
                  method="getFilerDiskQtrees"/>
        </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="columnDataQtrees">
         <inline>
          <colformat/>
          <colformat columnDataFormat="iconButtonFormat" width="10%"/> 
          <colformat columnDataFormat="numberFormat"/>
          <colformat columnDataFormat="numberFormat"/>
            <colformat/>
         </inline>
        </data>

        <data name="columnDataDisks">
         <inline>
          <colformat/>
          <colformat/>
          <colformat columnDataFormat="numberFormat"/>
          <colformat/>
          <colformat columnDataFormat="numberFormat"/>
          <colformat columnDataFormat="numberFormat"/>
         </inline>
        </data>
        
        <data name="columnDataAggVolumes">
         <inline>
          <colformat/>
          <colformat columnDataFormat="iconButtonFormat" width="10%"/> 
          <colformat columnDataFormat="numberFormat"/>
          <colformat columnDataFormat="numberFormat"/>
          <colformat columnDataFormat="numberFormat"/>
          <colformat/>         
         </inline>
        </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>
