<?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: User Home Space based on Template? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/user-home-space-based-on-template/m-p/60617#M37498</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;BR /&gt;&lt;SPAN&gt;Thanks to Alfresco support, they were able to easily help me with this problem.&amp;nbsp; I hope this is of use to someone out there in the future…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the what I ended up setting in the personalHomeFolderProvider" bean authority-services-context.xml file (which I put in the extension folder):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="templatePath"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.templates.childname}/cm:Employees&amp;lt;/value&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, the ${…} are variables set in the repository.properties file (like a shortcut).&amp;nbsp; The cm:Employees part is a space template that contains rules and sub-spaces.&amp;nbsp; So, when a new user logs into Alfresco using their Active Directory credentials, their user space is setup using this space template.&amp;nbsp;&amp;nbsp;&amp;nbsp; This is very useful functionality!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Feel free to post up any follow-up questions if anybody else runs into the same question.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jan 2007 14:16:48 GMT</pubDate>
    <dc:creator>mvanbergen</dc:creator>
    <dc:date>2007-01-26T14:16:48Z</dc:date>
    <item>
      <title>User Home Space based on Template?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-home-space-based-on-template/m-p/60610#M37491</link>
      <description>Hello,We are using the Alfresco LDAP integration with Active Directory.&amp;nbsp; We are able to authenticate and synchronize users without any problems.&amp;nbsp; We have also customized where a user's home space is created (under a "Users" space).&amp;nbsp; Now, we would like to take this one step further and have the user'</description>
      <pubDate>Wed, 03 Jan 2007 02:38:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-home-space-based-on-template/m-p/60610#M37491</guid>
      <dc:creator>mvanbergen</dc:creator>
      <dc:date>2007-01-03T02:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: User Home Space based on Template?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-home-space-based-on-template/m-p/60611#M37492</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;See &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Security_and_Authentication#Creating_a_home_space_based_on_uid" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Security_and_Authentication#Creating_a_home_space_based_on_uid&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 16:22:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-home-space-based-on-template/m-p/60611#M37492</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2007-01-05T16:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: User Home Space based on Template?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-home-space-based-on-template/m-p/60612#M37493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the quick reply, Andy. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the "templatePath" defined as a property in the "personalHomeFolderProvider" bean will serve my purpose. However, I can't seem to get it to work.&amp;nbsp; Here is what I have done:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Created a space template called "Employees" in the Space Templates space. The "Employees" space includes other sub-spaces as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Altered the authority-services-context.xml file (not really, I modified the copy of the file in the extension folder) to include the following property to be overridden:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="templatePath"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;/app:space_templates/cm:Employees&amp;lt;/value&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I login as a new user (we are using active directory synchronization) and I receive the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;javax.faces.FacesException: Error calling action method of component with id loginForm:submit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;caused by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;javax.faces.el.EvaluationException: Exception while invoking expression #{LoginBean.login}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;caused by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java.lang.IllegalStateException: Non-unique path: found : /app:space_templates/cm:Employees 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I take out the above property in our extension file, and login with the same user it works just fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jan 2007 05:16:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-home-space-based-on-template/m-p/60612#M37493</guid>
      <dc:creator>mvanbergen</dc:creator>
      <dc:date>2007-01-06T05:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: User Home Space based on Template?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-home-space-based-on-template/m-p/60613#M37494</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;The error means you have got the path to the template directory wrong (or it does not exist) or the same for the directory where user homes are to be created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 09:37:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-home-space-based-on-template/m-p/60613#M37494</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2007-01-08T09:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: User Home Space based on Template?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-home-space-based-on-template/m-p/60614#M37495</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;BR /&gt;&lt;SPAN&gt;I am not sure what I could be doing wrong.&amp;nbsp; In the repository.properties file there is a "shortcut" for the space templates (${spaces.templates.childname}) and I know that there is a "Employees" space directly under the spaces template folder (on the same level as the default Software Engineering space template that comes with the default Alfresco Enterprise install).&amp;nbsp; Therefore, I believe the templatePath property should be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="templatePath"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;/${spaces.templates.childname}/cm:Employees&amp;lt;/value&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So that I understand what is supposed to happen here, when someone logs in and their home space is created, the Employees space template should be copied under the User's home folder.&amp;nbsp; At least that is what we need.&amp;nbsp; Is this a correct use case?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 04:15:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-home-space-based-on-template/m-p/60614#M37495</guid>
      <dc:creator>mvanbergen</dc:creator>
      <dc:date>2007-01-15T04:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: User Home Space based on Template?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-home-space-based-on-template/m-p/60615#M37496</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;Does it work using the guest folder as a template?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anything special about your template folder?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it a plain folder with files as sub-folders? Does it have permissions? Does it have rules?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 12:23:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-home-space-based-on-template/m-p/60615#M37496</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2007-01-17T12:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: User Home Space based on Template?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-home-space-based-on-template/m-p/60616#M37497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to make the templatePath point to the guest folder and it still did not work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="templatePath"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;/app:guest_home&amp;lt;/value&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and I get the following error when attempting to login the first time:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;javax.faces.FacesException: Error calling action method of component with id loginForm:submit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;caused by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;javax.faces.el.EvaluationException: Exception while invoking expression #{LoginBean.login}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;caused by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java.lang.IllegalStateException: Non-unique path: found : /app:guest_home 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 03:38:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-home-space-based-on-template/m-p/60616#M37497</guid>
      <dc:creator>mvanbergen</dc:creator>
      <dc:date>2007-01-18T03:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: User Home Space based on Template?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-home-space-based-on-template/m-p/60617#M37498</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;BR /&gt;&lt;SPAN&gt;Thanks to Alfresco support, they were able to easily help me with this problem.&amp;nbsp; I hope this is of use to someone out there in the future…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the what I ended up setting in the personalHomeFolderProvider" bean authority-services-context.xml file (which I put in the extension folder):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="templatePath"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.templates.childname}/cm:Employees&amp;lt;/value&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, the ${…} are variables set in the repository.properties file (like a shortcut).&amp;nbsp; The cm:Employees part is a space template that contains rules and sub-spaces.&amp;nbsp; So, when a new user logs into Alfresco using their Active Directory credentials, their user space is setup using this space template.&amp;nbsp;&amp;nbsp;&amp;nbsp; This is very useful functionality!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Feel free to post up any follow-up questions if anybody else runs into the same question.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 14:16:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-home-space-based-on-template/m-p/60617#M37498</guid>
      <dc:creator>mvanbergen</dc:creator>
      <dc:date>2007-01-26T14:16:48Z</dc:date>
    </item>
  </channel>
</rss>

