<html><head>
    <link rel="stylesheet" href="/crx/explorer/ui/default.css" type="text/css" title="style" />
    <link rel="stylesheet" href="/crx/explorer/ui/listview.css" type="text/css" title="style" />
    <style type="text/css">
        TABLE.info {
            border: solid 1px #9d9da1;
            width: 100%;
            background-color: #ffffff
        }
    </style>
    <script type="text/javascript">

        function browsePrincipals(id) {
            var ctl = document.getElementById(id);
            var uri = "/crx/explorer/ui/principalbrowse.jsp";
            uri+= "?_charset_=utf-8&ck=" + new Date().valueOf();
            if (window.showModalDialog) {
                var feat = "scroll:No; resizable:Yes; status:No; dialogHeight:450px; dialogWidth: 245px;";
                ctl.value = window.showModalDialog(uri, "", feat);
            } else {
                var feat = "scroll=no, height=430px, width=230px, dialog, resizable=yes, modal";
                uri+="&TargetControlId=" + encodeURIComponent(id);
                var w = window.open(uri, "PrincipalBrowser", feat);
            }
        }

    </script>
    </head><title>Access Control Test</title>
    <body style="background-color:#e8e9ec">
    <table cellspacing="0" cellpadding="0" border="0" style="margin:15px;margin-top:0px"><tbody><tr><td>
    <form id="testForm">
    <h3>Effect of Access Control</h3>
    <table class="info" cellspacing="5" cellpadding="0">
        <thead><tr><th colspan="2"><b>Request Parameters</b></th></tr></thead>
        <tbody>
        <tr><td width="150">Path: </td><td><input name="Path" size="50" value="null"></td></tr>
        <tr><td width="150">Principal: </td><td><input name="testPrincipal" size="50" id="testPrincipal" value="null" type="text">
            &nbsp;<input type="button" onClick="javascript:browsePrincipals('testPrincipal');" value="Browse"/>
            <br><span>Select a principal or enter a comma separated list of principal names.</span>
        </td></tr>
        <tr><td width="150">Include group membership: </td><td><input type="checkbox" name="inherited" value="true" /></td></tr>
        <tr><td width=\"150\">Jcr Actions: </td><td>
            <input type="checkbox" name="actions" value="read" />  read<input type="checkbox" name="actions" value="set_property" />  set_property<input type="checkbox" name="actions" value="remove" />  remove<br><input type="checkbox" name="actions" value="add_property" />  add_property<input type="checkbox" name="actions" value="modify_property" />  modify_property<input type="checkbox" name="actions" value="remove_property" />  remove_property<br><input type="checkbox" name="actions" value="add_node" />  add_node<input type="checkbox" name="actions" value="remove_node" />  remove_node<input type="checkbox" name="actions" value="node_type_management" />  node_type_management<br><input type="checkbox" name="actions" value="versioning" />  versioning<input type="checkbox" name="actions" value="locking" />  locking<input type="checkbox" name="actions" value="user_management" />  user_management<br><input type="checkbox" name="actions" value="read_access_control" />  read_access_control<input type="checkbox" name="actions" value="modify_access_control" />  modify_access_control</td></tr>
        <tr><td width="150">Repository Level: </td><td><input type="checkbox" name="repoAccessControl" value="true" /></td></tr>
        <tr><td width="150">Effective Policies: </td><td><input type="checkbox" name="effectivePolicies" value="true" /></td></tr>
        <tr><td colspan="2"><input type="submit"></td></tr>
        </tbody>
    </table>
    </form>
    <table class="info" cellspacing="5" cellpadding="0">
                <thead><tr><th colspan="2"><b>Editing Session</b></th></tr></thead>
                <tbody>
                <tr><td width="150">UserID</td><td>anonymous</td></tr>
                </tbody>
            </table><br>
        <table class="info" cellspacing="5" cellpadding="0">
            <thead><tr><th colspan="2"><b>Principal Information</b></th></tr></thead>
            <tbody>
            <tr><td width="150">Principal(s)</td><td>anonymous</td></tr>
            <tr><td width="150">Inherited group principals: </td><td>everyone</td></tr>
            <tr><td width="150">Invalid principals: </td><td></td></tr>
            </tbody>
        </table><p/><span style="color:red">ERROR: null</span></td></tr></tbody></table>
</body>
    </html>