source: cats/SCHEMAcat/trunk/urn.org.isocat.schemacat.access.data/access/usersAuthorizedRoles.dpml @ 3514

Last change on this file since 3514 was 3514, checked in by andmor, 11 years ago

Using sloot.toString endpoint to generate log message.

File size: 1.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<sequence debug="false">
3        <request assignment="response">
4                <identifier>active:org.basex.query</identifier>
5                <argument name="operator">
6                        <literal type="xml">
7                                <query xmlns:sc="http://www.isocat.org/ns/schemacat">
8                                        <roles>{
9                                                for $role in //sc:access-roles/sc:users/sc:role
10                                                return <role>{$role/text()}</role>
11                                                }
12                                        </roles>
13                                </query>
14                        </literal>
15                </argument>
16        </request>
17        <sloot-debug>
18                <log>
19                        <level>INFO</level>
20                        <message>
21                                <literal type="string">[access.data] [%1] requested roles authorized to access user resources.&#xA;[&#xA;%2]</literal>
22                        </message>
23                        <param>
24                                <request>
25                                        <identifier>active:sloot.xpath2</identifier>
26                                        <argument name="operand">scratch:user</argument>
27                                        <argument name="operator">
28                                                <literal type="string">string(/sc:user/@xml:id)</literal>
29                                        </argument>
30                                </request>
31                        </param>
32                        <param>
33                                <!-- pass the response trough sloot.toString so the actual
34                                user document is logged instead of the value of its pointer!-->
35                                <request>
36                                        <identifier>active:sloot.toString</identifier>
37                                        <argument name="operand">this:response</argument>
38                                </request>
39                        </param>
40                </log>
41                <request>
42                        <verb>SINK</verb>
43                        <identifier>res:/debug/org.isocat.schemacat.access.data.users.authorizedRoles.response.xml</identifier>
44                        <argument name="primary">this:response</argument>
45                </request>
46        </sloot-debug>
47</sequence>
Note: See TracBrowser for help on using the repository browser.