Workflow Name: amset29getparentauthorities#

Constituent Services: AuthenticationService, AccessControlService, InitGetParentAuthoritiesWS, 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#

This workflow returns the parent authorities of a set of nodes.

Input/Output#

Code snippet 29.1. InitGetParentAuthoritiesWS 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/amset29getparentauthorities/InitGetParentAuthoritiesWS" xmlns:acc="http://xml.netbeans.org/schema/accesscontrol">
  <soapenv:Body>
    <init:InitGetParentAuthoritiesWSOperation>
      <alfrescoAdminUser>admin</alfrescoAdminUser>
      <alfrescoAdminPassword>adminPassword</alfrescoAdminPassword>
      <part1>
        <acc:getParentAuthorities>
          <acc:authority>user31</acc:authority>
          <acc:filter>
            <acc:authorityType>GROUP</acc:authorityType>
            <acc:immediate>false</acc:immediate>
          </acc:filter>
        </acc:getParentAuthorities>
      </part1>
    </init:InitGetParentAuthoritiesWSOperation>
  </soapenv:Body>
</soapenv:Envelope>

Code snippet 29.2. AccessControlService.getParentAuthorities() 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-06T11:41:18.42+00:00</wsu:Created>
                <wsu:Expires>2009-09-06T11:45:18.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_b31aa89855908791509922ead883f990acf810d2</Password>
                <Username>admin</Username>
            </UsernameToken>
        </Security>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <getParentAuthorities
            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/amset29getparentauthorities/InitGetParentAuthoritiesWS"
            xmlns:msgns="http://j2ee.netbeans.org/wsdl/amset29getparentauthorities/InitGetParentAuthoritiesWS" xmlns:ns0="http://www.alfresco.org/ws/service/accesscontrol/1.0">
            <acc:authority>user31</acc:authority>
            <acc:filter>
                <acc:authorityType>GROUP</acc:authorityType>
                <acc:immediate>false</acc:immediate>
            </acc:filter>
        </getParentAuthorities>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Code snippet 29.3. AccessControlService.getParentAuthorities() 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>
        <getParentAuthoritiesResponse xmlns="http://www.alfresco.org/ws/service/accesscontrol/1.0">
            <results>GROUP_users</results>
            <results>GROUP_TutorialGroup1</results>
        </getParentAuthoritiesResponse>
    </soapenv:Body>
</soapenv:Envelope>

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-) was last changed on 06-Sep-2009 13:54 by clayton