<?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: Create a New User Registration Form in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/create-a-new-user-registration-form/m-p/237803#M190933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great to hear the example works. As far as developing a whole new app, well that's quite a question! I guess a good example would be to checkout the Alfresco code svn and look at the "mobile" project - this is an example of a "mini Alfresco Share" - a SpringSurf app written from scratch to provide some of the basic Share features on an iOS device. That's probably a good place to start… It makes use of the same Alfresco REST APIs that Share does, has a login page, list of sites, docs, content etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kev&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Oct 2010 10:21:00 GMT</pubDate>
    <dc:creator>kevinr</dc:creator>
    <dc:date>2010-10-25T10:21:00Z</dc:date>
    <item>
      <title>Create a New User Registration Form</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-new-user-registration-form/m-p/237799#M190929</link>
      <description>Hi…&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Iam a newbie in Alfresco. I like to create a new user registration form in share. I studied about the javascript people API to create new user, but don know how to access the javascript API from share. Can you please provide me some sample how to make remote call to javascript API and create</description>
      <pubDate>Thu, 21 Oct 2010 10:45:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-new-user-registration-form/m-p/237799#M190929</guid>
      <dc:creator>kennetjacob</dc:creator>
      <dc:date>2010-10-21T10:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create a New User Registration Form</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-new-user-registration-form/m-p/237800#M190930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The APIs you can are called "person" - look at this URL on your deployed Alfresco instance:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/service/index/uri/" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/index/uri/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;search for /person and /people&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- those are the Webscript api urls that Share uses.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are the docs: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Repository_RESTful_API_Reference#Add_Person" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Repository_RESTful_API_Reference#Add_Person&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The people API expects a JSON request, something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var myPerson = {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "userName":"test1",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "password":"password",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "firstName":"Test",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "lastName":"User",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "email":"test@test.net",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "disableAccount":false,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "quota":-1,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "groups":[]&lt;BR /&gt;};&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;To call an API like this from a WebScript component JavaScript controller in Share is easy:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var json = jsonUtils.toJSONString(myPerson);&lt;BR /&gt;var conn = remote.connect("alfresco");&lt;BR /&gt;conn.post("/api/people", json, "application/json");&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;SPAN&gt;And that's it!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look at the "Users" Admin Console page in Share and the code behind it (files called users.get.* and users.js) for a more advanced example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that only a logged in admin user can create people!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kev&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 09:29:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-new-user-registration-form/m-p/237800#M190930</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2010-10-22T09:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create a New User Registration Form</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-new-user-registration-form/m-p/237801#M190931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks alot Kevin. The information u gave is very useful for me. Now i created a new user registration page with the help of the code u gave and i referred the admin console page "Users". Everything works fine…Thanks &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&amp;nbsp; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 04:21:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-new-user-registration-form/m-p/237801#M190931</guid>
      <dc:creator>kennetjacob</dc:creator>
      <dc:date>2010-10-25T04:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create a New User Registration Form</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-new-user-registration-form/m-p/237802#M190932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And one more thing Kevin, Actually i want to develop a new application like share, How can i start ?? can you please guide me..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 04:22:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-new-user-registration-form/m-p/237802#M190932</guid>
      <dc:creator>kennetjacob</dc:creator>
      <dc:date>2010-10-25T04:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create a New User Registration Form</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-new-user-registration-form/m-p/237803#M190933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great to hear the example works. As far as developing a whole new app, well that's quite a question! I guess a good example would be to checkout the Alfresco code svn and look at the "mobile" project - this is an example of a "mini Alfresco Share" - a SpringSurf app written from scratch to provide some of the basic Share features on an iOS device. That's probably a good place to start… It makes use of the same Alfresco REST APIs that Share does, has a login page, list of sites, docs, content etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kev&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 10:21:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-new-user-registration-form/m-p/237803#M190933</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2010-10-25T10:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create a New User Registration Form</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-new-user-registration-form/m-p/237804#M190934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have downloaded the Alfresco code from svn, I will look through the "mobile" project and let u know Kevin. I was confused where to start :? .. I think the information you gave will help me.. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp; Thanks for your information Kevin..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kennet&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 05:39:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-new-user-registration-form/m-p/237804#M190934</guid>
      <dc:creator>kennetjacob</dc:creator>
      <dc:date>2010-10-26T05:39:44Z</dc:date>
    </item>
  </channel>
</rss>

