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











<rss version="2.0">
  <channel>
    <title>Amsetwiki: Amset22getallauthorities</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=Amset22getallauthorities&amp;version=-1</link>
      <title>Amset22getallauthorities, version -1</title>
      <description>clayton created this page on Sun Sep 06 13:49:13 BST 2009:&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;h4 id="section-Amset22getallauthorities-WorkflowNameAmset22getallauthorities"&gt;Workflow Name: amset22getallauthorities&lt;a class="hashlink" href="#section-Amset22getallauthorities-WorkflowNameAmset22getallauthorities"&gt;#&lt;/a&gt;&lt;/h4&gt;
&lt;h4 id="section-Amset22getallauthorities-ConstituentServicesAuthenticationServiceAccessControlServiceInitGetAllAuthoritiesWSDateTimeWS"&gt;Constituent Services: AuthenticationService, AccessControlService, InitGetAllAuthoritiesWS, DateTimeWS&lt;a class="hashlink" href="#section-Amset22getallauthorities-ConstituentServicesAuthenticationServiceAccessControlServiceInitGetAllAuthoritiesWSDateTimeWS"&gt;#&lt;/a&gt;&lt;/h4&gt;
&lt;h4 id="section-Amset22getallauthorities-TechnicalNotes"&gt;Technical Notes&lt;a class="hashlink" href="#section-Amset22getallauthorities-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;p /&gt;
&lt;h4 id="section-Amset22getallauthorities-WorkflowDescription"&gt;Workflow Description&lt;a class="hashlink" href="#section-Amset22getallauthorities-WorkflowDescription"&gt;#&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;There are three &lt;tt&gt;AuthorityType&lt;/tt&gt;s: &lt;tt&gt;USER&lt;/tt&gt;, &lt;tt&gt;GROUP&lt;/tt&gt; and &lt;tt&gt;ROLE&lt;/tt&gt;.  An &lt;tt&gt;Authority&lt;/tt&gt; is used to form an Authority Control Entry (ACE), which associates the &lt;tt&gt;Authority&lt;/tt&gt; with &lt;tt&gt;Permission&lt;/tt&gt;s on a &lt;tt&gt;node&lt;/tt&gt; (resource).
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;AccessControlService.getAllAuthorities()&lt;/tt&gt; requires one of the three &lt;tt&gt;AuthorityType&lt;/tt&gt;s as a &lt;tt&gt;filter&lt;/tt&gt; and returns a list of the corresponding authorities.  Example outputs corresponding to the three cases are given below. (There were no roles in the system at at the time of the request.)
&lt;/p&gt;
&lt;p&gt;There is also a boolean &lt;tt&gt;rootOnly&lt;/tt&gt; input element.  Refers to child authorities derived from root users, groups and roles?
&lt;/p&gt;
&lt;p /&gt;
&lt;h4 id="section-Amset22getallauthorities-InputOutput"&gt;Input/Output&lt;a class="hashlink" href="#section-Amset22getallauthorities-InputOutput"&gt;#&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;SOAP message that initiates workflow.  &lt;tt&gt;USER&lt;/tt&gt; can be changed to &lt;tt&gt;GROUP&lt;/tt&gt; or &lt;tt&gt;ROLE&lt;/tt&gt;.
&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Code snippet 22.1.  InitGetAllAuthoritiesWS SOAP request. 
&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;/b&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/amset22getallauthorities/InitGetAllAuthorities&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:InitGetAllAuthoritiesOperation&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:getAllAuthorities&amp;gt;
          &amp;lt;acc:filter&amp;gt;
            &amp;lt;acc:authorityType&amp;gt;USER&amp;lt;/acc:authorityType&amp;gt;
            &amp;lt;acc:rootOnly&amp;gt;false&amp;lt;/acc:rootOnly&amp;gt;
          &amp;lt;/acc:filter&amp;gt;
        &amp;lt;/acc:getAllAuthorities&amp;gt;
      &amp;lt;/part1&amp;gt;
    &amp;lt;/init:InitGetAllAuthoritiesOperation&amp;gt;
  &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;b&gt;Code snippet 22.2.  AccessControlService.getAllAuthorities() SOAP request.&lt;/b&gt;
&lt;/p&gt;
&lt;div class="prettify"&gt;
&lt;pre&gt;
?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-01T08:00:15.90+00:00&amp;lt;/wsu:Created&amp;gt;
                &amp;lt;wsu:Expires&amp;gt;2009-09-01T08:04:15.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_9dc0d25c3055458018e6bb773f6048cd5071a71a&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;getAllAuthorities
            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/amset22getallauthorities/InitGetAllAuthorities&amp;quot;
            xmlns:msgns=&amp;quot;http://j2ee.netbeans.org/wsdl/amset22getallauthorities/InitGetAllAuthorities&amp;quot; xmlns:ns0=&amp;quot;http://www.alfresco.org/ws/service/accesscontrol/1.0&amp;quot;&amp;gt;
            &amp;lt;acc:filter&amp;gt;
                &amp;lt;acc:authorityType&amp;gt;USER&amp;lt;/acc:authorityType&amp;gt;
                &amp;lt;acc:rootOnly&amp;gt;false&amp;lt;/acc:rootOnly&amp;gt;
            &amp;lt;/acc:filter&amp;gt;
        &amp;lt;/getAllAuthorities&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;b&gt;Code snippet 22.3. AccessControlServic.getAllAuthorities(USER) SOAP response.&lt;/b&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;getAllAuthoritiesResponse xmlns=&amp;quot;http://www.alfresco.org/ws/service/accesscontrol/1.0&amp;quot;&amp;gt;
            &amp;lt;results&amp;gt;InvisibleWoman&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;flash&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;user40&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;user21&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;user20&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;mattereaterlad&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;superman&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;MrFantastic&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;user41&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;hawkman&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;harrymcd&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;magneto&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;user31&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;user30&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;Thing2&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;user11&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;user10&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;thor&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;daredevil&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;user100&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;hawkman3&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;user101&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;user1&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;user8&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;user9&amp;lt;/results&amp;gt;
        &amp;lt;/getAllAuthoritiesResponse&amp;gt;
    &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;b&gt;Code snippet 22.4. AccessControlServic.getAllAuthorities(GROUP) SOAP response.&lt;/b&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;getAllAuthoritiesResponse xmlns=&amp;quot;http://www.alfresco.org/ws/service/accesscontrol/1.0&amp;quot;&amp;gt;
            &amp;lt;results&amp;gt;GROUP_superheroes&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;GROUP_heidbangers&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;GROUP_ALFRESCO_ADMINISTRATORS&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;GROUP_superheroes1&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;GROUP_users&amp;lt;/results&amp;gt;
            &amp;lt;results&amp;gt;GROUP_EMAIL_CONTRIBUTORS&amp;lt;/results&amp;gt;
        &amp;lt;/getAllAuthoritiesResponse&amp;gt;
    &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;b&gt;Code snippet 22.5. AccessControlServic.getAllAuthorities(ROLE) SOAP response.&lt;/b&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;getAllAuthoritiesResponse xmlns=&amp;quot;http://www.alfresco.org/ws/service/accesscontrol/1.0&amp;quot;/&amp;gt;
    &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;</description>
      <pubDate>Sun, 06 Sep 2009 12:49:13 GMT</pubDate>
    </item>
  </channel>
</rss>

