<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Jivespace: Message List - Updating Profile in 2.5.1</title>
    <link>http://www.jivesoftware.com/jivespace/community/developer?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Thu, 09 Oct 2008 23:29:51 GMT</pubDate>
    <generator>Jive SBS 3.0.8 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2008-10-09T23:29:51Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Updating Profile in 2.5.1</title>
      <link>http://www.jivesoftware.com/jivespace/message/130672?tstart=0#130672</link>
      <description>&lt;!-- [DocumentBodyStart:fa01f74d-b67a-4adb-8600-b44f4fe49209] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Cool. Yep, the &lt;a class="jive-link-wiki-small" href="http://www.jivesoftware.com/jivespace/docs/DOC-3279"&gt;example on how to set up an SSO filter&lt;/a&gt; includes an XML stanza that shows properties defined for each of the injected dependencies (managers and agents). That stanza tells Spring what will be required at run time. We have another, similar example in the &lt;a class="jive-link-wiki-small" href="http://www.jivesoftware.com/jivespace/docs/DOC-3281"&gt;topic on adding DB access to a plugin&lt;/a&gt;. It's not SSO or authentication, but it is about making Spring aware of a component and its dependencies.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you're deploying your SSO provider inside a plugin, then you'll want to include a spring.xml file in the plugin (the spring.xml file goes at the root of the deployed JAR). There's higher-level information about plugin deployment in &lt;a class="jive-link-wiki-small" href="http://www.jivesoftware.com/jivespace/docs/DOC-3275"&gt;Building Plugins&lt;/a&gt;. If instead you're adding your SSO provider to the classpath manually, outside the plugin framework, then you'll need to put your spring.xml file in the jiveHome/etc directory of your Clearspace instance.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;For other info, you might find our &lt;a class="jive-link-wiki-small" href="http://www.jivesoftware.com/jivespace/docs/DOC-3438"&gt;(small, but growing) Spring FAQ&lt;/a&gt; useful. Also, check out the &lt;a class="jive-link-external-small" href="http://static.springframework.org/spring/docs/2.0.x/reference/beans.html"&gt;Spring documentation on its inversion of control (IoC) container&lt;/a&gt; (which is what's behind dependency injection).&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Finally, we have two samples you might be interested in (both in our public Subversion project). One is &lt;a class="jive-link-external-small" href="https://svn.jivesoftware.com/svn/dev/repos/jive/plugins/custom-authentication"&gt;Erik's on doing SSO&lt;/a&gt;; the &lt;a class="jive-link-external-small" href="https://svn.jivesoftware.com/svn/dev/repos/jive/plugins/feedblog"&gt;other&lt;/a&gt; does Spring stuff for database access.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:fa01f74d-b67a-4adb-8600-b44f4fe49209] --&gt;</description>
      <pubDate>Thu, 09 Oct 2008 23:08:21 GMT</pubDate>
      <author>steve@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/130672?tstart=0#130672</guid>
      <dc:date>2008-10-09T23:08:21Z</dc:date>
      <clearspace:dateToText>1 year, 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Updating Profile in 2.5.1</title>
      <link>http://www.jivesoftware.com/jivespace/message/130681?tstart=0#130681</link>
      <description>&lt;!-- [DocumentBodyStart:d43b8258-945b-418b-821f-cc058f149a8e] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Okay this is very helpful thanks. I will let you know how I make out.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;cheers&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;EMC Developer &amp;amp; ISV Relations&lt;/p&gt;&lt;p&gt;508-249-1725&lt;/p&gt;&lt;p&gt;&lt;span&gt;mailto:&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:harvey_raymond@emc.com" target="_blank"&gt;harvey_raymond@emc.com&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:d43b8258-945b-418b-821f-cc058f149a8e] --&gt;</description>
      <pubDate>Thu, 09 Oct 2008 23:15:21 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/130681?tstart=0#130681</guid>
      <dc:date>2008-10-09T23:15:21Z</dc:date>
      <clearspace:dateToText>1 year, 1 month ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Updating Profile in 2.5.1</title>
      <link>http://www.jivesoftware.com/jivespace/message/130645?tstart=0#130645</link>
      <description>&lt;!-- [DocumentBodyStart:909397e3-502b-4528-91d0-31edac49855c] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;No I did not. However Eric had a how to link on configuring this via a&lt;/p&gt;&lt;p&gt;plugin or jiveHome/etc file.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;EMC Developer &amp;amp; ISV Relations&lt;/p&gt;&lt;p&gt;508-249-1725&lt;/p&gt;&lt;p&gt;&lt;span&gt;mailto:&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:harvey_raymond@emc.com" target="_blank"&gt;harvey_raymond@emc.com&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:909397e3-502b-4528-91d0-31edac49855c] --&gt;</description>
      <pubDate>Thu, 09 Oct 2008 22:34:20 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/130645?tstart=0#130645</guid>
      <dc:date>2008-10-09T22:34:20Z</dc:date>
      <clearspace:dateToText>1 year, 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Updating Profile in 2.5.1</title>
      <link>http://www.jivesoftware.com/jivespace/message/130643?tstart=0#130643</link>
      <description>&lt;!-- [DocumentBodyStart:9175ba69-6132-4285-a42f-50831843aea3] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Ray, did you create a Spring configuration file that describes your SSO provider's dependencies, such as its dependency on the ProfileManager?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:9175ba69-6132-4285-a42f-50831843aea3] --&gt;</description>
      <pubDate>Thu, 09 Oct 2008 22:31:44 GMT</pubDate>
      <author>steve@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/130643?tstart=0#130643</guid>
      <dc:date>2008-10-09T22:31:44Z</dc:date>
      <clearspace:dateToText>1 year, 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Updating Profile in 2.5.1</title>
      <link>http://www.jivesoftware.com/jivespace/message/130630?tstart=0#130630</link>
      <description>&lt;!-- [DocumentBodyStart:d015b3d3-7a42-4738-bf9b-2110b12856cf] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Perfect&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;EMC Developer &amp;amp; ISV Relations&lt;/p&gt;&lt;p&gt;508-249-1725&lt;/p&gt;&lt;p&gt;&lt;span&gt;mailto:&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:harvey_raymond@emc.com" target="_blank"&gt;harvey_raymond@emc.com&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:d015b3d3-7a42-4738-bf9b-2110b12856cf] --&gt;</description>
      <pubDate>Thu, 09 Oct 2008 21:55:50 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/130630?tstart=0#130630</guid>
      <dc:date>2008-10-09T21:55:50Z</dc:date>
      <clearspace:dateToText>1 year, 1 month ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Updating Profile in 2.5.1</title>
      <link>http://www.jivesoftware.com/jivespace/message/130628?tstart=0#130628</link>
      <description>&lt;!-- [DocumentBodyStart:690a75b3-a9cd-4149-8697-c3bda346ce41] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Ray, those setters are fine for injection, but you won't have them "autowired" in a plugin/SSO situation. You will need to define a spring configuration that injects the manager as part of your SSO implementation. I'll post a link to how to configure this via a plugin or jiveHome/etc file.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:690a75b3-a9cd-4149-8697-c3bda346ce41] --&gt;</description>
      <pubDate>Thu, 09 Oct 2008 21:54:24 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/130628?tstart=0#130628</guid>
      <dc:date>2008-10-09T21:54:24Z</dc:date>
      <clearspace:dateToText>1 year, 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Updating Profile in 2.5.1</title>
      <link>http://www.jivesoftware.com/jivespace/message/130612?tstart=0#130612</link>
      <description>&lt;!-- [DocumentBodyStart:58c0e61a-2944-4eb5-9e61-1c603ca94c33] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hello Erik,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;As far as injection is it enough to use the setters? See below? What else am I missing?&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;public ProfileManager getProfileManager()&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return profileManager;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void setProfileManager(ProfileManager profileManager)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.profileManager = profileManager;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public ProfileFieldManager getProfileFieldManager()&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return profileFieldManager;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void setProfileFieldManager(ProfileFieldManager profileFieldManager)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.profileFieldManager = profileFieldManager;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;EMC Developer &amp;amp; ISV Relations&lt;/p&gt;&lt;p&gt;508-249-1725&lt;/p&gt;&lt;p&gt;&lt;span&gt;mailto:&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:harvey_raymond@emc.com" target="_blank"&gt;harvey_raymond@emc.com&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:58c0e61a-2944-4eb5-9e61-1c603ca94c33] --&gt;</description>
      <pubDate>Thu, 09 Oct 2008 21:35:20 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/130612?tstart=0#130612</guid>
      <dc:date>2008-10-09T21:35:20Z</dc:date>
      <clearspace:dateToText>1 year, 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Updating Profile in 2.5.1</title>
      <link>http://www.jivesoftware.com/jivespace/message/130589?tstart=0#130589</link>
      <description>&lt;!-- [DocumentBodyStart:9c069ecd-92cc-4dee-9f5c-1538d4fa1b32] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Ray,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Are you injecting the profile manager via spring into your SSO solution (Filter?)? If you have a debugger attached to your environment, you might try putting a break point on the setter (or adding a log message otherwise) for the ProfileManager to make sure the system is injecting it properly. If that setter is not invoked, you are likely missing a spring configuration directive for your SSO module.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-erik&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:9c069ecd-92cc-4dee-9f5c-1538d4fa1b32] --&gt;</description>
      <pubDate>Thu, 09 Oct 2008 21:19:31 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/130589?tstart=0#130589</guid>
      <dc:date>2008-10-09T21:19:31Z</dc:date>
      <clearspace:dateToText>1 year, 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Updating Profile in 2.5.1</title>
      <link>http://www.jivesoftware.com/jivespace/message/130419?tstart=0#130419</link>
      <description>&lt;!-- [DocumentBodyStart:1d2d3590-a1fe-4401-883f-701902988b46] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;In the middle of converting SSO I wrote in 1.10x. Running into an issue with getting an instance of the profile. Essentially I update the profile through my SSO implimentaion.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The following code is raising a NullPointerException.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Map&amp;lt;Long, ProfileFieldValue&amp;gt; profile = profileManager.getProfile(user);&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The extension is defined below.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;public ProfileManager getProfileManager()&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return profileManager;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void setProfileManager(ProfileManager profileManager)&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.profileManager = profileManager;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public ProfileFieldManager getProfileFieldManager()&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return profileFieldManager;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&lt;br/&gt;Where am I going wrong is there an article on this outside of the Javadocs.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thaanks&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:1d2d3590-a1fe-4401-883f-701902988b46] --&gt;</description>
      <pubDate>Thu, 09 Oct 2008 16:57:32 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/130419?tstart=0#130419</guid>
      <dc:date>2008-10-09T16:57:32Z</dc:date>
      <clearspace:dateToText>1 year, 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>8</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

