Use the administrative web components to manage any objects permissions
From Kasai documentation
A most annoying missing feature in the current web administration interface is to be able to manage any objects permissions via a friendly interface.
To come through, you may re-use some of the components already in place in the web administration console to build your own web page to assign permissions to any object. To do so, you should use the permissions.js script, starting with the modifyPermissions() function.
The following piece of JSP code renders a simple web page that allows the user to edit a particular objects permissions:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html:html locale="true" xhtml="true">
<head>
<title>Kasai: Assign permission sample</title>
<link href="<html:rewrite page='/mainStyle.css'/>" rel="stylesheet" type="text/css" />
<script type='text/javascript' src='<html:rewrite page='/dwr/engine.js'/>'></script>
<script type='text/javascript' src='<html:rewrite page='/dwr/util.js'/>'></script>
<script type='text/javascript' src='<html:rewrite page='/dwr/interface/BaseFacade.js'/>'></script>
<script type='text/javascript' src='<html:rewrite page='/util.js'/>'></script>
<script type='text/javascript' src='<html:rewrite page='/permissions.js'/>'></script>
</head>
<body>
<div id='messageBox' class="invisible"></div>
<div id="working" class="invisible">working...</div>
<div id="content">
<table id="userList" class="list">
<tbody id="items-list">
<tr id="admin-row">
<td><a href="javascript:modifyPermissions('admin', '/kasai/user/admin');">
Click to modify permissions over object /kasai/user/admin
</a></td>
</tr>
</tbody>
</table>
</div>
<script>
function hideModifyForm(){}
function hideModifyPermissions(){
deleteNodeById("modifyPermissionsRow");
}
</script>
</body>
</html:html>
This is a sample, using all pre-defined structures used in Kasais web admin interface. You can easily build your own totally custom page by reproducing the overall behaviour of the permissions.js script.

