Workflow Name: amset21getacls#

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

Returns the ACLs associated with referenced nodes. An ACE can be supplied as a filter. (If the empty filter elements are included in the SOAP request, an internal error results.)

Input/Output #

SOAP call that initiates the workflow.

Code snippet 21.1. InitGetACLsWS 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/amset21getacls/InitGetACLs" xmlns:acc="http://xml.netbeans.org/schema/accesscontrol" xmlns:ns="http://www.alfresco.org/ws/model/content/1.0">
  <soapenv:Body>
    <init:InitGetACLsOperation>
      <alfrescoAdminUsername>admin</alfrescoAdminUsername>
      <alfrescoAdminPassword>adminPassword</alfrescoAdminPassword>
      <part1>
        <acc:getACLs>
          <acc:predicate>
            <ns:nodes>
              <ns:store>
                <ns:scheme>workspace</ns:scheme>
                <ns:address>SpacesStore</ns:address>
              </ns:store>
              <ns:uuid>bc0ae0a4-1782-4eb6-b502-5788e6f63608</ns:uuid>
              <ns:path></ns:path>
            </ns:nodes>
            <ns:store>
              <ns:scheme></ns:scheme>
              <ns:address></ns:address>
            </ns:store>
            <ns:query>
              <ns:language></ns:language>
              <ns:statement></ns:statement>
            </ns:query>
          </acc:predicate>
        </acc:getACLs>
      </part1>
    </init:InitGetACLsOperation>
  </soapenv:Body>
</soapenv:Envelope>

Code snippet 21.2. AccessControlService.getACLs() 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-08-31T18:48:32.74+00:00</wsu:Created>
                <wsu:Expires>2009-08-31T18:52:32.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_5a9a986f3b56516ae5090f7a0cf603b3a4aaf9e5</Password>
                <Username>admin</Username>
            </UsernameToken>
        </Security>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <getACLs
            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/amset21getacls/InitGetACLs"
            xmlns:msgns="http://j2ee.netbeans.org/wsdl/amset21getacls/InitGetACLs"
            xmlns:ns="http://www.alfresco.org/ws/model/content/1.0" xmlns:ns0="http://www.alfresco.org/ws/service/accesscontrol/1.0">
            <acc:predicate>
                <ns:nodes>
                    <ns:store>
                        <ns:scheme>workspace</ns:scheme>
                        <ns:address>SpacesStore</ns:address>
                    </ns:store>
                    <ns:uuid>bc0ae0a4-1782-4eb6-b502-5788e6f63608</ns:uuid>
                    <ns:path/>
                </ns:nodes>
                <ns:store>
                    <ns:scheme/>
                    <ns:address/>
                </ns:store>
                <ns:query>
                    <ns:language/>
                    <ns:statement/>
                </ns:query>
            </acc:predicate>
        </getACLs>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Code snippet 21.3. AccessControlService.getACLs() 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>
        <getACLsResponse xmlns="http://www.alfresco.org/ws/service/accesscontrol/1.0">
            <acls>
                <reference>
                    <ns1:store xmlns:ns1="http://www.alfresco.org/ws/model/content/1.0">
                        <ns1:scheme>workspace</ns1:scheme>
                        <ns1:address>SpacesStore</ns1:address>
                    </ns1:store>
                    <ns2:uuid xmlns:ns2="http://www.alfresco.org/ws/model/content/1.0">bc0ae0a4-1782-4eb6-b502-5788e6f63608</ns2:uuid>
                    <ns3:path xmlns:ns3="http://www.alfresco.org/ws/model/content/1.0">/app:company_home/app:user_homes/sys:Clark_x0020_Kent</ns3:path>
                </reference>
                <inheritPermissions>false</inheritPermissions>
                <aces>
                    <authority>ROLE_OWNER</authority>
                    <permission>All</permission>
                    <accessStatus>acepted</accessStatus>
                </aces>
                <aces>
                    <authority>GROUP_EVERYONE</authority>
                    <permission>Consumer</permission>
                    <accessStatus>acepted</accessStatus>
                </aces>
                <aces>
                    <authority>superman</authority>
                    <permission>All</permission>
                    <accessStatus>acepted</accessStatus>
                </aces>
            </acls>
        </getACLsResponse>
    </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:48 by clayton