<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">

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

      <contents>
        <html:title>
         <text data:text="title@hostOSServicesInfo"/>
        </html:title>

        <html:noScript>"JavaScript is not supported by your browser. Oracle requires JavaScript support in order to completely render this page."</html:noScript>

        <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>         

              <contentFooter>
                <switcher childName="okNode" data:childName="node@hostNFSClient">
                  <case name="okNode">
                    <tableLayout>
                      <contents>
                        <rowLayout>
                          <contents>
                            <spacer width="20"/>
                         <submitButton data:text="DONE@hostResourceBundle"
                                 name="event" value="done"/>
                          </contents>
                        </rowLayout>
                      </contents>
                    </tableLayout>
                  </case>
                  <case name="errNode">
                    <tableLayout>
                      <contents>
                        <rowLayout>
                          <contents>
                            <submitButton data:text="OK_BUTTON@mntrResourceBundle"
                                          name="event"
                                          value="done" />
                          </contents>
                        </rowLayout>
                      </contents>
                    </tableLayout>
                  </case>
                </switcher>
              </contentFooter>  
	    
          <contents>
            <switcher childName="okNode" data:childName="node@hostOSServicesInfo">
             <case name="okNode">
              <stackLayout>
               <contents>
                  <messageBox messageType="info"
                           date:messageType="inlineMessageType@hostOSServicesInfo"
                           data:message="inlineConfirm@hostOSServicesInfo"
                           rendered="false"
                           data:rendered="showConfirm@hostOSServicesInfo" /> 

            <spacer height="10"/>
            <header data:text="SERVICES@hostResourceBundle">
            
           
              <contents>
                <form name="hostOSServices" method="POST">                              
                 <contents>
                 
              <tableLayout width="100%">
                 <contents>
                  <rowLayout>
                   <contents>
                    <cellFormat>
                     <contents>
                      <rowLayout hAlign="left">
                       <contents>
                          <styledText data:text="HOST_OSSERVICES_INSTRUCTIO@hostResourceBundle" styleClass="OraPromptText"/>
                       </contents>
                      </rowLayout>
                     </contents>
                    </cellFormat> 
                    <cellFormat>
                     <contents>
                      <rowLayout hAlign="right">
                       <contents>
                         <submitButton data:text="DONE@hostResourceBundle"
                                 name="event" value="done"/>
                       </contents>
                      </rowLayout>
                     </contents>
                    </cellFormat>                    
                   </contents>
                  </rowLayout>
                  <rowLayout>
                   <contents>
                    <cellFormat>
                     <contents>
                     <spacer height="10"/>
                      <rowLayout hAlign="right">
                       <contents>
                          <styledText data:text="CREDENTIALS@hostResourceBundle" styleClass="OraPromptText"/>
                       </contents>
                       <contents>
                        <spacer width="10"/>
                          <styledText data:text="Credentials@hostOSServicesInfo" styleClass="OraInstructionTextStrong"/>
                       </contents>
                      </rowLayout>
                     </contents>
                    </cellFormat>

                    <cellFormat>
                     <contents>
                     <spacer height="10"/>
                      <rowLayout hAlign="right">
                       <contents>
                         <submitButton data:text="CHANGE@hostResourceBundle"
                                 name="event" value="switchUser"/>
                       </contents>
                      </rowLayout>
                     </contents>
                    </cellFormat>
                   </contents>
                  </rowLayout>

                  <rowLayout>
                   <contents>
                    <cellFormat>
                     <contents>
                     <spacer height="10"/>
                      <rowLayout hAlign="left">
                       <contents>
                          <styledText data:text="CURRENT_SYSTEM_RUNLEVEL@hostResourceBundle" styleClass="OraPromptText"/>
                       </contents>
                       <contents>
                        <spacer width="20"/>
                          <styledText data:text="currentSytemRunLevel@hostOSServicesInfo" styleClass="OraInstructionTextStrong"/>
                       </contents>
                      </rowLayout>
                     </contents>
                    </cellFormat>
                   </contents>
                  </rowLayout>

                 </contents>
                </tableLayout>     
                <spacer height="10"/>
            </contents>        
            
            <contents>
                <spacer height="10"/>
                                <table name="hostOSServices" 
                                        partialRenderMode="none" 
                                        data:tableData="row@hostOSServicesInfo" 
                                        data:columnHeaderData="column@hostOSServicesInfo" 
                                        data:columnFormats="colformat@columnFormatData"
                                        data:value="value@hostOSServicesInfo" 
                                        data:minValue="minValue@hostOSServicesInfo" 
                                        data:blockSize="blockSize@hostOSServicesInfo" 
                                        data:maxValue="maxValue@hostOSServicesInfo" 
                                        formSubmitted="true" 
                                        summary="hostOSServices" 
                                        id="hostOSServices" 
                                        showAll="yes" 
                                        width="80%" 
                                        data:alternateText="Host OS Services">
                                  <tableFormat tableBanding="rowBanding"/>
                                  <columnHeaderStamp>
                                    <sortableHeader data:text="text" data:sortable="sortable"/>
                                  </columnHeaderStamp>
                                  <tableSelection>
                                    <singleSelection selectedIndex="0" text="" >
                                      <contents>
                                        <submitButton data:text="EDIT@commonResourceBundle" 
                                                      name="event" 
                                                      value="doEdit"/>
                                        <submitButton data:text="START@hostResourceBundle" 
                                                      name="event" 
                                                      value="doStart"/>
                                        <submitButton data:text="STOP@hostResourceBundle" 
                                                      name="event" 
                                                      value="doStop"/>                                                      
                                        <submitButton data:text="RESTART@hostResourceBundle" 
                                                      name="event" 
                                                      value="doRestart"/>                                    
                                      </contents>
                                    </singleSelection>
                                    
                                  </tableSelection>
                                   <contents> 
                                    <styledText data:text="Service" data:shortDesc="Service" />                        
                                    <styledText data:text="Enabled" data:shortDesc="Enabled" />
                                    <styledText data:text="RunLevel" data:shortDesc="Run Level" />
                                    <styledText data:text="Description" data:shortDesc="Description" />
                                   </contents>
                                </table>

                <spacer height="10"/>
                <spacer width="8"/>
               
                </contents>
                </form>
              </contents>
            </header>              
              </contents>
             </stackLayout>
            </case>
            <case name="errNode">
              <stackLayout>
               <contents>
                <form name="hostOSServices" method="POST">
                 <contents>
              <tableLayout width="100%">
                 <contents>
                  <rowLayout>
                   <contents>

                    <cellFormat>
                     <contents>
                      <rowLayout hAlign="right">
                       <contents>
                          <styledText data:text="CREDENTIALS@hostResourceBundle" styleClass="OraPromptText"/>
                       </contents>
                       <contents>
                         <spacer width="10"/>
                         <submitButton data:text="CHANGE@hostResourceBundle" name="event" value="switchUser"/>
                       </contents>
                      </rowLayout>
                     </contents>
                    </cellFormat>

                   </contents>
                  </rowLayout>

                 </contents>
                </tableLayout>
             <messageBox data:message="errMsg@hostOSServicesInfo"
                         messageType="error"
                         longDescURL="unimpl"
                         data:text="ERR_OCCUR@mntrResourceBundle">
             </messageBox>
                </contents>
                </form>
               </contents>
              </stackLayout>

            </case>
           </switcher>

           <spacer height="15"/>

          </contents>

        </pageLayout>
      </contents>

      <provider>
        <data name="columnFormatData">
          <inline>           
           <colformat/>
           <colformat/>
           <colformat/>
           <colformat/>
          </inline>
        </data>

        <data name="hostOSServicesInfo">
          <method class="oracle.sysman.eml.host.admin.HostOSServicesPageHandler" method="getHostOSServices"/>
        </data>

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

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

        <data name="hostResourceBundle">
            <bundle class="oracle.sysman.eml.host.HostResourceBundle"/>
        </data>

      </provider>

    </dataScope>
  </baja:content>

 <handlers>
    <event name="sort">
      <method class="oracle.sysman.eml.host.admin.HostOSServicesPageHandler"
              method="doSort"/>
    </event>
    <event name="goto">
      <method class="oracle.sysman.eml.host.admin.HostOSServicesPageHandler"
              method="doGoto"/>
    </event>

    <event name="doStart">
      <method class="oracle.sysman.eml.host.admin.HostOSServicesPageHandler"
              method="doCommand"/>
    </event>
    
    <event name="doRestart">
      <method class="oracle.sysman.eml.host.admin.HostOSServicesPageHandler"
              method="doCommand"/>
    </event>

    <event name="doStop">
      <method class="oracle.sysman.eml.host.admin.HostOSServicesPageHandler"
              method="doCommand"/>
    </event>
    

    <event name="doAdd">
      <method class="oracle.sysman.eml.host.admin.HostOSServicesPageHandler"
              method="doCommand"/>
    </event>

    <event name="doEdit">
      <method class="oracle.sysman.eml.host.admin.HostOSServicesPageHandler"
              method="doCommand"/>
    </event>

    <event name="done">
      <method class="oracle.sysman.eml.host.admin.HostOSServicesPageHandler"
              method="doCommand"/>
    </event>

    <event name="switchUser">
      <method class="oracle.sysman.eml.host.admin.HostOSServicesPageHandler"
              method="doSwitchUser"/>
    </event>

    <event name="*">
      <method class="oracle.sysman.eml.host.admin.HostOSServicesPageHandler" 
          method="doLoad"/>
    </event>
  </handlers>

</page>
