<?xml version="1.0" encoding="UTF-8"?>











<rss version="2.0">
  <channel>
    <title>Amsetwiki: Amset26addchildauthorities</title>
    <link>http://socket3.leeds.ac.uk:8080/amsetwiki/</link>
    <description>Wiki for JISC AMSeT Project</description>
    <language>en-us</language>
    <generator>JSPWiki 2.8.1</generator>
    <item>
      <link>http://socket3.leeds.ac.uk:8080/amsetwiki/Wiki.jsp?page=Amset26addchildauthorities&amp;version=-1</link>
      <title>Amset26addchildauthorities, version -1</title>
      <description>clayton created this page on Sun Sep 06 13:52:51 BST 2009:&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;h4 id="section-Amset26addchildauthorities-WorkflowNameAmset26addchildauthorities"&gt;Workflow Name: amset26addchildauthorities&lt;a class="hashlink" href="#section-Amset26addchildauthorities-WorkflowNameAmset26addchildauthorities"&gt;#&lt;/a&gt;&lt;/h4&gt;
&lt;h4 id="section-Amset26addchildauthorities-ConstituentServicesAuthenticationServiceAccessControlServiceInitAddChildAuthoritiesWSDateTimeWS"&gt;Constituent Services: AuthenticationService, AccessControlService, InitAddChildAuthoritiesWS, DateTimeWS&lt;a class="hashlink" href="#section-Amset26addchildauthorities-ConstituentServicesAuthenticationServiceAccessControlServiceInitAddChildAuthoritiesWSDateTimeWS"&gt;#&lt;/a&gt;&lt;/h4&gt;
&lt;h4 id="section-Amset26addchildauthorities-TechnicalNotes"&gt;Technical Notes&lt;a class="hashlink" href="#section-Amset26addchildauthorities-TechnicalNotes"&gt;#&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;Platform: GlassFishESB V2.1, NetBeans IDE 6.5.1 (including BPEL Designer, implementing WS-BPEL 2.0)&lt;br /&gt;
Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.0-b15&lt;br /&gt;
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb).
&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;Alfresco Labs 3.1 Final running on remote server, 64-bit Java 1.6.0_13, Tomcat 6 on Red Hat Enterprise Linux 5.
&lt;/p&gt;
&lt;h4 id="section-Amset26addchildauthorities-WorkflowDescription"&gt;Workflow description&lt;a class="hashlink" href="#section-Amset26addchildauthorities-WorkflowDescription"&gt;#&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;Adds a child authority to an authority.  The example below adds a child user authority to a group authority.  
&lt;/p&gt;
&lt;h4 id="section-Amset26addchildauthorities-InputOutput"&gt;Input/Output&lt;a class="hashlink" href="#section-Amset26addchildauthorities-InputOutput"&gt;#&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;&lt;b&gt;Code snippet 26.1. InitAddChildAuthoritiesWS SOAP request.&lt;/b&gt;
&lt;/p&gt;
&lt;p /&gt;
&lt;div class="prettify"&gt;
&lt;pre&gt;
&amp;lt;soapenv:Envelope xsi:schemaLocation=&amp;quot;http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/&amp;quot; xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot; xmlns:xsd=&amp;quot;http://www.w3.org/2001/XMLSchema&amp;quot; xmlns:soapenv=&amp;quot;http://schemas.xmlsoap.org/soap/envelope/&amp;quot; xmlns:init=&amp;quot;http://j2ee.netbeans.org/wsdl/amset26addchildauthorities/InitAddChildAuthoritiesWS&amp;quot; xmlns:acc=&amp;quot;http://xml.netbeans.org/schema/accesscontrol&amp;quot;&amp;gt;
  &amp;lt;soapenv:Body&amp;gt;
    &amp;lt;init:InitAddChildAuthoritiesWSOperation&amp;gt;
      &amp;lt;alfrescoAdminUsername&amp;gt;admin&amp;lt;/alfrescoAdminUsername&amp;gt;
      &amp;lt;alfrescoAdminPassword&amp;gt;adminPassword&amp;lt;/alfrescoAdminPassword&amp;gt;
      &amp;lt;part1&amp;gt;
        &amp;lt;acc:addChildAuthorities&amp;gt;
          &amp;lt;acc:parentAuthority&amp;gt;GROUP_TutorialGroup1&amp;lt;/acc:parentAuthority&amp;gt;
          &amp;lt;acc:authorities&amp;gt;user1&amp;lt;/acc:authorities&amp;gt;
        &amp;lt;/acc:addChildAuthorities&amp;gt;
      &amp;lt;/part1&amp;gt;
    &amp;lt;/init:InitAddChildAuthoritiesWSOperation&amp;gt;
  &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;p /&gt;
