Workflow Name: amset27getchildauthorities#
Constituent Services: AuthenticationService, AccessControlService, InitGetChildAuthoritiesWS, DateTimeWS#
Technical Notes#
Platform: GlassFishESB V2.1, NetBeans IDE 6.5.1 (including BPEL Designer, implementing WS-BPEL 2.0)
Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.0-b15
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb).
Alfresco Labs 3.1 Final running on remote server, 64-bit Java 1.6.0_13, Tomcat 6 on Red Hat Enterprise Linux 5.
Workflow description#
For a given parent authority, returns a list of child authorities filtered by SiblingAuthorityType. Filter boolean immediate implies that there must be immediate siblings and non-immediate. Has no effect on test queries here.
Input/Output#
Code snippet 27.1. InitGetChildAuthoritiesWS SOAP request.
<soapenv:Envelope xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:init="http://j2ee.netbeans.org/wsdl/amset27getchildauthorities/InitGetChildAuthoritiesWS" xmlns:acc="http://xml.netbeans.org/schema/accesscontrol">
<soapenv:Body>
<init:InitGetChildAuthoritiesWSOperation>
<alfrescoAdminUsername>admin</alfrescoAdminUsername>
<alfrescoAdminPassword>adminPassword</alfrescoAdminPassword>
<part1>
<acc:getChildAuthorities>
<acc:authority>GROUP_users</acc:authority>
<acc:filter>
<acc:authorityType>USER</acc:authorityType>
<acc:immediate>true</acc:immediate>
</acc:filter>
</acc:getChildAuthorities>
</part1>
</init:InitGetChildAuthoritiesWSOperation>
</soapenv:Body>
</soapenv:Envelope>
Code snippet 27.2. AccessControlService.getChildAuthorities() SOAP request.
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
<Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Created>2009-09-02T07:17:45.81+00:00</wsu:Created>
<wsu:Expires>2009-09-02T07:21:45.00+00:00</wsu:Expires>
</wsu:Timestamp>
<UsernameToken>
<Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">TICKET_62a1ab642fdaed49375052f9b1ac933789e4f151</Password>
<Username>admin</Username>
</UsernameToken>
</Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<getChildAuthorities
xmlns="http://www.alfresco.org/ws/service/accesscontrol/1.0"
xmlns:acc="http://xml.netbeans.org/schema/accesscontrol"
xmlns:init="http://j2ee.netbeans.org/wsdl/amset27getchildauthorities/InitGetChildAuthoritiesWS"
xmlns:msgns="http://j2ee.netbeans.org/wsdl/amset27getchildauthorities/InitGetChildAuthoritiesWS" xmlns:ns0="http://www.alfresco.org/ws/service/accesscontrol/1.0">
<acc:authority>GROUP_users</acc:authority>
<acc:filter>
<acc:authorityType>USER</acc:authorityType>
<acc:immediate>true</acc:immediate>
</acc:filter>
</getChildAuthorities>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Code snippet 27.3. AccessControlService.getChildAuthorities() SOAP response.
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<getChildAuthoritiesResponse xmlns="http://www.alfresco.org/ws/service/accesscontrol/1.0">
<results>InvisibleWoman</results>
<results>flash</results>
<results>user20</results>
<results>mattereaterlad</results>
<results>superman</results>
<results>TestUser1</results>
<results>MrFantastic</results>
<results>hawkman</results>
<results>harrymcd</results>
<results>magneto</results>
<results>Thing2</results>
<results>thor</results>
<results>daredevil</results>
<results>hawkman3</results>
</getChildAuthoritiesResponse>
</soapenv:Body>
</soapenv:Envelope>