<?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 how to get user home space via scheduler job in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-user-home-space-via-scheduler-job/m-p/137507#M96404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have a scheduler job and i want the get the current user's home space when the job runs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;how can i get it?.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i tried to use the &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;User user = Application.getCurrentUser(context);&lt;BR /&gt;String homeSpaceID = user.getHomeSpaceId();&lt;SPAN class="line-numbers-rows"&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;but since i run it from a scheduler i don't know how to get the FacesContext object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shay.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2007 15:21:28 GMT</pubDate>
    <dc:creator>shay</dc:creator>
    <dc:date>2007-10-18T15:21:28Z</dc:date>
    <item>
      <title>how to get user home space via scheduler job</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-user-home-space-via-scheduler-job/m-p/137507#M96404</link>
      <description>Hi,i have a scheduler job and i want the get the current user's home space when the job runs.how can i get it?.i tried to use the User user = Application.getCurrentUser(context);String homeSpaceID = user.getHomeSpaceId();‍‍but since i run it from a scheduler i don't know how to get the FacesContext</description>
      <pubDate>Thu, 18 Oct 2007 15:21:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-user-home-space-via-scheduler-job/m-p/137507#M96404</guid>
      <dc:creator>shay</dc:creator>
      <dc:date>2007-10-18T15:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to get user home space via scheduler job</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-user-home-space-via-scheduler-job/m-p/137508#M96405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's web-client code - it can only run within the context of a JSF page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use the AuthenticationService to get the current user name with getCurrentUserName(), then use the PersonService to lookup the noderef that represents the associated Person node. And finally get the cm:homeFolder property from the Person node - that contains the NodeRef to the user home folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 13:13:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-user-home-space-via-scheduler-job/m-p/137508#M96405</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-10-26T13:13:55Z</dc:date>
    </item>
  </channel>
</rss>