&lt;p&gt;&lt;b&gt;Code snippet 26.2.  AccessControlService.addChildAuthorities() SOAP request.&lt;/b&gt;
&lt;/p&gt;
&lt;p /&gt;
&lt;div class="prettify"&gt;
&lt;pre&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&amp;lt;SOAP-ENV:Envelope xmlns:SOAP-ENV=&amp;quot;http://schemas.xmlsoap.org/soap/envelope/&amp;quot;&amp;gt;
    &amp;lt;SOAP-ENV:Header&amp;gt;
        &amp;lt;Security xmlns=&amp;quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd&amp;quot;&amp;gt;
            &amp;lt;wsu:Timestamp xmlns:wsu=&amp;quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd&amp;quot;&amp;gt;
                &amp;lt;wsu:Created&amp;gt;2009-09-01T19:31:27.87+00:00&amp;lt;/wsu:Created&amp;gt;
                &amp;lt;wsu:Expires&amp;gt;2009-09-01T19:35:27.00+00:00&amp;lt;/wsu:Expires&amp;gt;
            &amp;lt;/wsu:Timestamp&amp;gt;
            &amp;lt;UsernameToken&amp;gt;
                &amp;lt;Password Type=&amp;quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText&amp;quot;&amp;gt;TICKET_41b06ff41ffca546a5779655e586987d5d950c6e&amp;lt;/Password&amp;gt;
                &amp;lt;Username&amp;gt;admin&amp;lt;/Username&amp;gt;
            &amp;lt;/UsernameToken&amp;gt;
        &amp;lt;/Security&amp;gt;
    &amp;lt;/SOAP-ENV:Header&amp;gt;
    &amp;lt;SOAP-ENV:Body&amp;gt;
        &amp;lt;addChildAuthorities
            xmlns=&amp;quot;http://www.alfresco.org/ws/service/accesscontrol/1.0&amp;quot;
            xmlns:acc=&amp;quot;http://xml.netbeans.org/schema/accesscontrol&amp;quot;
            xmlns:init=&amp;quot;http://j2ee.netbeans.org/wsdl/amset26addchildauthorities/InitAddChildAuthoritiesWS&amp;quot;
            xmlns:msgns=&amp;quot;http://j2ee.netbeans.org/wsdl/amset26addchildauthorities/InitAddChildAuthoritiesWS&amp;quot; xmlns:ns0=&amp;quot;http://www.alfresco.org/ws/service/accesscontrol/1.0&amp;quot;&amp;gt;
            &amp;lt;acc:parentAuthority&amp;gt;GROUP_TutorialGroup1&amp;lt;/acc:parentAuthority&amp;gt;
            &amp;lt;acc:authorities&amp;gt;user1&amp;lt;/acc:authorities&amp;gt;
        &amp;lt;/addChildAuthorities&amp;gt;
    &amp;lt;/SOAP-ENV:Body&amp;gt;
&amp;lt;/SOAP-ENV:Envelope&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;p /&gt;
&lt;p&gt;&lt;b&gt;Code snippet 26.3.  AccessControlService.addChildAuthorities() SOAP request.&lt;/b&gt;
&lt;/p&gt;
&lt;p /&gt;
&lt;div class="prettify"&gt;
&lt;pre&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&amp;lt;soapenv:Envelope
    xmlns:soapenv=&amp;quot;http://schemas.xmlsoap.org/soap/envelope/&amp;quot;
    xmlns:xsd=&amp;quot;http://www.w3.org/2001/XMLSchema&amp;quot; xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot;&amp;gt;
    &amp;lt;soapenv:Body&amp;gt;
        &amp;lt;addChildAuthoritiesResponse xmlns=&amp;quot;http://www.alfresco.org/ws/service/accesscontrol/1.0&amp;quot;&amp;gt;
            &amp;lt;results&amp;gt;user1&amp;lt;/results&amp;gt;
        &amp;lt;/addChildAuthoritiesResponse&amp;gt;
    &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;p /&gt;</description>
      <pubDate>Sun, 06 Sep 2009 12:52:51 GMT</pubDate>
    </item>
  </channel>
</rss>

