-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.xml
62 lines (61 loc) · 3.5 KB
/
manifest.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0" encoding="UTF-8"?>
<meta id="light_acl" label="CONF_MESSAGE[Light ACL]" description="CONF_MESSAGE[Light ACL]" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
<class_definition filename="plugins/meta.lightacl/class.LightACLManager.php" classname="LightACLManager"/>
<client_settings icon="plugins/access.mysql/resources/images/mysql_icon.png">
<resources>
<i18n namespace="meta.lightacl" path="plugins/meta.lightacl/i18n" />
</resources>
</client_settings>
<registry_contributions>
<hooks>
<serverCallback hookName="node.before_change" methodName="beforeChange"></serverCallback>
<serverCallback hookName="node.before_path_change" methodName="beforeChangePath"></serverCallback>
<serverCallback hookName="node.read" methodName="read"></serverCallback>
</hooks>
<actions>
<action name="lacl_addperm">
<gui text="add ACL" title="add ACL" src="" iconClass="icon-check" accessKey="" hasAccessKey="false">
<context dir="true" recycle="false" selection="true" contextMenu="true" actionBar="true"
actionBarGroup="more" />
<selectionContext dir="true" file="true" recycle="false" unique="true"/>
</gui>
<rightsContext noUser="false" userLogged="only" read="true" write="true" adminOnly="true"/>
<processing>
<clientCallback prepareModal="true"><![CDATA[
var userSelection = ajaxplorer.getUserSelection();
var loadFunc = function(){
var oForm = $(modal.getForm());
ajaxplorer.actionBar.propertyPane = new PropertyPanel(userSelection, oForm);
};
modal.showDialogForm('Light ACL', 'addacl_form', loadFunc, function(){
var oForm = $(modal.getForm());
userSelection.updateFormOrUrl(oForm);
ajaxplorer.actionBar.submitForm(oForm);
hideLightBox(true);
return false;
});
]]></clientCallback>
<clientForm id="addacl_form"><![CDATA[
<div id="addacl_form" action="lacl_addperm" box_width="200">
<div class="dialogLegend" ajxp_message_id="173">login</div>
<input type="text" name="usr" size="30" class="dialogFocus">
<div class="dialogLegend" ajxp_message_id="173">perm</div>
<input type="text" name="perm" size="30" class="dialogFocus">
<div class="dialogLegend" style="padding-top:20px;" id="alt_mkfile">
<span class="icon-chevron-right"></span>0: No access<br/>
<span class="icon-chevron-right"></span>1: No write<br/>
<span class="icon-chevron-right"></span>2: No change to default repository rights
</div>
</div>
]]></clientForm>
<serverCallback methodName="applyChangePerms" restParams="/file+" checkParams="false" developerComment="adds an entry in ACL table">
<input_param description="Node" name="file" type="path" mandatory="true"/>
<input_param description="Login" name="usr" type="string" mandatory="true"/>
<input_param description="Perm" name="perm" type="string" mandatory="true"/>
</serverCallback>
</processing>
</action>
</actions>
</registry_contributions>
</meta>