<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: What is getPeople? Documentation? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/what-is-getpeople-documentation/m-p/214764#M167894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there any additional syntax that can be used with the filter string?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;wildcards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;exact match&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;grep syntax&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Dec 2009 22:24:07 GMT</pubDate>
    <dc:creator>cfox</dc:creator>
    <dc:date>2009-12-09T22:24:07Z</dc:date>
    <item>
      <title>What is getPeople? Documentation?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-is-getpeople-documentation/m-p/214762#M167892</link>
      <description>I am writing a repository webscript to return a set of people and their attributes.&amp;nbsp; I found the built in webscript "people.get" which makes a call to getPeople.&amp;nbsp; What is the method getPeople?&amp;nbsp; Is it part of the Javascript api? or Java api?&amp;nbsp; Where is it documented?&amp;nbsp; Searching (with Google as well) t</description>
      <pubDate>Wed, 09 Dec 2009 15:16:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-is-getpeople-documentation/m-p/214762#M167892</guid>
      <dc:creator>cfox</dc:creator>
      <dc:date>2009-12-09T15:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: What is getPeople? Documentation?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-is-getpeople-documentation/m-p/214763#M167893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's Java Script API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation should be here.&amp;nbsp;&amp;nbsp; (And is missing&amp;nbsp; &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt; ) &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/3.2_JavaScript_API#People_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/3.2_JavaScript_API#People_API&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The implementation is here.&amp;nbsp;&amp;nbsp; And there's good javadoc describing the method you are calling.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.alfresco.repo.jscript.People.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 15:30:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-is-getpeople-documentation/m-p/214763#M167893</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2009-12-09T15:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: What is getPeople? Documentation?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-is-getpeople-documentation/m-p/214764#M167894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there any additional syntax that can be used with the filter string?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;wildcards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;exact match&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;grep syntax&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 22:24:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-is-getpeople-documentation/m-p/214764#M167894</guid>
      <dc:creator>cfox</dc:creator>
      <dc:date>2009-12-09T22:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: What is getPeople? Documentation?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-is-getpeople-documentation/m-p/214765#M167895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to add an extra property to peopleCollection in people.get.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;// Get the args&lt;BR /&gt;var filter = args["filter"];&lt;BR /&gt;var maxResults = args["maxResults"];&lt;BR /&gt;&lt;BR /&gt;// Get the collection of people&lt;BR /&gt;var peopleCollection = people.getPeople(filter, maxResults != null ? parseInt(maxResults) : 0);&lt;BR /&gt;&lt;BR /&gt;for (var i=0; i&amp;lt;peopleCollection.length;i++) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; peopleCollection[i].properties["isfriend"]=1;&lt;BR /&gt;}&lt;BR /&gt;// Pass the queried sites to the template&lt;BR /&gt;model.peoplelist = peopleCollection;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I receive an error "Cannot set property "isfriend" of undefined to "1".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which is the correct way to add an "isfriend" extra property?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Marco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 15:48:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-is-getpeople-documentation/m-p/214765#M167895</guid>
      <dc:creator>ottopodo</dc:creator>
      <dc:date>2010-10-27T15:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: What is getPeople? Documentation?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-is-getpeople-documentation/m-p/214766#M167896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was stumbling across this lack of documentation for two days until I finally worked out what was going on through extensive debugging and source code hunting. people.getPeople(filter) returns a list of &lt;/SPAN&gt;&lt;EM&gt;NodeRefs&lt;/EM&gt;&lt;SPAN&gt;, not People.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to use the results as Javascript objects (i.e. properties['userName']), you need to first search for the NodeRef. From &lt;/SPAN&gt;&lt;EM&gt;alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/site/membership/potentialmembers.get.js&lt;/EM&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;peopleFound = people.getPeople(filter, maxResults);&lt;BR /&gt;for (i = 0; i &amp;lt; peopleFound.length; i++) {&lt;BR /&gt;&amp;nbsp; username = search.findNode(peopleFound[i]).properties.userName;&lt;BR /&gt;&amp;nbsp; // …&lt;BR /&gt;}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 05:00:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-is-getpeople-documentation/m-p/214766#M167896</guid>
      <dc:creator>jevon</dc:creator>
      <dc:date>2012-10-17T05:00:10Z</dc:date>
    </item>
  </channel>
</rss>

