ACL Option Package Installation Plugin
Add customizable permissions for individual objects.
Option Components
Each acl option is described as an <option>
element with the mandatory attribute name
.
<categoryname>
Optional
The name of the acl option category to which the option belongs.
<objecttype>
The name of the acl object type (of the object type definition com.woltlab.wcf.acl
).
Category Components
Each acl option category is described as an <category>
element with the mandatory attribute name
that should follow the naming pattern <permissionName>
or <permissionType>.<permissionName>
, with <permissionType>
generally having user
or mod
as value.
<objecttype>
The name of the acl object type (of the object type definition com.woltlab.wcf.acl
).
Example
aclOption.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 <?xml version="1.0" encoding="UTF-8"?>
<data xmlns= "http://www.woltlab.com" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation= "http://www.woltlab.com http://www.woltlab.com/XSD/2019/aclOption.xsd" >
<import>
<categories>
<category name= "user.example" >
<objecttype> com.example.wcf.example</objecttype>
</category>
<category name= "mod.example" >
<objecttype> com.example.wcf.example</objecttype>
</category>
</categories>
<options>
<option name= "canAddExample" >
<categoryname> user.example</categoryname>
<objecttype> com.example.wcf.example</objecttype>
</option>
<option name= "canDeleteExample" >
<categoryname> mod.example</categoryname>
<objecttype> com.example.wcf.example</objecttype>
</option>
</options>
</import>
<delete>
<optioncategory name= "old.example" >
<objecttype> com.example.wcf.example</objecttype>
</optioncategory>
<option name= "canDoSomethingWithExample" >
<objecttype> com.example.wcf.example</objecttype>
</option>
</delete>
</data>
Last update:
2021-04-23