<page xmlns="http://bali.us.oracle.com/cabo/baja" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:marlin="http://bali.us.oracle.com/cabo/marlin" xmlns:data="http://bali.us.oracle.com/cabo/marlin" xmlns:uix="http://bali.us.oracle.com/cabo/marlin" xmlns:baja="http://bali.us.oracle.com/cabo/baja">
  <head/>
  <content>
    <dataScope xmlns="http://bali.us.oracle.com/cabo/marlin">
      <contents>
        <html:title>
          <text>
            <boundAttribute name="text">
              <concat>
                <dataObject select="comm_win_title" source="win_title"/>
                <dataObject select="URL_FILTERING_STR" source="SLBBundle"/>
              </concat>
            </boundAttribute>
          </text>
        </html:title>
        <form name="urlFiltering" method="post">
          <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>
              <copyright>
                <include baja:node="../../../copyright"/>
              </copyright>
              <privacy/>
              <location>
                <include baja:node="../../../breadCrumbs"/>
              </location>
              <!-- Body Section -->
              <contents>
                <header data:text="URL_FILTERING_STR@SLBBundle">
                  <contents>
                    <spacer height="5"/>
                    <stackLayout width="100%">
                      <contents>

                        <tableLayout width="100%">
                          <contents>
                            <rowLayout>
                              <contents>
                                <cellFormat>
                                  <contents>
                                    <rowLayout hAlign="right">
                                      <contents>
                                        <include baja:node="timestamp"/>
                                        <spacer width="8"/>
                                        <image data:source="refreshIcon@refreshButtonData"
                                               data:destination="refreshUrl@refreshButtonData"
                                               data:shortDesc="REFRESH_ICON_BUBBLE@SLBBundle"/>
                                        <spacer width="8"/>
                                        <button data:text="showButtonText@urlStrList"
                                                      baja:event="show"
                                                      data:rendered="rendered@urlStrList"/>
                                      </contents>
                                    </rowLayout>
                                  </contents>
                                </cellFormat>
                              </contents>
                            </rowLayout>
                          </contents>
                        </tableLayout>

                        <styledText data:text="urlFilteringStr@SLBBundle" styleClass="OraInstructionText"/>

                        <tableLayout width="100%">
                          <contents>
                            <rowLayout hAlign="right">
                              <contents>
                                <switcher data:childName="hasMgmtPriv@user_target_priv">
                                   <case name="true">
                                      <button data:text="Create@SLBBundle" baja:event="add"/>
                                   </case>
                                 </switcher>
                              </contents>
                            </rowLayout>
                          </contents>
                        </tableLayout>
                        <spacer height="5"/>
                        <table name="urlstrlist" data:blockSize="blockSize@urlStrList"
                          data:maxValue="maxValue@urlStrList" data:value="value@urlStrList"
                          data:columnHeaderData="column@urlStrList" width="100%"
                          data:tableData="row@urlStrList"
                          data:columnFormats="colformat@columnFormatData">
                          <columnHeaderStamp>
                            <sortableHeader data:text="text" data:sortable="sortable"/>
                          </columnHeaderStamp>
                          <boundAttribute name="columnHeaderData">
                            <dataObject select="column" source="urlStrList"/>
                          </boundAttribute>
                          <!-- Add a selection column -->
                          <tableSelection>
                            <singleSelection selectedIndex="0" shortDesc="urllist" data:rendered="hasMgmtPriv@user_target_priv">
                              <contents>
                                <switcher data:childName="hasMgmtPriv@user_target_priv">
                                   <case name="true">
                                      <submitButton data:text="Edit@SLBBundle" baja:event="edit"/>
                                   </case>
                                </switcher>
                                <switcher data:childName="hasMgmtPriv@user_target_priv">
                                   <case name="true">
                                      <submitButton data:text="Reorder@SLBBundle" baja:event="reorder"/>
                                   </case>
                                </switcher>
                                <switcher data:childName="hasMgmtPriv@user_target_priv">
                                   <case name="true">
                                      <submitButton data:text="Delete@SLBBundle" baja:event="delete"/>
                                   </case>
                                </switcher>
                              </contents>
                            </singleSelection>
                          </tableSelection>
                          <!-- Creating the columns as rowLayouts -->
                          <contents>
                            <rowLayout>
                              <contents>
                                <cellFormat>
                                  <contents>
                                    <styledText uix:text="urlStrIndex"/>
                                  </contents>
                                </cellFormat>
                              </contents>
                            </rowLayout>
                            <rowLayout>
                              <contents>
                                <cellFormat>
                                  <contents>
                                    <styledText uix:text="urlStr"/>
                                  </contents>
                                </cellFormat>
                              </contents>
                            </rowLayout>
                            <formValue name="urlStrIndex" data:value="urlStrIndex"/>
                            <formValue name="urlStr" data:value="urlStr"/>
                          </contents>
                        </table>
                      </contents>
                    </stackLayout>
                  </contents>
                </header>
              </contents>
            </pageLayout>
          </contents>
        </form>
      </contents>
      <provider>
        <data name="SLBBundle">
          <bundle class="oracle.sysman.eml.rsc.target.slb.SLBBundle"/>
        </data>
        <data name="urlStrList">
          <method class="oracle.sysman.eml.target.slb.mgmt.UrlFilteringPage" method="getUrlStringList"/>
        </data>
        <data name="win_title">
          <method class="oracle.sysman.eml.target.slb.common.SLB" method="getCommonWinTitle"/>
        </data>
        <data name="refreshButtonData">
          <method class="oracle.sysman.eml.target.slb.common.SLBCommonUIX" method="getRefreshButtonData"/>
        </data>
        <data name="user_target_priv">
          <method class="oracle.sysman.eml.target.slb.mgmt.RoleBasedMgmt" method="getUserTargetPriv"/>
        </data>
      </provider>
    </dataScope>
  </content>
  <handlers>
    <event name="edit">
      <method class="oracle.sysman.eml.target.slb.mgmt.UrlFilteringPage" method="doEdit"/>
    </event>
    <event name="delete">
      <method class="oracle.sysman.eml.target.slb.mgmt.UrlFilteringPage" method="doDelete"/>
    </event>
    <event name="add">
      <method class="oracle.sysman.eml.target.slb.mgmt.UrlFilteringPage" method="doAdd"/>
    </event>
    <event name="reorder">
      <method class="oracle.sysman.eml.target.slb.mgmt.UrlFilteringPage" method="doReorder"/>
    </event>
    <event name="sort">
      <method class="oracle.sysman.eml.target.slb.common.SLBCommonUIX" method="doSort"/>
    </event>
    <event name="goto">
      <method class="oracle.sysman.eml.target.slb.common.SLBCommonUIX" method="doGoto"/>
    </event>
    <event name="refresh">
      <method class="oracle.sysman.eml.target.slb.common.SLBCommonUIX" method="doRefresh"/>
    </event>
    <event name="show">
      <method class="oracle.sysman.eml.target.slb.common.SLBCommonUIX" method="doShow"/>
    </event>
    <event name="null">
      <method class="oracle.sysman.eml.target.slb.common.SLBOnlineHelp" method="setHelpPage"/>
    </event>
  </handlers>
</page>

