<?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: How To extend an authority or person built-in type in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-an-authority-or-person-built-in-type/m-p/250294#M203424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can define aspects and then add those aspects to cm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson objects. As those other posts mention, you'll then have to do some work to make that change usable in the web client.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using Share, here is the minimum of what you must do in an Alfresco 3.4 installation to add custom properties to a person object and then use those properties in Share:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Extend org.alfresco.web.site.SlingshotUser with your own User class, let's call it SomeUser. Add getters and setters for your properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Extend org.alfresco.web.site.SlingshotUserFactory with your own Factory class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2a. Add a buildSomeUser method. Follow existing pattern to build your own.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2b. Add a constructSomeUser method. Follow existing pattern to build your own.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2c. Override constructUser to return SomeUser&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2d. Implement saveUser&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Wire in the custom user factory through Spring using parent="webframework.factory.base"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4. In share-config-custom, override the defaults, user-factory element with a pointer to the new user factory bean&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Override Alfresco's profile.js with your own.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5a. Modify onEditProfile to include your custom props&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;6. Extend org/alfresco/components/profile/userprofile.get.html.ftl with your own that includes fields and labels for your custom properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There may be some steps I am leaving out but this will get you close.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have no idea whether or not this has gotten easier in Alfresco 4.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Feb 2012 23:58:22 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2012-02-15T23:58:22Z</dc:date>
    <item>
      <title>How To extend an authority or person built-in type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-an-authority-or-person-built-in-type/m-p/250293#M203423</link>
      <description>Dear Gurus,I have a requirement from certain of customers intended to customize authority or person built-in types.Simply, i want to add properties to cm&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson such as "Position" and i walk through the same techniques for alfresco customization of "content types"; but unfortunately all tries are fa</description>
      <pubDate>Mon, 27 Jun 2011 10:12:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-an-authority-or-person-built-in-type/m-p/250293#M203423</guid>
      <dc:creator>mohammed_amr</dc:creator>
      <dc:date>2011-06-27T10:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: How To extend an authority or person built-in type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-an-authority-or-person-built-in-type/m-p/250294#M203424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can define aspects and then add those aspects to cm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson objects. As those other posts mention, you'll then have to do some work to make that change usable in the web client.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using Share, here is the minimum of what you must do in an Alfresco 3.4 installation to add custom properties to a person object and then use those properties in Share:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Extend org.alfresco.web.site.SlingshotUser with your own User class, let's call it SomeUser. Add getters and setters for your properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Extend org.alfresco.web.site.SlingshotUserFactory with your own Factory class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2a. Add a buildSomeUser method. Follow existing pattern to build your own.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2b. Add a constructSomeUser method. Follow existing pattern to build your own.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2c. Override constructUser to return SomeUser&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2d. Implement saveUser&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Wire in the custom user factory through Spring using parent="webframework.factory.base"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4. In share-config-custom, override the defaults, user-factory element with a pointer to the new user factory bean&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Override Alfresco's profile.js with your own.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5a. Modify onEditProfile to include your custom props&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;6. Extend org/alfresco/components/profile/userprofile.get.html.ftl with your own that includes fields and labels for your custom properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There may be some steps I am leaving out but this will get you close.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have no idea whether or not this has gotten easier in Alfresco 4.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 23:58:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-an-authority-or-person-built-in-type/m-p/250294#M203424</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-02-15T23:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: How To extend an authority or person built-in type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-an-authority-or-person-built-in-type/m-p/250295#M203425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Code that shows how to do this for 3.4.d Community lives here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://ecmarchitect.com/images/articles/alfresco-people/someco-people.zip" rel="nofollow noopener noreferrer"&gt;http://ecmarchitect.com/images/articles/alfresco-people/someco-people.zip&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 23:00:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-an-authority-or-person-built-in-type/m-p/250295#M203425</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-02-20T23:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: How To extend an authority or person built-in type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-an-authority-or-person-built-in-type/m-p/250296#M203426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, already i use the alfresco explorer and i use add aspect techniques.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 13:57:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-an-authority-or-person-built-in-type/m-p/250296#M203426</guid>
      <dc:creator>mohammed_amr</dc:creator>
      <dc:date>2012-02-28T13:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: How To extend an authority or person built-in type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-an-authority-or-person-built-in-type/m-p/250297#M203427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know I'm being a bit of a thread necromancer here, but there seems to be some differences between the 2 posts you have here in this thread. On your post on the 16th Feb, it says that one must extend the SlingshotUser class. It also says that when extending SlingshotUserFactory that the buildUser, ConstructUser, and saveUser methods must be implemented/overridden. In the tutorial on your site and also in the sample code it is a much sparser process, with nothing to do with the SlingshotUser class, and only the constructUser and SaveUser methods implemented. Which of these is correct?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 01:57:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-an-authority-or-person-built-in-type/m-p/250297#M203427</guid>
      <dc:creator>chrisokelly</dc:creator>
      <dc:date>2012-10-18T01:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: How To extend an authority or person built-in type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-an-authority-or-person-built-in-type/m-p/250298#M203428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The difference is that in my Feb 15 post, I was outlining what was done on a project that was likely 3.4.x Enterprise.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A week or so later I felt bad that I hadn't provided a working example, but not owning the IP of the 3.4.x Enterprise example, I had to re-code it from scratch, and I chose to use 3.4.d Community Edition. As you observed, I was able to do that without touching SlingshotUser and with fewer method overrides.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This could be because:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - The two releases of Alfresco are different&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - My contrived example was simpler than what we were doing in that original project&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - My second attempt was simply more succinct than the first&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I cannot tell which of these is the case without a deeper investigation which I don't have time to do at the moment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can say with certainty that both worked at the time they were written for the release they were written against.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 19:10:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-an-authority-or-person-built-in-type/m-p/250298#M203428</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-10-23T19:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: How To extend an authority or person built-in type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-an-authority-or-person-built-in-type/m-p/250299#M203429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That makes sense. I was worried that some of the extra stuff from the first post was just so obvious to people in the know that it didn't need to be in the tutorial. I wasn't able to figure out a way to get that solution to work in 4.0d, but produced a rather messy workaround in the end.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 22:00:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-an-authority-or-person-built-in-type/m-p/250299#M203429</guid>
      <dc:creator>chrisokelly</dc:creator>
      <dc:date>2012-10-23T22:00:12Z</dc:date>
    </item>
  </channel>
</rss>

